Skip to main content
GET
/
v1
/
admin
/
detections
List detections
curl --request GET \
  --url https://api.withsplendor.com/v1/admin/detections \
  --header 'Authorization: Bearer <token>' \
  --header 'x-splendor-tenant-id: <x-splendor-tenant-id>'
{
  "rules": [
    {
      "code": null,
      "condition_type": "count_gt",
      "consecutive_triggers": 0,
      "created_at": "2026-01-15T09:30:00Z",
      "description": "Alerts when error volume spikes.",
      "enabled": true,
      "kind": "threshold",
      "last_run_at": "2026-01-15T09:30:00Z",
      "last_triggered_at": null,
      "name": "High error rate",
      "query": {
        "text": "error"
      },
      "rule_id": 3,
      "schedule_cron": "*/5 * * * *",
      "tenant_id": "acme",
      "threshold": 100,
      "updated_at": "2026-01-15T09:30:00Z",
      "webhook_url": "https://hooks.example.com/splendor"
    }
  ]
}

Authorizations

Authorization
string
header
required

API token issued from the Splendor console.

Headers

x-splendor-tenant-id
string
required

Selects the tenant (workspace) the request acts within.

Response

Successful Response

rules
DetectionRuleItem · object[]
required