Skip to main content
POST
/
v2
/
workflow
/
executions
/
get
Get Execution
curl --request POST \
  --url https://api.velt.dev/v2/workflow/executions/get \
  --header 'Content-Type: application/json' \
  --header 'x-velt-api-key: <x-velt-api-key>' \
  --header 'x-velt-auth-token: <x-velt-auth-token>' \
  --data '
{
  "data": {
    "executionId": "<string>"
  }
}
'
{
  "result": {
    "executionId": "exec_1777374504255_xzy43k9q",
    "status": "completed",
    "startedAt": 1777374504364,
    "completedAt": 1777374842347,
    "cancelledAt": null,
    "definitionId": "marketing-copy-approval",
    "definitionVersion": 1,
    "correlationId": "corr_campaign_42",
    "idempotencyKey": "campaign-42-dispatch",
    "failureReason": null,
    "steps": []
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.velt.dev/llms.txt

Use this file to discover all available pages before exploring further.

Use this API to fetch a workflow execution. Returns an ExecutionView with the current state plus the view-model of every step.

Endpoint

POST https://api.velt.dev/v2/workflow/executions/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 an execution

{
  "data": {
    "executionId": "exec_1777374504255_xzy43k9q"
  }
}

Response

Success Response

{
  "result": {
    "executionId": "exec_1777374504255_xzy43k9q",
    "status": "completed",
    "startedAt": 1777374504364,
    "completedAt": 1777374842347,
    "cancelledAt": null,
    "definitionId": "marketing-copy-approval",
    "definitionVersion": 1,
    "correlationId": "corr_campaign_42",
    "idempotencyKey": "campaign-42-dispatch",
    "failureReason": null,
    "steps": [
      {
        "stepId": "group_parallel-review__to__agent-publish",
        "nodeId": "agent-publish",
        "nodeType": "agent",
        "status": "completed",
        "groupId": null,
        "startedAt": 1777374841756,
        "completedAt": 1777374841986,
        "output": {
          "agentId": "publish-agent-v1",
          "summary": "...",
          "generatedAt": 1777374841939
        },
        "error": null
      }
    ]
  }
}

Failure Response

{
  "error": {
    "message": "ERROR_MESSAGE",
    "status": "NOT_FOUND"
  }
}
Errors: NOT_FOUND / INVALID_ARGUMENT.
{
  "result": {
    "executionId": "exec_1777374504255_xzy43k9q",
    "status": "completed",
    "startedAt": 1777374504364,
    "completedAt": 1777374842347,
    "cancelledAt": null,
    "definitionId": "marketing-copy-approval",
    "definitionVersion": 1,
    "correlationId": "corr_campaign_42",
    "idempotencyKey": "campaign-42-dispatch",
    "failureReason": null,
    "steps": []
  }
}