API reference
POSTRequires Bearer token
Create a workflow
/api/workflows/create
Launch a circuit from a finalized model. Multipart (files[] are PDFs, max 10 MB each).
model_id must belong to the caller’s company and must not be archived. client_id is optional and must also belong to the same company. License read-only grace blocks this call.
Status of a running instance: pending → in_progress → completed / cancelled.
Path parameters
This endpoint has no path parameters.
Query parameters
This endpoint has no query parameters.
Request body
| Field | Type | Description |
|---|---|---|
name Required | string | Workflow name (max 255). e.g. "Contract ACME" |
description | string | Optional description. e.g. "Renewal" |
model_id Required | integer | Finalized workflow model in the caller’s company. e.g. 3 |
client_id | integer | Existing client in the same company. e.g. 12 |
files Required | array | PDF documents (required, max 10240 KB each). e.g. ["example"] |
Responses
| Status | Meaning |
|---|---|
| 201 | See the example response. |
| 401 | Missing or invalid Bearer token. |