Documentation Index
Fetch the complete documentation index at: https://docs.beltic.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
POST /v1/workflows/execute runs a workflow and returns the result. By default it uses the latest deployed version of the workflow. The call is synchronous — it holds the connection until the workflow reaches a terminal state or pauses.
Typical execution times:
| Workflow type | P50 | P95 |
|---|---|---|
| KYC (document + liveness) | 2.5s | 6s |
| KYB (business lookup + sanctions) | 1.8s | 4s |
| Sanctions screening only | 400ms | 900ms |
| Credential issuance only | 120ms | 300ms |
Prerequisites
- A Beltic API key (
X-Api-Keyheader — see Authentication) - A deployed workflow — configure and deploy workflows from the Beltic Console
Basic Execution
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
workflowId | string | Yes | ID of the deployed workflow to run |
options.input | object | No | Input data passed to the first block |
options.environmentVariables | object | No | Override environment variables for this run |
options.workflowVariables | object | No | Override workflow-level variables |
options.maxParallelNodes | number | No | Cap parallel block execution (default: 2) |
useDraftState | boolean | No | Run the draft workflow state instead of deployed |
Handling the Response
200 — Terminal (Completed or Failed)
The workflow ran to a terminal state. Checksuccess and status to determine outcome:
success will be false and error will describe what went wrong:
202 — Paused
The workflow reached a block that requires external input before it can continue — a manual compliance review, sponsor bank approval, or a human-in-the-loop decision:executionId. When the external review is complete, resume by running POST /v1/workflows/execute again with runFromBlock pointing to the block after the pause point.
Resuming a Paused Execution
exec_01HQ7R... and runs from credential_issue forward, skipping the already-completed blocks.
Listing Past Executions
Check the history of any workflow:Testing with Draft State
Before deploying a workflow change, run it against draft state to validate the changes:Error Codes
| HTTP | Meaning |
|---|---|
400 | Request body failed validation |
401 | API key missing or invalid |
403 | API key lacks execution permissions |
404 | Workflow ID not found or not deployed |
409 | Execution ID conflict (duplicate idempotency key) |
422 | Workflow is valid but semantically unexecutable (e.g. runFromBlock references unknown block) |
Next Steps
Credentials API
Deep-dive into the credential that workflows emit
Verifying a Credential
How to verify the signed credential at transaction time
Fintech Company Using Beltic
Full end-to-end example — workflow execution, sponsor bank queue, and transaction authorization