Szerezzen ügynököt
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 példa
curl -X GET \
'http://localhost:8000/api/v1/workflow/fetch/{workflow_id}' \
-H 'Authorization: Bearer <API_KEY>'Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workflow_idkötelező | path | integer | — |
authorization | header | object | — |
X-API-Key | header | object | — |
Válaszok
200Successful Responseapplication/jsonSéma megtekintése
{
"$ref": "#/components/schemas/WorkflowResponse"
}404Not found422Validation Errorapplication/jsonSéma megtekintése
{
"$ref": "#/components/schemas/HTTPValidationError"
}