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.
Path parameters
- name string REQUIRED
- The process name as defined in the YAML
process.namefield.
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"
const res = await fetch(
"https://api.opensop.dev/sop/customer-onboarding/schema",
{ headers: { "X-SOP-Token": process.env.OPENSOP_TOKEN } }
);
resp = requests.get(
"https://api.opensop.dev/sop/customer-onboarding/schema",
headers={"X-SOP-Token": os.environ["OPENSOP_TOKEN"]}
)
Net::HTTP.start("api.opensop.dev", use_ssl: true) do |h|
req = Net::HTTP::Get.new("/sop/customer-onboarding/schema")
req["X-SOP-Token"] = ENV["OPENSOP_TOKEN"]
puts h.request(req).body
end
RESPONSE
200
{
"name": "customer-onboarding",
"version": "1.0",
"description": "Onboard a new business customer",
"inputs": [...],
"steps": [...]
}