List error comments

List the comments on an error and on its occurrences, newest first. An error with no comments, or one that never occurred, returns an empty list.

GET https://errors.betterstack.com/api/v4/applications/{application_id}/errors/{error_id}/comments

URL parameters

application_id
required string
error_id
required string

Query parameters

page
integer
per_page
DEFAULT 50 integer
team_id
string

Headers

Authorization
required string

Results are paginated

Use pagination.next and pagination.prev to move through pages or jump to a specific one using page and per_page. See Pagination.

200

Response body

{
  "data": [
    {
      "id": "123456789",
      "type": "error_comment",
      "attributes": {
        "content": "Rolled back the 14:05 deploy. The error stopped.",
        "plaintext_content": "Rolled back the 14:05 deploy. The error stopped.",
        "author_name": "Jane Smith",
        "user_email": "jane@example.com",
        "posted_via": null,
        "linear_issue": null,
        "event": null,
        "created_at": "2026-11-16T07:58:02Z",
        "updated_at": "2026-11-16T07:58:02Z"
      }
    }
  ],
  "pagination": {
    "first": "https://errors.betterstack.com/api/v4/applications/1234/errors/6f1c2b9a8e4d7f3012ab45cd/comments?page=1",
    "last": "https://errors.betterstack.com/api/v4/applications/1234/errors/6f1c2b9a8e4d7f3012ab45cd/comments?page=1",
    "prev": null,
    "next": null,
    "total_count": 1
  }
}
401

Response body

{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/logs/api/getting-started/#obtaining-a-logtail-api-token"
}
403
404

Response attributes

id
string
type
string
content
string
plaintext_content
string
author_name
string
user_email
string or null
posted_via
string or null
linear_issue
string or null
event
string or null
created_at
datetime
updated_at
datetime
pagination.first
string
pagination.last
string
pagination.prev
string or null
pagination.next
string or null
pagination.total_count
integer

Example cURL

List error comments
curl --request GET \
  --url https://errors.betterstack.com/api/v4/applications/1234/errors/6f1c2b9a8e4d7f3012ab45cd/comments \
  --header "Authorization: Bearer $TOKEN"