Skip to main content
POST
Create Definition
Use this API to register a new workflow definition (the static blueprint of nodes, edges, and optional parallel groups). Definitions are linted at write time — invalid graphs are rejected with an explicit linter code.

Endpoint

POST https://api.velt.dev/v2/workflow/definitions/create

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body

Params

data
object
required

Node object example

Edge object example

Example Requests

Create a marketing-copy approval workflow

Response

Success Response

Failure Response

Errors: INVALID_ARGUMENT (schema or linter failure; message includes the linter code) / ALREADY_EXISTS (definitionId already in use).