| title | API Reference |
|---|---|
| description | REST API endpoints for traces, incidents, services, and more. |
The Wraith API is a REST API. All endpoints are under your Wraith instance URL.
``` Authorization: Bearer ``` Get your key from **Settings > API Keys** in the dashboard. Alert endpoints use a different header: ``` x-wraith-webhook-secret: ```POST /api/mcp
Model Context Protocol endpoint for IDE integrations (Cursor, Claude Code). See Introduction for setup.
POST /api/traces/ingest
Accepts trace bundles generated by the SDK. Authenticated with API key.
GET /api/traces
Query parameters: serviceName, environment, limit (default 50), offset
GET /api/traces/<id>
GET /api/traces/<id>/bug-signals
GET /api/traces/<id>/download
GET /api/incidents/list
Query parameters: status, service, limit (default 50), offset
Example response:
{
"incidents": [
{
"id": "inc_abc123",
"title": "High Error Rate on user-api",
"status": "ESCALATED",
"service": "user-api",
"confidence": 0.92,
"createdAt": "2026-03-29T12:00:00Z"
}
],
"total": 45
}GET /api/incidents/<id>
POST /api/incidents/<id>/feedback
{
"verdictCorrect": true,
"comment": "Root cause was correctly identified"
}POST /api/incidents/<id>/analyze-commits
GET /api/incidents/<id>/pipeline-progress
GET /api/incidents/<id>/multi-service-rca
GET /api/services/health # Service health status
GET /api/services/inventory # All discovered services
GET /api/services/graph # Dependency graph
GET /api/services/graph/health # Graph with health overlay
GET /api/runbooks # List
POST /api/runbooks # Create
GET /api/runbooks/<id> # Get
PATCH /api/runbooks/<id> # Update
POST /api/runbooks/<id>/execute # Execute
POST /api/runbooks/match # Match to incident
GET /api/org # Get org
PATCH /api/org # Update org
GET /api/org/api-keys # List API keys
POST /api/org/api-keys # Create API key
DELETE /api/org/api-keys/<id> # Revoke
GET /api/org/members # List members
POST /api/org/members # Invite
DELETE /api/org/members/<id> # Remove
GET /api/integrations # List all
POST /api/integrations # Create
POST /api/integrations/<id>/test # Test connection
GET /api/health # Health check (no auth)
GET /api/user # Current user
All endpoints return errors in this format:
{
"error": "Error message",
"code": "ERROR_CODE"
}| Code | Meaning |
|---|---|
400 |
Bad request |
401 |
Unauthorized — missing or invalid API key |
403 |
Forbidden |
404 |
Not found |
429 |
Rate limited — check Retry-After header |
500 |
Internal error |