OpenSOP API Reference v0.1

List all instances

GET /sop/instances

Returns a paginated list of instances across all processes. Filter by process name or state to narrow results.

AUTH
Requires X-SOP-Token header. See Authentication.

Query parameters

process string OPTIONAL
Filter to a specific process name.
state enum OPTIONAL
One of: pending, running, completed, failed, cancelled.

Response

200 application/json — Paginated list of instance objects.

Errors

401 unauthorized Token missing or revoked.
curl "https://api.opensop.dev/sop/instances?state=running" \
  -H "X-SOP-Token: $OPENSOP_TOKEN"
RESPONSE 200
[
  {
    "id":         "01HXYZ...",
    "process":    "customer-onboarding",
    "state":      "running",
    "started_at": "2024-01-15T10:30:00Z"
  }
]