Skip to main content
POST
/
services
curl -X POST "https://kodostatus.com/api/v1/services" \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Payment Gateway",
    "description": "Handles all payment processing",
    "status": "operational"
  }'
{
  "id": "uuid",
  "name": "Payment Gateway",
  "description": "Handles all payment processing",
  "status": "operational"
}

Body Parameters

name
string
required
Service name
description
string
Service description
status
string
default:"operational"
Initial status: operational, degraded, partial_outage, major_outage, maintenance

Response

Returns the created service object.
curl -X POST "https://kodostatus.com/api/v1/services" \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Payment Gateway",
    "description": "Handles all payment processing",
    "status": "operational"
  }'
{
  "id": "uuid",
  "name": "Payment Gateway",
  "description": "Handles all payment processing",
  "status": "operational"
}