Workflows
Workflows
Methods
get/accounts/{account_id}/workflows
List all Workflows
get/accounts/{account_id}/workflows/{workflow_name}
Get Workflow details
put/accounts/{account_id}/workflows/{workflow_name}
Create/modify Workflow
delete/accounts/{account_id}/workflows/{workflow_name}
Deletes a Workflow. This only deletes the Workflow and does not delete or modify any Worker associated to this Workflow or bounded to it.
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 Scripts Write
Parameters
workflowName: string
(maxLength: 64, minLength: 1)params:
account_id: string
Returns
WorkflowDeleteResponse{
status: "ok"
success: boolean | null
Request example
200Example
Workflows
Instances
Workflows.Instances
Methods
get/accounts/{account_id}/workflows/{workflow_name}/instances
List of workflow instances
get/accounts/{account_id}/workflows/{workflow_name}/instances/{instance_id}
Get logs and status from instance
post/accounts/{account_id}/workflows/{workflow_name}/instances
Create a new workflow instance
post/accounts/{account_id}/workflows/{workflow_name}/instances/batch
Batch create new Workflow instances
Methods
post/accounts/{account_id}/workflows/{workflow_name}/instances/{instance_id}/events/{event_type}
Send event to instance
Methods
patch/accounts/{account_id}/workflows/{workflow_name}/instances/{instance_id}/status
Change status of instance
Workflows
Versions
Workflows.Versions
Methods
get/accounts/{account_id}/workflows/{workflow_name}/versions
List deployed Workflow versions
get/accounts/{account_id}/workflows/{workflow_name}/versions/{version_id}
Get Workflow version details