Skip to content

Workflow runs API

A run, called an execution in the API, is one pass through a workflow: a form was sent, the NDA was generated, the email went out. These endpoints read that history, so you can feed a status page, alert your team on failures or find out what happened to a particular client’s request. Executions in the manual shows the same data in the app.

Runs are read-only here. Doxtly starts them when a trigger fires, and rerunning one is done in the app. To start a run from your own system, call a webhook.

status Meaning
running The trigger fired and the run isn’t finished. This includes the time it waits for its turn.
completed The run reached an end of the workflow with nothing going wrong. Check outcome too.
failed A step couldn’t do its job, or the run was refused before its first step. errorMessage says why.
timeout The run ran out of time, or it got stuck and Doxtly closed it. errorMessage says which.

A run can complete and still stop earlier than you meant, when a step took a way out that nothing was connected to. outcome tells you which. It is null for a run that went all the way, and for one that failed.

outcome Meaning
not_found A lookup found no row or file, and its “not found” output led nowhere.
contract_not_found A Find a contract step found no contract, and its “not found” output led nowhere.
no_match A sheet update found no row to change.
exists A sheet write found the row it was to add.
no_case_matched A switch matched no case, and its default path led nowhere.
no_result An AI agent gave no answer, and its “no result” output led nowhere.

A small script can do what nobody has time to do by hand: notice that the onboarding workflow stopped working on Friday evening.

  1. Every few minutes, list the runs with filter[status][in]=failed,timeout, filter[since][gte] set to the time of your last check, and sort=-startedAt.
  2. For each run that comes back, send workflowName and errorMessage to your team’s channel.
  3. To see which step broke, get the run and find the entry of executedNodes with status: "failed". If its isPermanentError is false, the cause may pass by itself, such as a mail server that was down. If it is true, the same failure would come back, so someone needs to fix the workflow or its data.

A run with status completed can still have stopped early. Add filter[outcome][eq]=no_match, or another outcome, when such an ending matters to you.

GET/v1/workflow_executions

Returns runs of all your workflows, without the detail of each step. Poll it with a since filter to catch failures, or filter by workflow to build a history page.

Key permission: get_workflow_executions

Headers: X-Api-Key, X-Api-Secret

The shared list parameters apply. Without sort, rows come in the order of their identifiers, so pass sort=-startedAt to get the newest first.

Parameter Values What it does
filter[status][eq] A status Runs with that status.
filter[outcome][eq] An outcome Runs that ended that way.
filter[workflow][eq] A workflow’s id Runs of one workflow.
filter[triggerEntityId][eq] A record’s id Runs started for one record, such as a webhook request. A form submission’s id finds the runs of its form and those of its payment’s events.
filter[since][gte] A time with its offset, such as 2026-11-03T00:00:00+01:00 Runs started from that moment on. A date alone, or a time with no offset, answers 400. gte is the only operator.
filter[search][eq] Text Finds the text in the workflow’s name, the run’s id, the id of what started it (the submission of an ordinary run), or the id of the form submission it signs. Part of a name or an id is enough, and letter case doesn’t matter.
search[workflow.name] Text Finds words in the workflow’s name, ignoring letter case.
sort startedAt, completedAt, status, totalExecutionTimeMs, createdAt, workflow.name The order. Add a - for descending.

200 OK with items and meta. Each item has these fields:

Field Type Meaning
id UUID The run’s identifier.
workflowId UUID The workflow.
workflowName string Its current name.
status string A status.
triggerNodeId string The id of the trigger node.
executedNodesCount integer How many nodes have run.
startedAt time When the trigger fired.
completedAt time or null When it ended. null while it runs.
totalExecutionTimeMs number or null How long it took, in milliseconds.
errorMessage string or null Why it failed.
outcome string or null An outcome.
createdAt time When the record was created.
updatedAt time When the record last changed.

Failed runs since 1 October, newest first:

Terminal window
curl -G 'https://api.doxtly.com/v1/workflow_executions' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET" \
--data-urlencode 'filter[status][eq]=failed' \
--data-urlencode 'filter[since][gte]=2026-10-01T00:00:00+02:00' \
--data-urlencode 'sort=-startedAt' \
--data-urlencode 'perPage=2'

Response 200:

{
"items": [
{
"id": "01a1abe1-f6aa-7e17-a5d5-1674adc24cfe",
"workflowId": "01a1ab62-dd40-71a5-9db5-0d1f75828740",
"workflowName": "Certificate self-service",
"status": "failed",
"triggerNodeId": "trigger",
"executedNodesCount": 2,
"startedAt": "2026-11-05T14:24:35+01:00",
"completedAt": "2026-11-05T14:24:36+01:00",
"totalExecutionTimeMs": 30.585667,
"errorMessage": "Nothing was found at \"Training/2026/results.xlsx\" in the cloud storage.",
"outcome": null,
"createdAt": "2026-11-05T14:24:35+01:00",
"updatedAt": "2026-11-05T14:24:36+01:00"
},
{
"id": "01a1abd5-5129-741a-83ae-c0259bf655c6",
"workflowId": "01a1ab02-01ec-7ead-8f1e-0d774d550359",
"workflowName": "Invoice request for signature",
"status": "failed",
"triggerNodeId": "trigger",
"executedNodesCount": 5,
"startedAt": "2026-11-05T14:10:46+01:00",
"completedAt": "2026-11-05T14:10:47+01:00",
"totalExecutionTimeMs": 680.796209,
"errorMessage": "The webhook address \"erp.northbridge.example\" points to a private or reserved network, which workflows may not call.",
"outcome": null,
"createdAt": "2026-11-05T14:10:46+01:00",
"updatedAt": "2026-11-05T14:10:47+01:00"
}
],
"meta": {
"total": 9,
"page": 1,
"perPage": 2,
"totalPages": 5,
"hasMore": true,
"hasPrevious": false
}
}
Status When
400 A filter, sort field or page can’t be used, including a since that isn’t a full time with its offset.
401 The key or secret is missing or wrong, or the key is switched off or expired.
403 The key wasn’t given get_workflow_executions.

GET/v1/workflow_executions/{id}

Returns one run with every step it took, what each recorded and what it relates to. Use it to see which step failed, or to find the document a run generated.

Key permission: read_workflow_execution

Headers: X-Api-Key, X-Api-Secret

Path parameter Type Meaning
id UUID The run’s identifier.

200 OK, with the fields of a list item, except that executedNodes replaces executedNodesCount, plus these:

Field Type Meaning
executedNodes array The steps, in the order they ran.
triggerType string or null The trigger type this run started by, as it was when it ran.
triggerEntityId UUID or null The record it was started for: a form submission, an interactive document’s submission, a package, a contact, a generation or a webhook request. A payment trigger’s run is for the form submission the payment paid for, and has null when that submission was deleted. null for a CRM trigger, whose record is in Pipedrive, and for a recurring trigger.
triggerEntityName string or null That record’s name as it is now: a submission’s or a package’s title, a contact’s name. null for a webhook request, a generation, a submission with no title, a record that is gone, a CRM trigger, or a recurring trigger.

Each entry of executedNodes:

Field Type Meaning
nodeId string The node’s id.
nodeType string trigger, condition, switch, transformation or action.
actionType string or null Which step, for an action.
status string success or failed.
executionTimeMs number How long it took, in milliseconds.
executedAt time When it ran.
errorMessage string or null Why it failed.
metadata object What the step recorded. It differs by step, and it is an empty object ({}) when there is nothing. What each step reports describes it.
isPermanentError boolean Read it for a failed step only: true means the same failure would come back on a rerun.
links array The records the step is related to.

Each entry of links:

Field Type Meaning
kind string form, form_submission, interactive_document, interactive_document_submission, template, file_generation, document_package, document_package_type, email_template, email_submission, webhook, webhook_request, contact, contact_type or integration, the CRM integration a CRM trigger listens to.
role string used for what the step worked with, produced for what it made.
id string or null The record’s id. null only on old runs, which knew a record by name alone.
name string or null Its name when the step ran, so it stays readable after the record is renamed or deleted.
Terminal window
curl 'https://api.doxtly.com/v1/workflow_executions/01a1ab0b-2fc7-705d-aa43-b4aca351475b' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET"

Response 200:

{
"id": "01a1ab0b-2fc7-705d-aa43-b4aca351475b",
"workflowId": "01a1ab02-01ec-7ead-8f1e-0d774d550359",
"workflowName": "Invoice request for signature",
"status": "failed",
"triggerNodeId": "trigger",
"executedNodes": [
{
"nodeId": "trigger",
"nodeType": "trigger",
"actionType": null,
"status": "success",
"executionTimeMs": 0.00375,
"executedAt": "2026-10-30T10:50:59+01:00",
"errorMessage": null,
"metadata": { "triggerType": "webhookRequest" },
"isPermanentError": true,
"links": [
{
"kind": "webhook_request",
"role": "produced",
"id": "01a1ab0b-2fbc-72db-98ed-d90b11f6e6f4",
"name": null
},
{
"kind": "webhook",
"role": "used",
"id": "01a1ab01-fd71-7ac9-ba2d-98fa73839a0e",
"name": "Finance: invoice request"
}
]
},
{
"nodeId": "package",
"nodeType": "action",
"actionType": "create_documents",
"status": "success",
"executionTimeMs": 40.351125,
"executedAt": "2026-10-30T10:50:59+01:00",
"errorMessage": null,
"metadata": {
"title": "Invoice request, {{ company.name }}",
"recipientsCount": 1,
"documentsCount": 1
},
"isPermanentError": true,
"links": [
{
"kind": "document_package",
"role": "produced",
"id": "01a1ab0b-30cb-7701-a9cc-5d0f8a512e15",
"name": "Invoice request, Orchard Retail Partners"
},
{
"kind": "document_package_type",
"role": "used",
"id": "01a1ab01-f958-7343-a3a0-39e07ffe85f3",
"name": "Invoice requests"
}
]
},
{
"nodeId": "erp",
"nodeType": "action",
"actionType": "webhook",
"status": "failed",
"executionTimeMs": 33.070208,
"executedAt": "2026-10-30T10:50:59+01:00",
"errorMessage": "The webhook address \"erp.northbridge.example\" points to a private or reserved network, which workflows may not call.",
"metadata": {
"method": "POST",
"url": "https://erp.northbridge.example/api/invoice-requests"
},
"isPermanentError": true,
"links": []
}
],
"startedAt": "2026-10-30T10:50:59+01:00",
"completedAt": "2026-10-30T10:50:59+01:00",
"totalExecutionTimeMs": 172.426334,
"errorMessage": "Execution stopped at node \"erp\" due to failure.",
"outcome": null,
"createdAt": "2026-10-30T10:50:59+01:00",
"updatedAt": "2026-10-30T10:50:59+01:00",
"triggerType": "webhookRequest",
"triggerEntityId": "01a1ab0b-2fbc-72db-98ed-d90b11f6e6f4",
"triggerEntityName": null
}

Shortened: executedNodes holds 6 entries here, and 3 are shown.

Status When
401 The key or secret is missing or wrong, or the key is switched off or expired.
403 The key wasn’t given read_workflow_execution.
404 Your organization has no run with this id. It may have been removed with its workflow, or by your retention settings.

POST/v1/workflow_executions/{id}/rerun

Starts the run’s workflow again with the input the run was started with: the same data, files and event. Use it after you fixed what made a run fail, such as a missing integration. The rerun is a new run of its own, listed with the record the first one was started for. The workflow doesn’t need to be active.

Key permission: rerun_workflow_execution

Headers: X-Api-Key, X-Api-Secret

Path parameter Type Meaning
id UUID The identifier of the run to repeat.

204 No Content. The new run starts in the background: find it with List runs.

Terminal window
curl -X POST https://api.doxtly.com/v1/workflow_executions/0195f0b2-41aa-7c3e-8f10-6d2e9b7a1c44/rerun \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET"
Status When
400 The run’s stored input is gone, so it can’t be repeated.
401 The key or secret is missing or wrong, or the key is switched off or expired.
403 The key wasn’t given rerun_workflow_execution, or your plan’s limit of workflow runs is reached.
404 Your organization has no run with this id. It may have been removed with its workflow, or by your retention settings.