List all comments

List all comments under an incident.

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
      }
    },
  ]
}
404

Example cURL

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