List all comments

List all comments under an incident. This endpoint does not support pagination and returns all comments instead.

GET https://uptime.betterstack.com/api/v2/incidents/{incident_id}/comments

URL parameters

incident_id
required string

Headers

Authorization
required string
Content_Type
string
200

Response body

{
  "data": [
    {
      "id": "2",
      "type": "incident_comment",
      "attributes": {
        "id": 2,
        "content": "posted from API"
      }
    },
    {
      "id": "1",
      "type": "incident_comment",
      "attributes": {
        "id": 1,
        "content": "posted by user",
        "user_id": 1,
        "user_email": "test@example.com"
      }
    }
  ]
}
404

Example cURL

Example
curl --url https://uptime.betterstack.com/api/v2/incidents/1/comments \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json'