Get incident execution log

Returns download links for the execution log and artifacts of a failed Playwright check, the same files the incident shows under Logs and Artifacts.

GET https://incidents.betterstack.com/api/v4/incidents/{incident_id}/execution-log

URL parameters

incident_id
required string

Query parameters

report_id
integer

Headers

Authorization
required string
200

Response body

{
  "data": {
    "id": "123456789",
    "type": "execution_log",
    "attributes": {
      "report_id": 98765,
      "region": "eu-central-playwright",
      "recorded_at": "2026-11-12T09:41:07.512Z",
      "log_url": "https://...",
      "log_size_bytes": 18234,
      "urls_expire_at": "2026-11-12T10:45:00.000Z",
      "artifacts": [
        {
          "file_name": "log.txt",
          "url": "https://...",
          "size_bytes": 18234
        },
        {
          "file_name": "screenshot.png",
          "url": "https://...",
          "size_bytes": 254310
        }
      ],
      "reports": [
        {
          "report_id": 98765,
          "region": "eu-central-playwright",
          "recorded_at": "2026-11-12T09:41:07.512Z"
        },
        {
          "report_id": 98701,
          "region": "us-east-playwright",
          "recorded_at": "2026-11-12T09:36:05.104Z"
        }
      ]
    }
  }
}
404

Response body

{
  "errors": "There is no execution log for this incident."
}
422

Response body

{
  "errors": "Sorry, you misspelled some attributes",
  "invalid_attributes": {
    "report_id": "Must be a positive integer"
  }
}

Response attributes

id
string
type
string
attributes.report_id
integer
attributes.region
string
attributes.recorded_at
string
attributes.log_url
string
attributes.log_size_bytes
integer
attributes.urls_expire_at
string
attributes.artifacts
array of objects
attributes.artifacts[].file_name
string
attributes.artifacts[].url
string
attributes.artifacts[].size_bytes
integer
attributes.reports
array of objects
attributes.reports[].report_id
integer
attributes.reports[].region
string
attributes.reports[].recorded_at
string

Example cURL

Newest report Older report
curl --request GET \
  --url https://incidents.betterstack.com/api/v4/incidents/123456789/execution-log \
  --header "Authorization: Bearer $TOKEN"
curl --request GET \
  --url "https://incidents.betterstack.com/api/v4/incidents/123456789/execution-log?report_id=98701" \
  --header "Authorization: Bearer $TOKEN"