This guide walks you through creating an incident via the Scaling API, transitioning it through its lifecycle, and resolving it with a note. The flow shown here uses the simpleDocumentation Index
Fetch the complete documentation index at: https://docs.scaling.cloud/llms.txt
Use this file to discover all available pages before exploring further.
PATCH /status endpoint with an optional staff-only resolutionNote.
Prerequisites
- A Scaling API key. You can find or create one in Settings → API Access in the dashboard.
curlor any HTTP client.
Create an incident
Send a A successful response returns the new incident object with
POST request to /api/incidents with a title, severity, and optional description.At least one of
ownerId or ownerScheduleId is required so the paging path always has a target — a request without either is rejected with 400.201 Created:Every incident starts in
investigating status. The severity levels available are:| Severity | When to use |
|---|---|
critical | Complete outage or data loss affecting all users |
high | Major degradation affecting most users |
medium | Partial degradation or workaround available |
low | Minor issue with minimal user impact |
Transition the incident status
Move the incident forward by sending a The response reflects the updated incident:Continue transitioning through
PATCH request to /api/incidents/{id}/status. Status transitions are one-way and must follow the sequence: investigating → identified → monitoring → resolved.Here, you transition from investigating to identified once you’ve found the root cause:monitoring the same way as conditions stabilize.Continue through the lifecycle
Once a fix is deployed, transition to When the incident is fully mitigated and confirmed stable, transition to The response confirms the resolved state:
monitoring to indicate you are watching for confirmation that the fix holds.resolved. Include a resolutionNote to document what happened and how it was fixed:You must progress through each status in order:
investigating → identified → monitoring → resolved. You cannot skip steps or go backwards. Resolution notes can be included on any transition and are up to 2,000 characters.resolved is terminal. Once an incident is resolved, no further status changes or updates can be posted on it (you may still redact earlier updates). If you need a post-incident write-up to appear on the status page, publish it as a public update before transitioning to resolved.