Skip to content

Workflow categories API

A category groups workflows that deal with one matter: taking a form in, what happens after signing, what happens after a refusal. A workflow is in one category or in none. Categories change nothing about how workflows run. Categories in the manual covers them from the app’s side.

To put a workflow into a category, use Change a workflow’s category.

Field Type Meaning
id UUID The category’s identifier.
name string Its name.
workflowCount integer How many of your workflows are in it.
createdAt time When it was created.

GET/v1/workflow_categories

Returns all your categories, sorted by name, with how many workflows each holds and how many are in none. Use it to fill a picker, or to find a category’s id for filter[category][eq].

Key permission: get_workflow_categories

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

This list isn’t paged and takes no query parameters.

200 OK:

Field Type Meaning
items array The categories.
uncategorizedCount integer How many workflows are in no category.
Terminal window
curl 'https://api.doxtly.com/v1/workflow_categories' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET"

Response 200:

{
"items": [
{
"id": "01a1ab01-fb57-76bc-a078-74c0e9560943",
"name": "Finance and legal",
"workflowCount": 6,
"createdAt": "2026-07-28T09:00:00+02:00"
},
{
"id": "01a1ab01-fbc9-788d-a10f-8a6dc37fda5f",
"name": "Operations",
"workflowCount": 5,
"createdAt": "2026-07-28T09:00:00+02:00"
},
{
"id": "01a1ab01-fa5c-7d2e-8e6d-ff6776fdf705",
"name": "Sales and clients",
"workflowCount": 32,
"createdAt": "2026-07-28T09:00:00+02:00"
},
{
"id": "01a1ab01-fad8-7895-bdb1-1173c5c4c34d",
"name": "Training",
"workflowCount": 8,
"createdAt": "2026-07-28T09:00:00+02:00"
}
],
"uncategorizedCount": 0
}
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 get_workflow_categories.

POST/v1/workflow_categories

Adds a category. Use it when you set up an organization from code: create the categories first, then pass their ids as categoryId when you create the workflows.

Key permission: create_workflow_category

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

Field Type Required Validation
name string Yes Not blank, at most 100 characters, and not used by another of your categories, ignoring letter case. Spaces around it are removed.

201 Created with the category object, its workflowCount at 0.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/workflow_categories' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"name": "Billing"}'

Response 201:

{
"id": "01a1abe6-3547-7b6f-9ee0-1e78817e4f4d",
"name": "Billing",
"workflowCount": 0,
"createdAt": "2026-11-05T14:29:13+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 create_workflow_category.
422 name is missing, blank or too long, or has the wrong type.
422 A category of this name exists. The violation on name says “A category of this name exists already.”

PUT/v1/workflow_categories/{id}

Gives a category a new name. Its workflows stay in it. Changing only the letter case of its own name is allowed.

Key permission: update_workflow_category

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

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

The same name field as Create a category, under the same rules.

200 OK with the category object.

Terminal window
curl -X PUT 'https://api.doxtly.com/v1/workflow_categories/01a1abe6-3547-7b6f-9ee0-1e78817e4f4d' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{"name": "Billing and invoices"}'

Response 200:

{
"id": "01a1abe6-3547-7b6f-9ee0-1e78817e4f4d",
"name": "Billing and invoices",
"workflowCount": 0,
"createdAt": "2026-11-05T14:29:13+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_category.
404 id isn’t a UUID, or your organization has no category with this id.
422 name is missing, blank or too long, has the wrong type, or is taken by another category.

DELETE/v1/workflow_categories/{id}

Deletes a category. Its workflows aren’t deleted: they stay as they are, in no category.

Key permission: delete_workflow_category

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

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

204 No Content, with no body.

Terminal window
curl -X DELETE 'https://api.doxtly.com/v1/workflow_categories/01a1abe6-3547-7b6f-9ee0-1e78817e4f4d' \
-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_category.
404 id isn’t a UUID, or your organization has no category with this id.