RunsStart a run

Start a run

Starts a run of the workflow.

For interactive workflows the response blocks briefly and already carries action_required.url, so no poll is needed to obtain the link. If the wait times out you receive a non-terminal status with action_required: null - poll GET /v1/runs/{id} for the link.

curl -X POST "https://api.deepvue.link/v1/workflows/123e4567-e89b-12d3-a456-426614174000/runs" \
  -H "Content-Type: application/json" \
  -H "client-id: YOUR_API_KEY" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "reference_id": "user_123",
  "input": {
    "pan_number": "ABCDE1234F",
    "mobile": "9876543210"
  },
  "redirect_uri": "https://your-app.example.com/kyc/done"
}'
{
  "id": "1e30a341-cb3b-48b8-9992-99a1b436b8d9",
  "workflow_id": "e97e7d78-4ceb-4283-8080-5c5e0b72ddac",
  "reference_id": "user_123",
  "status": "in_progress",
  "started_at": "2026-07-30T09:14:02Z",
  "completed_at": null,
  "action_required": {
    "type": "customer_input",
    "signal_name": "selfie_captured",
    "url": "https://hosted.deepvue.link/h/eyJ0eXAi..."
  },
  "error": null
}
POST
/v1/workflows/{id}/runs
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: client-id)
client-idstring
Required

Your Deepvue client identifier.

Your Deepvue client identifier.
API Key (header: x-api-key)
x-api-keystring
Required

Your Deepvue API key. Secret - keep it server-side.

Your Deepvue API key. Secret - keep it server-side.
path
idstring
Required

The workflow's UUID.

Format: uuid
Content-Typestring
Required

The media type of the request body

Options: application/json
reference_idstring
Required

Your identifier for the person or entity.

inputobject

Trigger data; keys are per-workflow.

redirect_uristring

Where to send the end user once the run is terminal. run_id and status are appended. Validated against your tenant's allowlist at request time.

Format: uri
Request Preview
Response

Response will appear here after sending the request

Authentication

header
client-idstring
Required

API Key for authentication. Your Deepvue client identifier.

header
x-api-keystring
Required

API Key for authentication. Your Deepvue API key. Secret - keep it server-side.

Path Parameters

idstring
Required

The workflow's UUID.

Body

application/json
reference_idstring
Required

Your identifier for the person or entity.

Example:
user_123
inputobject

Trigger data; keys are per-workflow.

redirect_uristring

Where to send the end user once the run is terminal. run_id and status are appended. Validated against your tenant's allowlist at request time.

Responses