Create a workflow of your own
Saves version 1 of a new workflow from its source.
POST/v1/workflows
It starts as a draft: nothing runs until a person activates a version. The answer is the compiler’s verdict on this version: ok, every error with its line and the fix, warnings, the graph the Automations tab draws and what the workflow can touch. A version that does not compile is kept and cannot be activated: fix the errors and save again. Needs a role that may create workflows.
Requires the scopes workflows:write, records:read, records:write, schema:read. Operation my.workflows.create. MCP tool my_workflows_create. CLI: grid82 my workflows create (npx grid82).
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Idempotency-Key | string | no | Any unique string. Sending the same key with the same request again returns the first response (marked Idempotency-Replayed: true) instead of running it twice. Reusing it for a different request is refused with 409. Kept for 24 hours. Up to 255 characters. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
source | string | yes | Up to 65536 characters. |
note | string | no | Up to 200 characters. |
via | “assistant” or “hand” or “api” or “restore” | no |
Response
Success
dataobjectrequiredRefused
errorobjectrequired