Creates a new incident in your organization.
curl --request POST \
--url "https://api.scaling.cloud/v1/incidents" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"title": "Payment service elevated error rate",
"description": "The payment processing service is returning 5xx errors at 12% above baseline.",
"severity": "critical",
"ownerScheduleId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"componentIds": ["6ba7b810-9dad-11d1-80b4-00c04fd430c8"]
}'
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"orgId": "org_01HX4K9MNPQRST",
"title": "Payment service elevated error rate",
"severity": "critical",
"status": "investigating",
"affectedComponents": [
{ "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "name": "Payments API" }
],
"createdAt": "2025-04-07T08:23:11.000Z",
"updatedAt": "2025-04-07T08:23:11.000Z"
}
}
Creates a new incident and sets its initial status toDocumentation Index
Fetch the complete documentation index at: https://docs.scaling.cloud/llms.txt
Use this file to discover all available pages before exploring further.
investigating. Pass ownerId to assign a specific user, or ownerScheduleId to let the server resolve the current on-call responder and attach a matching escalation policy — at least one is required.
critical, high, medium, or low.ownerId or ownerScheduleId is required so the paging path always has a target — a request without either is rejected with 400.ownerScheduleId is also supplied, ownerId wins for the resolved owner and the schedule is still used to attach an escalation policy.404 if the schedule does not exist in your organization.201 Created with the new incident.
Hide properties
critical, high, medium, or low.investigating for a newly created incident.id and name. Empty array if no components were specified.| Status | Code | Description |
|---|---|---|
400 | invalid_component_id | One of the componentIds does not exist in your organization. |
400 | duplicate_component_id | componentIds contains duplicate entries. |
400 | — | Request body failed validation (e.g. title exceeds 100 characters, severity is not a valid value, or neither ownerId nor ownerScheduleId was supplied). |
401 | not_authorized | Missing or invalid API key. |
404 | not_found | The ownerScheduleId does not refer to a schedule in your organization. |
500 | server_error | An unexpected error occurred on our side. |
curl --request POST \
--url "https://api.scaling.cloud/v1/incidents" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"title": "Payment service elevated error rate",
"description": "The payment processing service is returning 5xx errors at 12% above baseline.",
"severity": "critical",
"ownerScheduleId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"componentIds": ["6ba7b810-9dad-11d1-80b4-00c04fd430c8"]
}'
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"orgId": "org_01HX4K9MNPQRST",
"title": "Payment service elevated error rate",
"severity": "critical",
"status": "investigating",
"affectedComponents": [
{ "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "name": "Payments API" }
],
"createdAt": "2025-04-07T08:23:11.000Z",
"updatedAt": "2025-04-07T08:23:11.000Z"
}
}
curl --request POST \
--url "https://api.scaling.cloud/v1/incidents" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"title": "Payment service elevated error rate",
"description": "The payment processing service is returning 5xx errors at 12% above baseline.",
"severity": "critical",
"ownerScheduleId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"componentIds": ["6ba7b810-9dad-11d1-80b4-00c04fd430c8"]
}'
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"orgId": "org_01HX4K9MNPQRST",
"title": "Payment service elevated error rate",
"severity": "critical",
"status": "investigating",
"affectedComponents": [
{ "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "name": "Payments API" }
],
"createdAt": "2025-04-07T08:23:11.000Z",
"updatedAt": "2025-04-07T08:23:11.000Z"
}
}