Skip to main content
GET
/
v1
/
incident_attachments
List
curl --request GET \
  --url https://api.incident.io/v1/incident_attachments
{
  "incident_attachments": [
    {
      "id": "01FCNDV6P870EA6S7TK1DSYD5H",
      "incident_id": "01FCNDV6P870EA6S7TK1DSYD5H",
      "resource": {
        "external_id": "123",
        "permalink": "https://my.pagerduty.com/incidents/ABC",
        "resource_type": "pager_duty_incident",
        "title": "The database has gone down"
      }
    }
  ]
}

Query Parameters

incident_id
string

Incident that this attachment is against

Example:

"01G0J1EXE7AXZ2C93K61WBPYEH"

external_id
string

ID of the resource in the external system

Example:

"123"

resource_type
enum<string>

E.g. PagerDuty: the external system that holds the resource

Available options:
pager_duty_incident,
opsgenie_alert,
datadog_monitor_alert,
github_pull_request,
gitlab_merge_request,
sentry_issue,
jira_issue,
jsm_alert,
atlassian_statuspage_incident,
zendesk_ticket,
google_calendar_event,
outlook_calendar_event,
slack_file,
scrubbed,
statuspage_incident
Example:

"pager_duty_incident"

Response

200 - application/json

OK response.

incident_attachments
object[]
required
Example:
[
{
"id": "01FCNDV6P870EA6S7TK1DSYD5H",
"incident_id": "01FCNDV6P870EA6S7TK1DSYD5H",
"resource": {
"external_id": "123",
"permalink": "https://my.pagerduty.com/incidents/ABC",
"resource_type": "pager_duty_incident",
"title": "The database has gone down"
}
}
]