curl -X POST "https://kodostatus.com/api/v1/incidents/550e8400-e29b-41d4-a716-446655440000/publish" \
-H "X-API-Key: your_api_key"
const response = await fetch(
'https://kodostatus.com/api/v1/incidents/550e8400-e29b-41d4-a716-446655440000/publish',
{
method: 'POST',
headers: { 'X-API-Key': 'your_api_key' }
}
);
{
"success": true
}
Incidents
Publish Incident
Publish a draft incident to make it visible on the public status page
POST
/
incidents
/
{id}
/
publish
curl -X POST "https://kodostatus.com/api/v1/incidents/550e8400-e29b-41d4-a716-446655440000/publish" \
-H "X-API-Key: your_api_key"
const response = await fetch(
'https://kodostatus.com/api/v1/incidents/550e8400-e29b-41d4-a716-446655440000/publish',
{
method: 'POST',
headers: { 'X-API-Key': 'your_api_key' }
}
);
{
"success": true
}
Publishes a draft incident, making it visible on the public status page. This also triggers the
incident_published workflow and updates the edge cache.
Path Parameters
string
required
The incident ID to publish
Response
boolean
Whether the incident was published successfully
curl -X POST "https://kodostatus.com/api/v1/incidents/550e8400-e29b-41d4-a716-446655440000/publish" \
-H "X-API-Key: your_api_key"
const response = await fetch(
'https://kodostatus.com/api/v1/incidents/550e8400-e29b-41d4-a716-446655440000/publish',
{
method: 'POST',
headers: { 'X-API-Key': 'your_api_key' }
}
);
{
"success": true
}
Errors
| Status | Error | Description |
|---|---|---|
| 400 | Incident is already public | The incident has already been published |
| 404 | Incident not found | No incident exists with this ID |
Publishing an incident triggers the
incident_published workflow and sends notifications to subscribers. This action cannot be undone.