POST
/
v1
/
incidents
curl --request POST \
  --url https://api.rootly.com/v1/incidents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "incidents",
    "attributes": {
      "title": "<string>",
      "kind": "normal",
      "parent_incident_id": "<string>",
      "duplicate_incident_id": "<string>",
      "private": false,
      "summary": "<string>",
      "user_id": "<string>",
      "severity_id": "<string>",
      "environment_ids": [
        "<string>"
      ],
      "incident_type_ids": [
        "<string>"
      ],
      "service_ids": [
        "<string>"
      ],
      "functionality_ids": [
        "<string>"
      ],
      "group_ids": [
        "<string>"
      ],
      "cause_ids": [
        "<string>"
      ],
      "labels": {},
      "slack_channel_name": "<string>",
      "notify_emails": [
        "<string>"
      ],
      "status": "in_triage",
      "url": "<string>",
      "scheduled_for": "<string>",
      "scheduled_until": "<string>",
      "in_triage_at": "<string>",
      "started_at": "<string>",
      "detected_at": "<string>",
      "acknowledged_at": "<string>",
      "mitigated_at": "<string>",
      "resolved_at": "<string>",
      "cancelled_at": "<string>"
    }
  }
}'
{
  "data": {
    "id": "dd949a24-896a-4ccd-a940-6c25099e9093",
    "type": "incidents",
    "attributes": {
      "parent_incident_id": null,
      "sequential_id": 4,
      "title": "Oh no! Something is broken",
      "slug": "oh-no-something-is-broken",
      "kind": "normal",
      "private": false,
      "summary": "this is the description and there are new lines\n\nthis is the next line\n\nthis is the 3rd line",
      "status": "started",
      "source": "api",
      "url": "http://localhost:3001/account/incidents/4-oh-no-something-is-broken",
      "short_url": null,
      "user": {
        "data": {
          "id": "315",
          "type": "users",
          "attributes": {
            "name": "Merlene Hoppe",
            "email": "delbert@douglas-raynor.test",
            "phone": null,
            "phone_2": null,
            "full_name": "Merlene Hoppe",
            "full_name_with_team": "[Goyette Group] Merlene Hoppe",
            "slack_id": null,
            "time_zone": "UTC",
            "updated_at": "2025-03-20T17:52:16.207-07:00",
            "created_at": "2025-03-20T17:52:07.490-07:00"
          },
          "relationships": {
            "email_addresses": {
              "data": [
                {
                  "id": "126f60a4-fa5a-4a90-bc6a-8433e98d9732",
                  "type": "user_email_addresses"
                }
              ]
            },
            "phone_numbers": {
              "data": []
            },
            "devices": {
              "data": []
            }
          }
        }
      },
      "severity": {
        "data": {
          "id": "51980497-dbec-4d98-ae7c-28079a0da366",
          "type": "severities",
          "attributes": {
            "name": "gabkk",
            "slug": "gabkk",
            "description": "Nulla minima odit aliquid.",
            "severity": "medium",
            "color": "#E58A1F",
            "position": 1,
            "notify_emails": [],
            "slack_channels": [],
            "slack_aliases": [],
            "created_at": "2025-03-20T17:52:10.681-07:00",
            "updated_at": "2025-03-20T17:52:10.681-07:00"
          }
        }
      },
      "in_triage_by": null,
      "started_by": {
        "data": {
          "id": "315",
          "type": "users",
          "attributes": {
            "name": "Merlene Hoppe",
            "email": "delbert@douglas-raynor.test",
            "phone": null,
            "phone_2": null,
            "full_name": "Merlene Hoppe",
            "full_name_with_team": "[Goyette Group] Merlene Hoppe",
            "slack_id": null,
            "time_zone": "UTC",
            "updated_at": "2025-03-20T17:52:16.207-07:00",
            "created_at": "2025-03-20T17:52:07.490-07:00"
          },
          "relationships": {
            "email_addresses": {
              "data": [
                {
                  "id": "126f60a4-fa5a-4a90-bc6a-8433e98d9732",
                  "type": "user_email_addresses"
                }
              ]
            },
            "phone_numbers": {
              "data": []
            },
            "devices": {
              "data": []
            }
          }
        }
      },
      "mitigated_by": null,
      "resolved_by": null,
      "closed_by": null,
      "cancelled_by": null,
      "mitigation_message": null,
      "resolution_message": null,
      "cancellation_message": null,
      "public_title": null,
      "duplicate_incident_id": null,
      "retrospective_progress_status": "not_started",
      "zoom_meeting_id": null,
      "zoom_meeting_start_url": null,
      "zoom_meeting_join_url": null,
      "zoom_meeting_password": null,
      "zoom_meeting_pstn_password": null,
      "zoom_meeting_h323_password": null,
      "zoom_meeting_global_dial_in_numbers": [],
      "shortcut_story_id": null,
      "shortcut_story_url": null,
      "shortcut_task_id": null,
      "shortcut_task_url": null,
      "asana_task_id": null,
      "asana_task_url": null,
      "github_issue_id": null,
      "github_issue_url": null,
      "gitlab_issue_id": null,
      "gitlab_issue_url": null,
      "jira_issue_key": null,
      "jira_issue_id": null,
      "jira_issue_url": null,
      "google_meeting_id": null,
      "google_meeting_url": null,
      "trello_card_id": null,
      "trello_card_url": null,
      "linear_issue_id": null,
      "linear_issue_url": null,
      "zendesk_ticket_id": null,
      "zendesk_ticket_url": null,
      "motion_task_id": null,
      "motion_task_url": null,
      "clickup_task_id": null,
      "clickup_task_url": null,
      "slack_channel_name": null,
      "slack_channel_id": null,
      "slack_channel_url": null,
      "slack_channel_short_url": null,
      "slack_channel_deep_link": null,
      "slack_channel_archived": false,
      "slack_last_message_ts": null,
      "service_now_incident_id": null,
      "service_now_incident_key": null,
      "service_now_incident_url": null,
      "opsgenie_incident_id": null,
      "opsgenie_incident_url": null,
      "opsgenie_alert_id": null,
      "opsgenie_alert_url": null,
      "victor_ops_incident_id": null,
      "victor_ops_incident_url": null,
      "pagerduty_incident_id": null,
      "pagerduty_incident_number": null,
      "pagerduty_incident_url": null,
      "mattermost_channel_id": null,
      "mattermost_channel_name": null,
      "mattermost_channel_url": null,
      "confluence_page_id": null,
      "confluence_page_url": null,
      "quip_page_id": null,
      "quip_page_url": null,
      "airtable_base_key": null,
      "airtable_table_name": null,
      "airtable_record_id": null,
      "airtable_record_url": null,
      "google_drive_id": null,
      "google_drive_parent_id": null,
      "google_drive_url": null,
      "sharepoint_page_id": null,
      "sharepoint_page_url": null,
      "datadog_notebook_id": null,
      "datadog_notebook_url": null,
      "freshservice_ticket_id": null,
      "freshservice_ticket_url": null,
      "freshservice_task_id": null,
      "freshservice_task_url": null,
      "scheduled_for": null,
      "scheduled_until": null,
      "in_triage_at": null,
      "started_at": "2025-03-20T17:52:16.362-07:00",
      "detected_at": null,
      "acknowledged_at": null,
      "mitigated_at": null,
      "resolved_at": null,
      "closed_at": null,
      "cancelled_at": null,
      "created_at": "2025-03-20T17:52:16.420-07:00",
      "updated_at": "2025-03-20T17:52:16.594-07:00",
      "labels": {
        "platform": "windows",
        "version": "1.12",
        "CaseSensitive": "preserve"
      }
    },
    "relationships": {
      "causes": {
        "data": [
          {
            "id": "824b606a-ef87-4e11-9e51-a0ee93f1aad0",
            "type": "causes"
          },
          {
            "id": "a4332a76-8e9c-4112-9755-e91c202a63fb",
            "type": "causes"
          }
        ]
      },
      "subscribers": {
        "data": []
      },
      "roles": {
        "data": [
          {
            "id": "57cf4a79-3676-459f-a547-4cf7e8560537",
            "type": "incident_role_assignments"
          }
        ]
      },
      "environments": {
        "data": [
          {
            "id": "9444341b-0f18-421a-a087-7105f7f0b5d4",
            "type": "environments"
          },
          {
            "id": "bf62982f-0d2a-4410-9f68-38bb7998961e",
            "type": "environments"
          }
        ]
      },
      "incident_types": {
        "data": [
          {
            "id": "c4a1fbf5-5c9d-4d1b-a6bb-0afea0ca012e",
            "type": "incident_types"
          },
          {
            "id": "80d16b9b-30fa-4472-8020-ccecdf6de502",
            "type": "incident_types"
          }
        ]
      },
      "services": {
        "data": [
          {
            "id": "023bacda-8f6f-4f3b-b0b7-bfd9e4f5fb72",
            "type": "services"
          },
          {
            "id": "5834ec28-6e5b-40ba-a675-c6708af2f3bc",
            "type": "services"
          }
        ]
      },
      "functionalities": {
        "data": [
          {
            "id": "b43abcf9-dd7c-4057-95d5-d4b1d13085e6",
            "type": "functionalities"
          },
          {
            "id": "1a2c0d15-b994-4851-8e31-f3e4a889485d",
            "type": "functionalities"
          }
        ]
      },
      "groups": {
        "data": [
          {
            "id": "e83eda5d-c01d-4430-8998-b105ce29a73d",
            "type": "groups"
          },
          {
            "id": "1102667c-9d15-4eb1-8239-6dd95a67d6e1",
            "type": "groups"
          }
        ]
      },
      "events": {
        "data": [
          {
            "id": "207682e2-d207-44f1-ab37-4b679562e293",
            "type": "incident_events"
          },
          {
            "id": "4050b2bf-0c3a-490f-8c31-5f293bd1ea4a",
            "type": "incident_events"
          },
          {
            "id": "96e4567d-85ff-4f32-adbb-44788ee03a29",
            "type": "incident_events"
          },
          {
            "id": "ae31de8d-b7cf-4dcb-9b06-1360936e04a0",
            "type": "incident_events"
          }
        ]
      },
      "action_items": {
        "data": []
      },
      "custom_field_selections": {
        "data": []
      },
      "feedbacks": {
        "data": []
      },
      "attachments": {
        "data": []
      },
      "slack_messages": {
        "data": []
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/vnd.api+json
data
object
required

Response

201
application/vnd.api+json
incident created
data
object
required