Get Agent
GET
/api/v1/workflow/fetch/{workflow_id}Get a single workflow by ID. If a draft version exists, returns the draft content for editing. Otherwise returns the published version's content.
cURL example
curl -X GET \
'http://localhost:8000/api/v1/workflow/fetch/{workflow_id}' \
-H 'Authorization: Bearer <API_KEY>'Parameters
| Name | Location | Type | Description |
|---|---|---|---|
workflow_idrequired | path | integer | — |
authorization | header | object | — |
X-API-Key | header | object | — |
Responses
200Successful Responseapplication/jsonView schema
{
"$ref": "#/components/schemas/WorkflowResponse"
}404Not found422Validation Errorapplication/jsonView schema
{
"$ref": "#/components/schemas/HTTPValidationError"
}