Read a Workflow version
GET /v1/workflows/{workflow_id}/versions/{version}
Property Value Operation get_workflow_versionGroup Workflows Scope workflows:readRoute class readIdempotency No Idempotency-Key Audit Not audited: A configuration read; a Workflow is not Call content. Released in 1.59.0 Phase 0 host Served (the hosted api pins 1.65.0)
Request
Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the workflows:read scope (Authentication and keys ). Replace each placeholder, such as agt_... or <name>, with your own value.
cURL Node.js Python
curl "$VOCAL_API/v1/workflows/wfl_.../versions/1" \
-H "Authorization: Bearer $VOCAL_API_KEY"const response = await fetch(`${process.env.VOCAL_API}/v1/workflows/wfl_.../versions/1`, {
headers: {
Authorization: `Bearer ${process.env.VOCAL_API_KEY}`,
},
});
console.log(response.status, await response.text());import os
import requests
response = requests.get(
f"{os.environ['VOCAL_API']}/v1/workflows/wfl_.../versions/1",
headers={
"Authorization": f"Bearer {os.environ['VOCAL_API_KEY']}",
},
)
print(response.status_code, response.text)
Parameters
Name In Type Required Description workflow_idpath WorkflowId yes The id of a Workflow: wfl_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log. versionpath integer yes A version number, from 1.
Responses
Fields of the 200 answer
The shape is WorkflowVersion .
Field Type Required Description activeboolean yes True for the active version: the one the next Agent version publish pins. agent_idAgentId no Conversation scope only, and required there: the default Agent, which supplies voice, transcriber, model, Policies, Tools and destinations. correlationWorkflowCorrelation no descriptionstring or null yes engine_versionstring yes The Zen engine version the version's decisions and expressions were checked under. entryWorkflowNodeId yes format_versioninteger yes The version of the compiled form the Session runs, 1 in this release. graph_sha256string yes The SHA-256 of the canonical JSON (RFC 8785) of the definition as published, in lowercase hex. inputsmap of WorkflowField no Call variables (conversation) or start inputs (process). limitsWorkflowLimits yes namestring yes Kebab-case, unique per Organization. nodesarray of WorkflowNode yes Exactly one entry node; at most 200 nodes, loop bodies included (target). notesstring or null yes object"workflow_version"yes outputsmap of WorkflowField no The typed result returned to a parent or a starting Process. pinsWorkflowPins yes published_atTimestamp yes published_byActorRef yes scopeWorkflowScope yes settingsmap of WorkflowSetting no Process scope: named thresholds and constants that evaluate nodes read. slotsmap of WorkflowField no Conversation scope: the Session's typed slots. source_revisioninteger yes The draft revision this version was published from. statusWorkflowVersionStatus yes varsmap of WorkflowField no Process scope: the instance's working data. versioninteger yes The snapshot number, from 1. workflow_idWorkflowId yes