Workflows
workflows
Methods
Get Workflow Details -> Envelope<{ id, class_name, created_on, 5 more... }>
get/accounts/{account_id}/workflows/{workflow_name}
Get Workflow details
List All Workflows -> V4PagePaginationArray<{ id, class_name, created_on, 5 more... }>
get/accounts/{account_id}/workflows
List all Workflows
Security
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Accepted Permissions (at least one required)
Workers Tail Read Workers Scripts Write Workers Scripts Read
Parameters
account_id: string
page: number
Optional
per_page: number
Optional
Response fields
errors: Array<{ code, message }>
messages: Array<{ code, message }>
result: Array<{ id, class_name, created_on, 5 more... }>
success: true
result_info: { count, page, per_page, 1 more... }
Optional
Request example
200Example
Create Modify Workflow -> Envelope<{ id, class_name, created_on, 5 more... }>
put/accounts/{account_id}/workflows/{workflow_name}
Create/modify Workflow
Workflows
Instances
workflows.instances
Methods
Create A New Workflow Instance -> Envelope<{ id, status, version_id, 1 more... }>
post/accounts/{account_id}/workflows/{workflow_name}/instances
Create a new workflow instance
Get Logs And Status From Instance -> Envelope<{ end, error, output, 8 more... }>
get/accounts/{account_id}/workflows/{workflow_name}/instances/{instance_id}
Get logs and status from instance
List Of Workflow Instances -> V4PagePaginationArray<{ id, created_on, ended_on, 5 more... }>
get/accounts/{account_id}/workflows/{workflow_name}/instances
List of workflow instances
Workflows
Versions
workflows.versions
Methods
Get Workflow Version Details -> Envelope<{ id, class_name, created_on, 2 more... }>
get/accounts/{account_id}/workflows/{workflow_name}/versions/{version_id}
Get Workflow version details
List Deployed Workflow Versions -> V4PagePaginationArray<{ id, class_name, created_on, 2 more... }>
get/accounts/{account_id}/workflows/{workflow_name}/versions
List deployed Workflow versions