Incidents
Create incident
POST
/api/v1/incidentsOpens a new incident and broadcasts a notification about it. Staff-only.
Requires Authorization
ADMIN, SUPPORT only
Authenticated action
Body parameters
titlestringrequired | Up to 200 characters. |
descriptionstringrequired | Up to 5000 characters. |
severitystring | MINOR, MAJOR, or CRITICAL. Defaults to MINOR. |
Request
curl --request POST \
--url https://api.swiftgoma.com/api/v1/incidents \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"title": "<title>",
"description": "<description>",
"severity": "<severity>"
}'201Example response
{
"success": true,
"data": {
"id": "inc_1a2b3c",
"title": "Retards de livraison à Goma",
"description": "Certains livreurs rencontrent des retards liés aux conditions de circulation.",
"severity": "MINOR",
"status": "INVESTIGATING",
"resolvedAt": null,
"createdAt": "2026-02-15T08:00:00.000Z",
"updatedAt": "2026-02-15T08:00:00.000Z"
}
}