Create comment

This will create a new comment.

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

URL parameters

incident_id
required string

Headers

Authorization
required string
Content_Type
string

Body parameters

content
required string
201

Response body

{
  "data": {
    "id": "123",
    "type": "incident_comment",
    "attributes": {
      "id": 123,
      "content": "posted from API",
      "created_at": "2025-06-03T12:10:28.357Z",
      "updated_at": "2025-06-03T12:10:28.357Z"
    }
  }
}
403

Example cURL

Simple text Rich-formatted comment
curl --request POST \
  --url https://uptime.betterstack.com/api/v2/incidents/1/comments \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"content": "Posted from API"}'
curl --request POST \
  --url https://uptime.betterstack.com/api/v2/incidents/1/comments \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "content": "# ๐Ÿšจ Incident Update\n\nHere is the current system status:\n\n| Component | Status       |\n|-----------|--------------|\n| API       | โœ… Operational |\n| Database  | ๐Ÿ”„ Restarting |\n| Cache     | โŒ Down       |\n\n_Updated automatically via API._"
  }'