OpenSOP API Reference v0.1

List pending steps

GET /sop/steps/pending

Returns all steps across all instances that are in the active state and of type automated. External workers poll this endpoint to discover work.

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

Response

200 application/json — Array of active automated step objects with their instance context.

Errors

401 unauthorized Token missing or revoked.
curl https://api.opensop.dev/sop/steps/pending \
  -H "X-SOP-Token: $OPENSOP_TOKEN"
RESPONSE 200
[
  {
    "step_id":    "send-welcome-email",
    "instance_id": "01HXYZ_ACME_001",
    "process":    "customer-onboarding",
    "inputs":     { "email": "[email protected]" }
  }
]