Create an incident.
const url = 'https://api.siteqwality.com/v1/incidents';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"status_page_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","title":"example","severity":"minor","message":"example","affected_http_job_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"service_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","monitors":[{"monitor_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","monitor_type":"http","impact":"degraded"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.siteqwality.com/v1/incidents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "status_page_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "title": "example", "severity": "minor", "message": "example", "affected_http_job_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "service_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "monitors": [ { "monitor_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "monitor_type": "http", "impact": "degraded" } ] }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Makes a retry safe: the same key and body within 24 hours returns the first response with Idempotent-Replayed: true. The same key with another body is refused with 422 idempotency_key_reused, and one still running with 409 idempotency_key_in_use.
Request Body required
Section titled “Request Body required ”object
Deprecated: use monitors.
Responses
Section titled “ Responses ”The incident
object
Deprecated: the first page it was created on. status_page_ids lists every page.
Every status page the incident is published on.
The title status pages show; null shows title.
First recorded successful page; absent when no page_sent event exists. Detail endpoints only.
First transition to public monitoring status. Detail endpoints only.
True while nobody acknowledged it and its escalation policy ran out, so nobody owns it. Detail endpoints only.
Who resolved it; null for automatic and API-key resolves.
True when the incident was opened automatically by a monitor state change; false for incidents created manually.
object
The public status when it was posted.
public updates show on status pages; internal ones only here.
Who posted it; null for the system, API keys and older updates.
Deprecated: the http entries of monitors, for one release.
The incident this one was merged into; it is then resolved.
merged for a merged incident, else null.
Every monitor of the incident. Empty on list endpoints.
object
Null when the monitor was deleted.
auto when a failure joined it, manual when someone added it.
Who works it, the lead first. Empty on list endpoints.
object
Who added them; the acknowledger for an automatic lead.
When they were paged on being added; null when they were not.
The incidents merged into this one, each with its own updates. Empty on list endpoints.
An incident merged into this one; its updates stay on it.
object
object
The public status when it was posted.
public updates show on status pages; internal ones only here.
Who posted it; null for the system, API keys and older updates.
Example
{ "severity": "minor", "status": "investigating", "responder_status": "triggered", "updates": [ { "status": "investigating", "visibility": "public" } ], "monitors": [ { "monitor_type": "http", "impact": "degraded", "source": "auto" } ], "participants": [ { "role": "lead" } ], "merged_from": [ { "updates": [ { "status": "investigating", "visibility": "public" } ] } ]}Headers
Section titled “Headers ”true when this is the stored first response
Invalid request body
An RFC 9457 problem, the body of every /v1 error.
object
https://docs.siteqwality.com/errors/ and the failure’s code, such as not_found.
urn:uuid: and the request id.
The invalid fields, when the request body was refused.
One validation failure; pointer is an RFC 6901 pointer into the request body.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "errors": [ { "pointer": "example", "detail": "example" } ]}Missing or invalid credentials
An RFC 9457 problem, the body of every /v1 error.
object
https://docs.siteqwality.com/errors/ and the failure’s code, such as not_found.
urn:uuid: and the request id.
The invalid fields, when the request body was refused.
One validation failure; pointer is an RFC 6901 pointer into the request body.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "errors": [ { "pointer": "example", "detail": "example" } ]}The key or member may not do this, or lacks the scope it needs
An RFC 9457 problem, the body of every /v1 error.
object
https://docs.siteqwality.com/errors/ and the failure’s code, such as not_found.
urn:uuid: and the request id.
The invalid fields, when the request body was refused.
One validation failure; pointer is an RFC 6901 pointer into the request body.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "errors": [ { "pointer": "example", "detail": "example" } ]}No such status page, service or monitor in this account
An RFC 9457 problem, the body of every /v1 error.
object
https://docs.siteqwality.com/errors/ and the failure’s code, such as not_found.
urn:uuid: and the request id.
The invalid fields, when the request body was refused.
One validation failure; pointer is an RFC 6901 pointer into the request body.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "errors": [ { "pointer": "example", "detail": "example" } ]}Too many requests; wait for the time in Retry-After
An RFC 9457 problem, the body of every /v1 error.
object
https://docs.siteqwality.com/errors/ and the failure’s code, such as not_found.
urn:uuid: and the request id.
The invalid fields, when the request body was refused.
One validation failure; pointer is an RFC 6901 pointer into the request body.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "errors": [ { "pointer": "example", "detail": "example" } ]}