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.
The category object
Section titled “The category object”| 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. |
List categories
Section titled “List categories”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.
Response
Section titled “Response”200 OK:
| Field | Type | Meaning |
|---|---|---|
items |
array | The categories. |
uncategorizedCount |
integer | How many workflows are in no category. |
Example
Section titled “Example”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}Errors
Section titled “Errors”| 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. |
Create a category
Section titled “Create a category”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
Request body
Section titled “Request body”| 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. |
Response
Section titled “Response”201 Created with the category object, its workflowCount at 0.
Example
Section titled “Example”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"}Errors
Section titled “Errors”| 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.” |
Rename a category
Section titled “Rename a category”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. |
Request body
Section titled “Request body”The same name field as Create a category, under the same rules.
Response
Section titled “Response”200 OK with the category object.
Example
Section titled “Example”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"}Errors
Section titled “Errors”| 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 a category
Section titled “Delete a 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. |
Response
Section titled “Response”204 No Content, with no body.
Example
Section titled “Example”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.
Errors
Section titled “Errors”| 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. |