Spike.sh
DashboardWebsiteHUB
Spike API docs
Spike API docs
  • Page
  • About
  • API reference
    • Incidents
      • Create
      • Get previous incidents
      • Incident context
      • Activity log
      • Triggered
      • Acknowledged
      • Assigned to user
      • Acknowledge
      • Resolve
      • Escalate
      • Priority
      • Severity
    • Services
      • Create
      • Affected
    • On calls
    • Integrations
      • Available
      • Create
      • Archive
    • Orgs
      • Members
      • Info
    • Teams
      • Get all teams
      • Get my teams
    • Oncalls
      • Am i on call
      • Upcoming shifts
    • Status page
      • All
      • Component
        • Create
      • Incidents
      • Planned maintenance
        • Upcoming
        • Create
      • Subscribers
      • Incident
        • New
  • Specification
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. API reference
  2. Incidents

Create

PreviousIncidentsNextGet previous incidents

Was this helpful?

Create an incident

post

Creates an incident and sends alerts

Header parameters
x-api-keystringRequired

API Key for authentication

x-team-idstringRequired

Team ID

Body
titlestringRequired

Incident title

metadatastringOptional

Additional metadata

escalationstringRequired

Escalation ID

integrationstringRequired

Integration token

prioritystring · enumOptional

Priority level

Possible values:
severitystring · enumOptional

Severity level

Possible values:
Responses
200
Incident created successfully
401
Unauthorized
post
POST /incidents/create HTTP/1.1
Host: api.spike.sh
x-api-key: text
x-team-id: text
Content-Type: application/json
Accept: */*
Content-Length: 109

{
  "title": "text",
  "metadata": "text",
  "escalation": "text",
  "integration": "text",
  "priority": "p1",
  "severity": "sev1"
}

No content