Skip to main content
POST
Get Definition
Use this API to fetch a workflow definition. Returns the full DefinitionView. Filters out tombstoned definitions.

Endpoint

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

Headers

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

Body

Params

data
object
required

Example Requests

Get a definition

Response

Success Response

The compiled block

compiled is a read-only block on every DefinitionView. The authored edges echo sourceEdges byte-for-byte; compiled is the server-derived runtime view used to drive execution. Both are additive — render a workflow graph directly from compiled.forwardEdges instead of re-implementing group expansion client-side.
compiled
object

Failure Response

Errors: NOT_FOUND (definition does not exist or is tombstoned) / INVALID_ARGUMENT.