Skip to content

Comments API reference

Terminal window
curl -u AUTH_TOKEN: https://app.honeybadger.io/v2/projects/ID/faults/ID/comments
curl -u AUTH_TOKEN: https://app.honeybadger.io/v2/projects/ID/faults/ID/comments/ID

Returns a list of comments or a single comment for the given fault with the following format:

{
"id": 14,
"fault_id": 2,
"event": null,
"source": "unknown",
"notices_count": 0,
"created_at": "2012-08-22T15:47:26Z",
"author": "Inigo",
"body": "You killed my father; prepare to die"
}
Terminal window
curl -u AUTH_TOKEN: -X POST -H 'Content-type: application/json' -d '{"comment":{"body":"My comment"}}' https://app.honeybadger.io/v2/projects/ID/faults/ID/comments

The body field is the only field that can be included in the payload.

Terminal window
curl -u AUTH_TOKEN: -X PUT -H 'Content-type: application/json' -d '{"comment":{"body":"Updated comment"}}' https://app.honeybadger.io/v2/projects/ID/faults/ID/comments/ID
Terminal window
curl -u AUTH_TOKEN: -X DELETE https://app.honeybadger.io/v2/projects/ID/faults/ID/comments/ID