OpenSOP API Reference v0.1

Register a process

POST /sop/processes/register

Upload a .sop.yaml file to register or update a process definition. If a process with the same name already exists, a new version is published. In-flight instances are unaffected.

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

Request body

Multipart form upload. Content-Type: multipart/form-data

file file REQUIRED
The .sop.yaml file to register.

Response

201 application/json — The registered process definition.

Errors

422 invalid_definition YAML failed schema or syntax check.
401 unauthorized Token missing or revoked.
curl https://api.opensop.dev/sop/processes/register \
  -X POST \
  -H "X-SOP-Token: $OPENSOP_TOKEN" \
  -F "[email protected]"
RESPONSE 201
{
  "name":    "customer-onboarding",
  "version": "1.0"
}