OpenSOP API Reference v0.1

Get process schema

GET /sop/:name/schema

Returns the full YAML-parsed definition of a process. Useful for inspecting inputs, outputs, and steps before starting an instance. Defaults to the latest published version.

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

Path parameters

name string REQUIRED
The process name as defined in the YAML process.name field.

Query parameters

version string OPTIONAL
Semver version string. Omit to get the latest published version.

Response

200 application/json — Full process definition object.

Errors

404 not_found No process with that name (or version) exists.
curl https://api.opensop.dev/sop/customer-onboarding/schema \
  -H "X-SOP-Token: $OPENSOP_TOKEN"
RESPONSE 200
{
  "name":        "customer-onboarding",
  "version":     "1.0",
  "description": "Onboard a new business customer",
  "inputs":      [...],
  "steps":       [...]
}