Incoming webhooks API
An incoming webhook is an address another system calls to start your workflows, for example your shop reporting a paid order. These endpoints create and configure those addresses. Set up a webhook explains each setting in the app, and Calling a webhook covers the requests themselves.
This section covers managing those addresses, reading the requests they received, and calling them. These endpoints let your own systems do what the Webhooks screen does. Use them to create a webhook for each new client your CRM signs up.
A webhook on its own starts nothing. A workflow listens to it through a webhookRequest trigger that names the webhook’s id.
An incoming webhook only receives calls. To have Doxtly tell another system about your events as they happen, use an outgoing webhook. To call another system from a workflow, use the Webhook step. It is a step of a workflow and has no endpoints of its own: Workflow nodes gives its JSON, and Webhook in the manual explains it.
Two jobs bring most people here:
- Connecting a new client or partner: create a webhook, then a workflow that listens to it, and hand over the address.
- Answering “we sent it, what happened?”: look the request up by the id your partner was given, and follow it to the runs it started.
If you are new to webhooks, read Webhooks 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.
Set up a webhook from code
Section titled “Set up a webhook from code”Say Northbridge Advisory signs a new partner and wants its billing system to send invoice requests. The order matters, because a workflow can only listen to a webhook that exists and is switched on.
- Create the webhook with a token of your choice. Keep the token, and read
idandurlfrom the response. - Create the workflow with a
webhookRequesttrigger whoseentityIdis thatid. - Give the partner the
urland the token, and point their developer to Calling a webhook.
Several workflows can listen to one webhook: each request starts them all.
The webhook object
Section titled “The webhook object”Create, Get and Replace answer with this object. It never contains the token or the signing secret, only whether they are set.
| Field | Type | Meaning |
|---|---|---|
id |
UUID | The webhook’s identifier, which is also part of its address. |
name |
string | Its name. |
url |
string | The address to call. |
isActive |
boolean | Whether it takes requests. |
method |
string | The one HTTP method it takes. |
dataSource |
string | Where it reads data: body or query. Worked out from the method; see dataSource. |
authentication |
string | none, token or access_key. |
tokenLocation |
string or null | header or query for a token. Otherwise null. |
hasToken |
boolean | Whether a token is set. |
signatureScheme |
string or null | standard_webhooks, hmac_sha256, or null for no signature check. |
signatureHeader |
string or null | The header of an hmac_sha256 signature. |
signatureEncoding |
string or null | hex or base64, for hmac_sha256. |
signaturePrefix |
string or null | What comes before an hmac_sha256 signature. |
hasSigningSecret |
boolean | Whether a signing secret is set. |
jsonSchema |
string or null | The JSON Schema requests are checked against, as text. |
responseStatus |
integer | The status an accepted request gets. |
responseFormat |
string | json or text. |
responseBody |
string or null | The fixed body of that response. |
maxBodyKb |
integer | The largest body it takes, in KB. |
storesContent |
boolean | Whether what requests bring is kept with them. |
usesRateLimits |
boolean | Whether your organization’s rate limits apply. |
requiresIdempotencyKey |
boolean | Whether every request needs an idempotency key. |
workflows |
array | The workflows whose trigger names it, active or not, each with id, name and isActive. |
createdAt |
time | When it was created. |
updatedAt |
time | When it was last changed. |
List webhooks
Section titled “List webhooks”GET/v1/incoming_webhooks
Returns your webhooks as summaries. Use it to check what exists and how much each is used. A webhook with activeWorkflowsCount at 0 takes requests but starts nothing.
Key permission: get_webhooks
Headers: X-Api-Key, X-Api-Secret
Query parameters
Section titled “Query parameters”The shared list parameters apply. Without sort, rows come in the order of their identifiers.
| Parameter | Values | What it does |
|---|---|---|
filter[isActive][eq] |
true, false, 1, 0 |
Webhooks switched on or off. eq is the only operator. |
filter[method][eq] |
GET, POST, PUT, PATCH, DELETE |
Webhooks of that method. |
filter[authentication][eq] |
none, token, access_key |
Webhooks with that authentication. |
search[name] |
Text | Finds words in the name, ignoring letter case. |
sort |
name, isActive, method, authentication, createdAt, updatedAt |
The order. Add a - for descending. |
Response
Section titled “Response”200 OK with items and meta. Each item has these fields:
| Field | Type | Meaning |
|---|---|---|
id |
UUID | The webhook’s identifier. |
name |
string | Its name. |
isActive |
boolean | Whether it takes requests. |
method |
string | The method it takes. |
authentication |
string | none, token or access_key. |
signatureScheme |
string or null | The signature it checks, if any. |
activeWorkflowsCount |
integer | How many active workflows listen to it. |
requestsCount |
integer | How many of its requests your organization still keeps. |
createdAt |
time | When it was created. |
updatedAt |
time | When it was last changed. |
Example
Section titled “Example”curl -G 'https://api.doxtly.com/v1/incoming_webhooks' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET" \ --data-urlencode 'filter[isActive][eq]=true' \ --data-urlencode 'sort=name' \ --data-urlencode 'perPage=2'Response 200:
{ "items": [ { "id": "01a1ab01-fc50-786c-a39e-4a18105c040f", "name": "CRM: agreement ready", "isActive": true, "method": "POST", "authentication": "token", "signatureScheme": null, "activeWorkflowsCount": 1, "requestsCount": 24, "createdAt": "2026-07-29T10:00:00+02:00", "updatedAt": "2026-11-05T10:40:37+01:00" }, { "id": "01a1abc8-e695-79ce-ac2f-9776520fabfd", "name": "CRM: deal won", "isActive": true, "method": "POST", "authentication": "token", "signatureScheme": "hmac_sha256", "activeWorkflowsCount": 1, "requestsCount": 4, "createdAt": "2026-11-05T13:57:12+01:00", "updatedAt": "2026-11-05T13:57:12+01:00" } ], "meta": { "total": 8, "page": 1, "perPage": 2, "totalPages": 4, "hasMore": true, "hasPrevious": false }}Errors
Section titled “Errors”| Status | When |
|---|---|
400 |
A filter, sort field or page can’t be used. tokenLocation and the other fields that concern a secret can’t be filtered or sorted by. |
401 |
The key or secret is missing or wrong, or the key is switched off or expired. |
403 |
The key wasn’t given get_webhooks. |
Create a webhook
Section titled “Create a webhook”POST/v1/incoming_webhooks
Creates a webhook and gives you its address. Use it to set up an address per client or per integration from code.
Key permission: create_webhook
Headers: X-Api-Key, X-Api-Secret, Content-Type: application/json
Request body
Section titled “Request body”Only name is required, but the default authentication is none: anyone who learns the address can call it. Choose token or access_key unless the sending system can’t do either. Note that the app’s form starts from a token, and the API doesn’t.
| Field | Type | Default | Validation and meaning |
|---|---|---|---|
name |
string | Required | Not empty, at most 255 characters. |
isActive |
boolean | true |
Whether it takes requests. |
method |
string | POST |
GET, POST, PUT, PATCH or DELETE. |
dataSource |
string or null | null |
body or query. Read only for a DELETE webhook, which uses query unless you say body. POST, PUT and PATCH always read the body, and GET always reads the address. |
authentication |
string | none |
none, token or access_key. |
tokenLocation |
string or null | null |
header or query. With token, null means header: the Authorization header as a bearer token. query is the token parameter of the address. |
token |
string or null | null |
You choose the token: 24 to 512 printable characters, no spaces. Required for token authentication while the webhook has none. |
signatureScheme |
string or null | null |
standard_webhooks or hmac_sha256. null checks no signature. |
signatureHeader |
string or null | null |
Required for hmac_sha256. A header name of up to 100 characters. |
signatureEncoding |
string or null | null |
hex or base64. With hmac_sha256, null means hex. |
signaturePrefix |
string or null | null |
At most 32 characters, such as sha256=. Used with hmac_sha256. |
signingSecret |
string or null | null |
16 to 512 characters. Required when a scheme is set and the webhook has no secret. For standard_webhooks it must be base64 of 24 to 64 bytes, usually written with whsec_ in front. |
jsonSchema |
string or null | null |
A JSON Schema, as text: at most 65536 bytes, a JSON object, its $refs pointing only inside itself. It is read in the draft it names, or 2020-12. Blank means no check. |
responseStatus |
integer | 202 |
200, 201, 202 or 204. |
responseFormat |
string | json |
json or text: the Content-Type of the response, application/json or text/plain. |
responseBody |
string or null | null |
At most 65536 characters. With json, it must be valid JSON. Dropped for a 204, which has no body. Without one, an accepted request gets an empty response. |
maxBodyKb |
integer | 1024 |
From 1 to 1024. |
storesContent |
boolean | true |
Keep what requests bring, so it shows on their page. Workflows get it either way. |
usesRateLimits |
boolean | true |
Apply your organization’s webhook rate limits. false is refused with none authentication, even if the webhook checks a signature. |
requiresIdempotencyKey |
boolean | false |
Refuse requests without an idempotency key. |
Response
Section titled “Response”201 Created with the webhook object and a Location header holding /v1/incoming_webhooks/{id}.
Example
Section titled “Example”A webhook for a billing system that signs its requests the way many services do:
curl -X POST 'https://api.doxtly.com/v1/incoming_webhooks' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET" \ -H 'Content-Type: application/json' \ -d '{ "name": "Billing system: invoice requests", "authentication": "token", "tokenLocation": "header", "token": "nb-7Qm2xV9sLk4Tz8Rw1Hc6Yp3D", "signatureScheme": "hmac_sha256", "signatureHeader": "X-Billing-Signature", "signatureEncoding": "hex", "signaturePrefix": "sha256=", "signingSecret": "kP9vT2mQ7xZc4LrB8sWn", "jsonSchema": "{\"type\":\"object\",\"required\":[\"email\",\"invoiceNumber\"]}", "responseStatus": 202, "responseFormat": "json", "responseBody": "{\"received\":true}", "maxBodyKb": 256, "requiresIdempotencyKey": true }'Response 201:
{ "id": "01a1abe6-38ce-71af-877a-a6a4cccebce5", "name": "Billing system: invoice requests", "url": "https://api.doxtly.com/v1/webhooks/01a1abe6-38ce-71af-877a-a6a4cccebce5", "isActive": true, "method": "POST", "dataSource": "body", "authentication": "token", "tokenLocation": "header", "hasToken": true, "signatureScheme": "hmac_sha256", "signatureHeader": "X-Billing-Signature", "signatureEncoding": "hex", "signaturePrefix": "sha256=", "hasSigningSecret": true, "jsonSchema": "{\"type\":\"object\",\"required\":[\"email\",\"invoiceNumber\"]}", "responseStatus": 202, "responseFormat": "json", "responseBody": "{\"received\":true}", "maxBodyKb": 256, "storesContent": true, "usesRateLimits": true, "requiresIdempotencyKey": true, "workflows": [], "createdAt": "2026-11-05T14:29:14+01:00", "updatedAt": "2026-11-05T14:29:14+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_webhook. |
403 |
Your plan’s limit on webhooks is reached, or the plan doesn’t include them. See plans and limits. |
422 |
A field breaks the rules in the table above, or has the wrong type. |
422 |
token is missing for token authentication. |
422 |
signingSecret is missing for a scheme, or isn’t a Standard Webhooks secret. |
422 |
signatureHeader is missing for hmac_sha256. |
422 |
responseBody isn’t valid JSON while responseFormat is json. |
422 |
jsonSchema can’t be used. The violation says why. |
422 |
usesRateLimits is false with none authentication. |
Get a webhook
Section titled “Get a webhook”GET/v1/incoming_webhooks/{id}
Returns one webhook with all its settings, its address and the workflows listening to it. Call it before you replace a webhook.
Key permission: read_webhook
Headers: X-Api-Key, X-Api-Secret
| Path parameter | Type | Meaning |
|---|---|---|
id |
UUID | The webhook’s identifier. |
Response
Section titled “Response”200 OK with the webhook object.
Example
Section titled “Example”curl 'https://api.doxtly.com/v1/incoming_webhooks/01a1abe6-38ce-71af-877a-a6a4cccebce5' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET"Response 200:
{ "id": "01a1abe6-38ce-71af-877a-a6a4cccebce5", "name": "Billing system: invoice requests", "url": "https://api.doxtly.com/v1/webhooks/01a1abe6-38ce-71af-877a-a6a4cccebce5", "isActive": true, "method": "POST", "dataSource": "body", "authentication": "token", "tokenLocation": "header", "hasToken": true, "signatureScheme": "hmac_sha256", "signatureHeader": "X-Billing-Signature", "signatureEncoding": "hex", "signaturePrefix": "sha256=", "hasSigningSecret": true, "jsonSchema": "{\"type\":\"object\",\"required\":[\"email\",\"invoiceNumber\"]}", "responseStatus": 202, "responseFormat": "json", "responseBody": "{\"received\":true}", "maxBodyKb": 256, "storesContent": true, "usesRateLimits": true, "requiresIdempotencyKey": true, "workflows": [ { "id": "01a1abe6-3bd2-79d1-8b5e-ee498cdbcd5e", "name": "Invoice request intake", "isActive": true } ], "createdAt": "2026-11-05T14:29:14+01:00", "updatedAt": "2026-11-05T14:29:14+01:00"}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 read_webhook. |
404 |
id isn’t a UUID, or your organization has no webhook with this id. |
Replace a webhook
Section titled “Replace a webhook”PUT/v1/incoming_webhooks/{id}
Saves all of a webhook’s settings. Use it to rotate a token, change a schema or switch a webhook off. The address stays the same.
Key permission: update_webhook
Headers: X-Api-Key, X-Api-Secret, Content-Type: application/json
| Path parameter | Type | Meaning |
|---|---|---|
id |
UUID | The webhook’s identifier. |
Request body
Section titled “Request body”The same fields as Create a webhook, with these differences for secrets:
| You want to | Send |
|---|---|
| Keep the token | authentication: "token" and no token. |
| Change the token | A new token. The old one stops working at once. |
| Stop using a token | Another authentication. The token is forgotten, so going back to token needs a new one. |
| Keep the signing secret | The same signatureScheme and no signingSecret. |
| Change the signing secret | A new signingSecret. |
| Change the scheme | The new signatureScheme and a new signingSecret. A secret isn’t kept across schemes. |
| Stop checking signatures | signatureScheme: null. The secret is forgotten. |
Switching a webhook off answers its callers 404. Workflows keep listening and start again when you switch it back on. While it is off, no workflow can be newly pointed at it.
Response
Section titled “Response”200 OK with the webhook object.
Example
Section titled “Example”This call switches a webhook off and keeps its token and signing secret:
curl -X PUT 'https://api.doxtly.com/v1/incoming_webhooks/01a1abe6-38ce-71af-877a-a6a4cccebce5' \ -H "X-Api-Key: $DOXTLY_API_KEY" \ -H "X-Api-Secret: $DOXTLY_API_SECRET" \ -H 'Content-Type: application/json' \ -d '{ "name": "Billing system: invoice requests", "isActive": false, "authentication": "token", "tokenLocation": "header", "signatureScheme": "hmac_sha256", "signatureHeader": "X-Billing-Signature", "signatureEncoding": "hex", "signaturePrefix": "sha256=", "jsonSchema": "{\"type\":\"object\",\"required\":[\"email\",\"invoiceNumber\"]}", "responseBody": "{\"received\":true}", "maxBodyKb": 256, "requiresIdempotencyKey": true }'Response 200:
{ "id": "01a1abe6-38ce-71af-877a-a6a4cccebce5", "name": "Billing system: invoice requests", "url": "https://api.doxtly.com/v1/webhooks/01a1abe6-38ce-71af-877a-a6a4cccebce5", "isActive": false, "method": "POST", "dataSource": "body", "authentication": "token", "tokenLocation": "header", "hasToken": true, "signatureScheme": "hmac_sha256", "signatureHeader": "X-Billing-Signature", "signatureEncoding": "hex", "signaturePrefix": "sha256=", "hasSigningSecret": true, "jsonSchema": "{\"type\":\"object\",\"required\":[\"email\",\"invoiceNumber\"]}", "responseStatus": 202, "responseFormat": "json", "responseBody": "{\"received\":true}", "maxBodyKb": 256, "storesContent": true, "usesRateLimits": true, "requiresIdempotencyKey": true, "workflows": [ { "id": "01a1abe6-3bd2-79d1-8b5e-ee498cdbcd5e", "name": "Invoice request intake", "isActive": false } ], "createdAt": "2026-11-05T14:29:14+01:00", "updatedAt": "2026-11-05T14:29:46+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_webhook. |
404 |
id isn’t a UUID, or your organization has no webhook with this id. |
422 |
As for Create a webhook. token is required when you switch to token from another authentication. signingSecret is required when you change the scheme. |
Delete a webhook
Section titled “Delete a webhook”DELETE/v1/incoming_webhooks/{id}
Deletes a webhook and every request it received, with their content. The address stops working and answers 404. The workflow runs those requests started stay. While a workflow’s trigger names the webhook, it can’t be deleted: change that workflow first.
Key permission: delete_webhook
Headers: X-Api-Key, X-Api-Secret
| Path parameter | Type | Meaning |
|---|---|---|
id |
UUID | The webhook’s identifier. |
Response
Section titled “Response”204 No Content, with no body.
Example
Section titled “Example”curl -X DELETE 'https://api.doxtly.com/v1/incoming_webhooks/01a1abe6-38ce-71af-877a-a6a4cccebce5' \ -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_webhook. |
404 |
id isn’t a UUID, or your organization has no webhook with this id. |
409 |
Workflows still use it (code used_by_workflows, with workflows: their id and name). Change them first. |