> ## Documentation Index
> Fetch the complete documentation index at: https://visaflo.ca/knowledge-base/llms.txt
> Use this file to discover all available pages before exploring further.

# Create tasks from a workflow

> Apply a VisaFlo workflow template to one lead, client, or case.

`POST https://api.visaflo.app/api/public/task/create-from-workflow`

```json theme={null}
{
  "workflowId": "VFLO_WORKFLOW_ID",
  "entity": { "type": "case", "id": "VFLO_CASE_ID" }
}
```

`workflowId` and `entity` are required. Optionally send `taskOverrides`, keyed by workflow task ID, to replace a template's `reminderSettings`.

Returns `201` with the workflow name, number of imported tasks, and their IDs. The workflow and linked record must belong to the API key's workspace.
