OpenSOP API Reference v0.1

Deliver a webhook callback

POST /sop/webhooks/:callback_id

POSTs back to a one-shot callback URL generated by the engine when a webhook step starts. The ULID in the path is the credential. Once consumed, the URL is invalidated and subsequent calls return 409.

AUTH —
No bearer token required. The ULID in the path is the credential — it is single-use and time-limited.

Path parameters

callback_id string (ULID) REQUIRED
One-shot ULID generated by the engine when a webhook step starts. Obtain from the step's callback_url field.

Response

200 application/json — Step advanced; instance continues execution.

Errors

404 not_found Callback ID does not exist or has expired.
409 callback_already_resolved This URL was already consumed.
curl https://api.opensop.dev/sop/webhooks/01HXYZ_CB_TOKEN \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"status":"success","document_id":"DOC-1234"}'
RESPONSE 200
{
  "received": true,
  "step_id":   "verify-kyc"
}