Skip to content

Workflows API

A workflow is a trigger followed by steps, such as “when a client sends the onboarding form, generate the NDA and email it”. These endpoints manage the workflow itself. To see what it did, read its runs.

A workflow travels as a list of nodes. The workflow nodes reference describes each node’s JSON. The quickest way to learn it is to build a workflow in the designer and read it back with Get a workflow.

These endpoints let your own systems do what the Workflows screen does. Use them to deploy the same workflow to several organizations or to build a monitoring page from your run history.

To hear about failures, poll the runs and alert your team when one fails or times out.

If you are new to workflows, read Workflows overview first. To make your first call, start with the API overview. Authentication explains how keys work, and the overview how to send a request and read a list. Each endpoint below lists the errors of its own, and the errors page explains how to read an error, and the rest.

Create, Get, Replace and Change category all answer with this object.

Field Type Meaning
id UUID The workflow’s identifier.
name string Its name.
description string or null Its description.
isActive boolean Whether its trigger starts it. An inactive workflow keeps its settings and starts nothing.
category object or null The category it is in, with id and name. null for none.
nodes array Its nodes, each written out in full. See What is stored.
createdAt time When it was created.
updatedAt time When it was last changed.

GET/v1/workflows

Returns your workflows as summaries, with their run counts. Use it for an overview or a health check. It doesn’t include the nodes: call Get a workflow for those.

Key permission: get_workflows

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 when the order matters.

Parameter Values What it does
filter[category][eq] A category’s id, or none Workflows in that category, or in no category. eq is the only operator.
filter[isActive][eq] true, false Active or inactive workflows.
filter[name][like] A pattern with % Matches the name, respecting letter case.
filter[createdAt][gte], filter[updatedAt][gte] A time Created or changed from that moment on. lte, gt, lt and between work too.
search[name] Text Finds words in the name, ignoring letter case.
sort name, isActive, createdAt, updatedAt, id The order. Add a - for descending.

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

Field Type Meaning
id UUID The workflow’s identifier.
name string Its name.
description string or null Its description.
isActive boolean Whether its trigger starts it.
category object or null The category, with id and name.
triggerType string or null What starts it: one of the trigger types.
nodeCount integer How many nodes it has, the trigger included.
totalExecutions integer How many runs it has.
successfulExecutions integer Of those, how many completed.
failedExecutions integer Of those, how many failed. A run that timed out counts in neither this nor successfulExecutions.
lastTriggeredAt time or null When its latest run started. null if it has never run.
createdAt time When it was created.
updatedAt time When it was last changed.
Terminal window
curl -G 'https://api.doxtly.com/v1/workflows' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET" \
--data-urlencode 'filter[isActive][eq]=true' \
--data-urlencode 'search[name]=invoice' \
--data-urlencode 'sort=-updatedAt' \
--data-urlencode 'perPage=2'

Response 200:

{
"items": [
{
"id": "01a1cdc7-cf88-77ed-ad31-a4e5a1b59c5f",
"name": "Invoice request to accounting",
"description": "Passes an invoice request to the accounting system and emails the client the number it gets back.",
"isActive": true,
"category": {
"id": "01a1ab01-fb57-76bc-a078-74c0e9560943",
"name": "Finance and legal"
},
"triggerType": "formSubmission",
"nodeCount": 3,
"totalExecutions": 2,
"successfulExecutions": 2,
"failedExecutions": 0,
"lastTriggeredAt": "2026-11-12T10:57:44+01:00",
"createdAt": "2026-11-12T04:23:06+01:00",
"updatedAt": "2026-11-12T04:41:59+01:00"
},
{
"id": "01a1cdc7-d250-749a-905b-1830a1233a8b",
"name": "Shop invoices",
"description": "The shop sends the order, and Doxtly makes the invoice, emails it and files a copy.",
"isActive": true,
"category": {
"id": "01a1ab01-fb57-76bc-a078-74c0e9560943",
"name": "Finance and legal"
},
"triggerType": "webhookRequest",
"nodeCount": 4,
"totalExecutions": 2,
"successfulExecutions": 2,
"failedExecutions": 0,
"lastTriggeredAt": "2026-11-12T10:57:47+01:00",
"createdAt": "2026-11-12T04:23:07+01:00",
"updatedAt": "2026-11-12T04:26:29+01:00"
}
],
"meta": {
"total": 4,
"page": 1,
"perPage": 2,
"totalPages": 2,
"hasMore": true,
"hasPrevious": false
}
}
Status When
400 A filter, sort field or page can’t be used. For example, filter[category][eq] is neither none nor a UUID.
401 The key or secret is missing or wrong, or the key is switched off or expired.
403 The key wasn’t given get_workflows.

POST/v1/workflows

Creates a workflow. Use it to set up a standard process from code, for example in every new organization you onboard. A workflow created with isActive: true, the default, starts working at once.

Key permission: create_workflow

Headers: X-Api-Key, X-Api-Secret, Content-Type: application/json

Field Type Required Validation and default
name string Yes Not empty, at most 255 characters.
description string or null No Default null.
isActive boolean No Default true.
nodes array Yes At least one node. It must pass the graph rules.
categoryId UUID or null No A category of your organization. Default null, for no category.

201 Created with the workflow object and a Location header naming the new workflow: /v1/workflows/{id}.

This workflow listens to a webhook and emails a confirmation to the address in the request.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/workflows' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{
"name": "Invoice request intake",
"description": "Confirms an invoice request from the billing system.",
"isActive": true,
"categoryId": "01a1abe6-3547-7b6f-9ee0-1e78817e4f4d",
"nodes": [
{
"id": "trg_invoice_request",
"type": "trigger",
"position": { "x": 80, "y": 120 },
"config": {
"triggerType": "webhookRequest",
"entityId": "01a1abe6-38ce-71af-877a-a6a4cccebce5"
},
"defaultNextId": "send_confirmation"
},
{
"id": "send_confirmation",
"type": "action",
"actionType": "send_email",
"position": { "x": 360, "y": 120 },
"config": {
"emailTemplateId": "01a1aafd-3f41-7aed-8c17-d610c556eeb5",
"recipientExpression": "{{ email }}"
}
}
]
}'

Response 201:

{
"id": "01a1abe6-3bd2-79d1-8b5e-ee498cdbcd5e",
"name": "Invoice request intake",
"description": "Confirms an invoice request from the billing system.",
"isActive": true,
"category": {
"id": "01a1abe6-3547-7b6f-9ee0-1e78817e4f4d",
"name": "Billing and invoices"
},
"nodes": [
{
"id": "trg_invoice_request",
"type": "trigger",
"position": { "x": 80, "y": 120 },
"config": {
"triggerType": "webhookRequest",
"entityId": "01a1abe6-38ce-71af-877a-a6a4cccebce5"
},
"defaultNextId": "send_confirmation"
},
{
"id": "send_confirmation",
"type": "action",
"position": { "x": 360, "y": 120 },
"config": {
"emailTemplateId": "01a1aafd-3f41-7aed-8c17-d610c556eeb5",
"recipientExpression": "{{ email }}",
"attachments": { "all": true, "handles": [] },
"integrationId": null,
"replyToExpression": null,
"ccExpression": null
},
"actionType": "send_email",
"defaultNextId": null
}
],
"createdAt": "2026-11-05T14:29:14+01:00",
"updatedAt": "2026-11-05T14:29:14+01:00"
}

Doxtly stores each node whole, the way a run reads it. The response therefore holds more than you sent:

  • Settings you left out appear with their defaults, like attachments above.
  • A node’s connections are written the way that kind of node connects, so a condition shows trueNextId and falseNextId.
  • Settings a node doesn’t have are dropped. A trigger is the exception: its config stays as you sent it.
  • A setting with fixed choices that holds a value Doxtly doesn’t know takes its default, with no error. So does a value of the wrong type. A misspelled "conflict": "overwite" is saved as keep_both. Only a webhook step’s method and a package’s signatureLevel are refused instead.
  • Secret values are replaced by a reference.

What you read back is what runs, and it is also what the designer shows. If you generate workflows from code, compare the response with what you meant to send.

Status When
400 The body isn’t valid JSON, or is empty.
401 The key or secret is missing or wrong, or the key is switched off or expired.
403 The key wasn’t given create_workflow.
403 Your plan’s limit on workflows is reached, or the plan doesn’t include workflows. Delete a workflow or upgrade. See plans and limits.
403 A node needs more than the key has. detail names the node and what is missing.
422 name is missing, empty or too long, or a field has the wrong type. See violations.
422 categoryId isn’t a UUID, or your organization has no such category. The violation is on categoryId: “There is no such category.”
422 The nodes break a graph rule or a node’s own rule. The violation is on nodes, and its message lists every problem, naming each node.
422 The trigger names a webhook that is switched off or that your organization doesn’t have.

GET/v1/workflows/{id}

Returns one workflow with all its nodes. Call it before you replace a workflow, or to copy a workflow built in the designer into your own configuration.

Key permission: read_workflow

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

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

200 OK with the workflow object. A step’s document password, if it has one, is returned as it was saved. Other secret values never are.

Terminal window
curl 'https://api.doxtly.com/v1/workflows/01a1abe6-3bd2-79d1-8b5e-ee498cdbcd5e' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET"

Response 200:

{
"id": "01a1abe6-3bd2-79d1-8b5e-ee498cdbcd5e",
"name": "Invoice request intake",
"description": "Confirms an invoice request from the billing system.",
"isActive": true,
"category": {
"id": "01a1abe6-3547-7b6f-9ee0-1e78817e4f4d",
"name": "Billing and invoices"
},
"nodes": [
{
"id": "trg_invoice_request",
"type": "trigger",
"position": { "x": 80, "y": 120 },
"config": {
"triggerType": "webhookRequest",
"entityId": "01a1abe6-38ce-71af-877a-a6a4cccebce5"
},
"defaultNextId": "send_confirmation"
},
{
"id": "send_confirmation",
"type": "action",
"position": { "x": 360, "y": 120 },
"config": {
"emailTemplateId": "01a1aafd-3f41-7aed-8c17-d610c556eeb5",
"recipientExpression": "{{ email }}",
"attachments": { "all": true, "handles": [] },
"integrationId": null,
"replyToExpression": null,
"ccExpression": null
},
"actionType": "send_email",
"defaultNextId": null
}
],
"createdAt": "2026-11-05T14:29:14+01:00",
"updatedAt": "2026-11-05T14:29:14+01:00"
}

The response looks like the one under Create a workflow.

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.
404 Your organization has no workflow with this id.

PUT/v1/workflows/{id}

Saves a new version of the whole workflow. Use it to change steps, rename the workflow, or switch it on and off. Runs already under way finish on the version they started with.

Key permission: update_workflow

Headers: X-Api-Key, X-Api-Secret, Content-Type: application/json

To switch a workflow off with an access key, send it whole with "isActive": false. The example below does just that, to pause an intake during a billing migration.

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

The same fields as Create a workflow. The response’s category object isn’t read: send categoryId.

Send secret values back as you received them, with their secretRef, and they stay. Keep node ids stable too. Doxtly compares nodes by id, which decides whether a guarded step counts as unchanged.

A trigger that already listens to a webhook that was switched off later may be saved again unchanged. Only pointing a trigger at a new webhook requires that webhook to be on.

200 OK with the workflow object.

Terminal window
curl -X PUT 'https://api.doxtly.com/v1/workflows/01a1abe6-3bd2-79d1-8b5e-ee498cdbcd5e' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{
"name": "Invoice request intake",
"description": "Paused during the billing migration.",
"isActive": false,
"categoryId": "01a1abe6-3547-7b6f-9ee0-1e78817e4f4d",
"nodes": [
{
"id": "trg_invoice_request",
"type": "trigger",
"position": { "x": 80, "y": 120 },
"config": {
"triggerType": "webhookRequest",
"entityId": "01a1abe6-38ce-71af-877a-a6a4cccebce5"
},
"defaultNextId": "send_confirmation"
},
{
"id": "send_confirmation",
"type": "action",
"actionType": "send_email",
"position": { "x": 360, "y": 120 },
"config": {
"emailTemplateId": "01a1aafd-3f41-7aed-8c17-d610c556eeb5",
"recipientExpression": "{{ email }}"
}
}
]
}'

Response 200:

{
"id": "01a1abe6-3bd2-79d1-8b5e-ee498cdbcd5e",
"name": "Invoice request intake",
"description": "Paused during the billing migration.",
"isActive": false,
"category": {
"id": "01a1abe6-3547-7b6f-9ee0-1e78817e4f4d",
"name": "Billing and invoices"
},
"nodes": [
{
"id": "trg_invoice_request",
"type": "trigger",
"position": { "x": 80, "y": 120 },
"config": {
"triggerType": "webhookRequest",
"entityId": "01a1abe6-38ce-71af-877a-a6a4cccebce5"
},
"defaultNextId": "send_confirmation"
},
{
"id": "send_confirmation",
"type": "action",
"position": { "x": 360, "y": 120 },
"config": {
"emailTemplateId": "01a1aafd-3f41-7aed-8c17-d610c556eeb5",
"recipientExpression": "{{ email }}",
"attachments": { "all": true, "handles": [] },
"integrationId": null,
"replyToExpression": null,
"ccExpression": null
},
"actionType": "send_email",
"defaultNextId": null
}
],
"createdAt": "2026-11-05T14:29:14+01:00",
"updatedAt": "2026-11-05T14:29:45+01:00"
}
Status When
400 The body isn’t valid JSON, or is empty.
401 The key or secret is missing or wrong, or the key is switched off or expired.
403 The key wasn’t given update_workflow.
403 A node added or changed needs more than the key has.
404 Your organization has no workflow with this id.
422 name is missing, empty or too long, or a field has the wrong type.
422 categoryId isn’t a UUID, or your organization has no such category.
422 nodes is empty, or breaks a graph rule or a node’s own rule.
422 A node refers to a secret this workflow doesn’t hold, or keeps a secret while now sending to another server. Send the value again.
422 The trigger was changed to a webhook that is switched off or that your organization doesn’t have.

DELETE/v1/workflows/{id}

Deletes a workflow for good, with all its runs and what they recorded. Documents and signing packages those runs created stay, no longer linked to it. If you may want the history later, switch the workflow off instead.

Key permission: delete_workflow

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

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

204 No Content, with no body.

Terminal window
curl -X DELETE 'https://api.doxtly.com/v1/workflows/01a1abe6-3bd2-79d1-8b5e-ee498cdbcd5e' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET"

The response is 204 with no body.

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 delete_workflow.
404 Your organization has no workflow with this id.

PUT/v1/workflows/{id}/category

Moves a workflow into a category, or out of any category, and leaves the rest alone. It is the safe way to sort workflows, because you don’t send the nodes. It uses the same key permission as replacing a workflow.

Key permission: update_workflow

Headers: X-Api-Key, X-Api-Secret, Content-Type: application/json

Path parameter Type Meaning
id UUID The workflow’s identifier.
Field Type Required Validation and default
categoryId UUID or null No A category of your organization. null, or leaving it out, takes the workflow out of its category.

The body must still be JSON: to remove the category, send {} or {"categoryId": null}, not an empty body.

200 OK with the workflow object.

Terminal window
curl -X PUT 'https://api.doxtly.com/v1/workflows/01a1abe6-3bd2-79d1-8b5e-ee498cdbcd5e/category' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"categoryId": "01a1ab01-fb57-76bc-a078-74c0e9560943"}'

Response 200:

{
"id": "01a1abe6-3bd2-79d1-8b5e-ee498cdbcd5e",
"name": "Invoice request intake",
"description": "Paused during the billing migration.",
"isActive": false,
"category": {
"id": "01a1ab01-fb57-76bc-a078-74c0e9560943",
"name": "Finance and legal"
},
"nodes": [
{
"id": "trg_invoice_request",
"type": "trigger",
"position": { "x": 80, "y": 120 },
"config": {
"triggerType": "webhookRequest",
"entityId": "01a1abe6-38ce-71af-877a-a6a4cccebce5"
},
"defaultNextId": "send_confirmation"
},
{
"id": "send_confirmation",
"type": "action",
"position": { "x": 360, "y": 120 },
"config": {
"emailTemplateId": "01a1aafd-3f41-7aed-8c17-d610c556eeb5",
"recipientExpression": "{{ email }}",
"attachments": { "all": true, "handles": [] },
"integrationId": null,
"replyToExpression": null,
"ccExpression": null
},
"actionType": "send_email",
"defaultNextId": null
}
],
"createdAt": "2026-11-05T14:29:14+01:00",
"updatedAt": "2026-11-05T14:29:45+01:00"
}
Status When
400 The body isn’t valid JSON, or is empty.
401 The key or secret is missing or wrong, or the key is switched off or expired.
403 The key wasn’t given update_workflow.
404 id isn’t a UUID, or your organization has no workflow with this id.
422 categoryId isn’t a UUID, or your organization has no such category.

POST/v1/workflows/{id}/duplicate

Makes a new, inactive copy of a workflow in the same organization, for example to try a change without touching the one that runs. The copy has the original’s description, category and steps, with the same trigger, and its secret values and document passwords come along, kept encrypted for the copy. It takes the name you send in title; without one, the original’s with the word for a copy at the end, in the language of the answers: “ (copy)” for Accept-Language: en, “ (copia)” for es, “ (Kopie)” for de and so on, “ (kopia)” when you send none. The original’s name is shortened so that the two fit in 255 characters. It has no runs. Switch it on with Replace a workflow once you have looked it over: while both are on, the same event starts both.

Key permission: duplicate_workflow

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

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

Optional.

Field Type Meaning
title string The copy’s name, up to 255 characters, spaces around it removed. Leave it out for the original’s name with the word for a copy after it.

201 Created with the copy as a workflow object, isActive false, and its path in the Location header.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/workflows/01a1abe6-3bd2-79d1-8b5e-ee498cdbcd5e/duplicate' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"title":"Invoice request intake, test"}'

The response looks like the one under Get a workflow, with a new id, the name sent and isActive false.

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 duplicate_workflow, your plan’s limit of workflows is reached, or a step is one the key’s owner may not set up. Nothing is created.
404 id isn’t a UUID, or your organization has no workflow with this id.
422 title is blank or longer than 255 characters.

GET/v1/workflows/{id}/export

The workflow as it was last saved, as a portable file to import into this organization or another (Import and export). It holds the name, description and steps. What a step names of the organization, such as the form its trigger listens to or the template it fills, is a requirement, named so the importing organization can pick its own. Secrets and the category never travel.

Key permission: export_workflow

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

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

200 OK with format (doxtly.workflow), version, title, requirements and content. Importing it is done in the app.

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 export_workflow.
404 id isn’t a UUID, or your organization has no workflow with this id.

Say Northbridge Advisory runs a separate organization for each regional office and wants the same intake workflow in all of them. Build it once in the designer, then:

  1. Read it with Get a workflow, using a key of the first organization.
  2. Swap every id that belongs to that organization for the matching one in the target: entityId in the trigger, and any emailTemplateId, templateId, packageTypeId, integrationId and agentId in the steps. Leave out categoryId, or use a category of the target.
  3. Give every secret its value again in place of the secretRef. A reference works only in the workflow that holds it, which is why a copy inside one organization is made with Duplicate a workflow.
  4. Send the result to Create a workflow with a key of the target organization.

Node ids can stay as they are, and so can the position of each node, so the copy looks the same in the designer.

The app can do this for you: export the workflow and import the file in the target organization, which matches each requirement to one of its own records for you to check. See Import and export.

Some things stay in the app: