Skip to main content

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

NameLocationTypeDescription
workflow_idrequiredpathinteger
authorizationheaderobject
X-API-Keyheaderobject

Responses

200Successful Response
application/json
View schema
{
  "$ref": "#/components/schemas/WorkflowResponse"
}
404Not found
422Validation Error
application/json
View schema
{
  "$ref": "#/components/schemas/HTTPValidationError"
}