Skip to content

Outgoing webhooks API

An outgoing webhook is a subscription: an HTTPS address of yours that Doxtly calls whenever an event it takes happens in your organization, such as an interactive document being filled in or a contract nearing its end. These endpoints create and manage those subscriptions, show what was delivered, and describe every event. The second half of the page is for whoever builds the receiving side: the request, the signature and the rules of delivery.

Outgoing webhooks in the manual explains the same thing in the app. Incoming webhooks, the addresses other systems call to start your workflows, are on their own page.

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. The errors page explains how to read an error.

Say Northbridge Advisory’s accounting system should issue an invoice for every training order, which arrives as a filled-in interactive document.

  1. List the event types to see the body of interactiveDocumentSubmission, and build the receiver for it.
  2. Create the webhook with the receiver’s address, the event and the interactive document’s id as a filter. Keep the secret from the response: it is shown only then.
  3. Send a test event and check that the receiver answers 2xx and verifies the signature.
  4. Watch the deliveries for a while, and send one again if the receiver lost it.

Read the key itself to check which organization and operations a key has before you subscribe.

Get, Update and the list answer with this object. It never contains the signing secret, and only part of the address.

Field Type Meaning
id UUID The webhook’s identifier.
name string Its name.
url string Its address, masked: the scheme and host, then … and the last four characters, such as https://accounting.northbridge.example/…7f3k. Addresses of automation platforms carry a token, so the whole address is never shown again.
eventTypes array of strings The event types it takes.
filters object formId, interactiveDocumentId, packageTypeId and contactTypeId, each an id or null. See filters.
isActive boolean Whether it is switched on.
status string active (on, nothing failing), failing (on, attempts failed since the last delivery), inactive (switched off by someone) or disabled (switched off by Doxtly).
source string Who made it: manual in the app, api, zapier, make or n8n.
createdByAccessKeyId UUID or null The key it was created with. null for one made in the app, or when that key was deleted.
consecutiveFailures integer Attempts failed since the last delivered one.
failingSince time or null When the first of them failed.
lastDeliveredAt time or null When it last took a delivery.
disabledAt time or null When Doxtly switched it off.
disabledReason string or null failing (nothing delivered for five days) or gone (the address answered 410 Gone).
createdAt time When it was created.
updatedAt time When it was last changed.

GET/v1/outgoing_webhooks

Returns your outgoing webhooks, a page at a time, as webhook objects.

Key permission: get_outgoing_webhooks

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

The shared list parameters apply: page, and perPage, 20 by default.

Parameter Values What it does
search[name] Text Finds words in the name.
filter[isActive][eq] true, false Webhooks switched on or off.
sort For example name or -createdAt The order. Add a - for descending. url can’t be sorted by.
Terminal window
curl -G 'https://api.doxtly.com/v1/outgoing_webhooks' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET" \
--data-urlencode 'search[name]=Accounting' \
--data-urlencode 'sort=name'

Response 200, with items as in Get an outgoing webhook:

{
"items": [
{ "id": "01a1d5b2-4c7e-7a3d-9e21-6f0b8c2d4a17", "name": "Accounting: training orders", "...": "..." }
],
"meta": {
"total": 1,
"page": 1,
"perPage": 20,
"totalPages": 1,
"hasMore": false,
"hasPrevious": false
}
}
Status When
400 A filter, sort field or page can’t be used, such as sort=url.
401 The key or secret is missing or wrong, or the key is switched off or expired.
403 The key wasn’t given get_outgoing_webhooks.

POST/v1/outgoing_webhooks

Subscribes an address to events. The response holds the signing secret, the only time it is shown.

Key permission: create_outgoing_webhook

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

Field Type Default Validation and meaning
name string Required Not empty, at most 255 characters.
url string Required At most 2,048 characters. https:// only, with no user name or password, and a host that resolves to an address on the public internet. Doxtly checks the host again at every delivery.
eventTypes array of strings Required At least one value from the catalogue.
filters object or null No filters Narrows the events of one subject each: formId the submissions of one form, interactiveDocumentId of one interactive document, packageTypeId the events of packages of one type, contactTypeId the contacts of one type. Each is an id of your organization or null. A filter narrows only events of its own subject: a webhook with formId that also takes packageExpired gets every expired package. documentGenerated and the CRM’s events have no filter.
isActive boolean true Whether events are sent to it.
source string api Who it is for: api, zapier, make or n8n. A webhook of zapier, make or n8n is deleted when its address answers 410 Gone; any other one is switched off. A webhook made in the app is always manual.

201 Created with a Location header holding /v1/outgoing_webhooks/{id}, and this body:

Field Type Meaning
id UUID The webhook’s identifier.
webhook object The webhook object.
secret string The signing secret: whsec_ and the base64 of 32 random bytes. Shown only in this response.
Terminal window
curl -X POST 'https://api.doxtly.com/v1/outgoing_webhooks' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{
"name": "Accounting: training orders",
"url": "https://accounting.northbridge.example/hooks/doxtly/7f3k",
"eventTypes": ["interactiveDocumentSubmission"],
"filters": { "interactiveDocumentId": "01a1ab64-2f0e-7c55-b1d3-5a9e0c7d2b41" }
}'

Response 201:

{
"id": "01a1d5b2-4c7e-7a3d-9e21-6f0b8c2d4a17",
"webhook": {
"id": "01a1d5b2-4c7e-7a3d-9e21-6f0b8c2d4a17",
"name": "Accounting: training orders",
"url": "https://accounting.northbridge.example/…7f3k",
"eventTypes": ["interactiveDocumentSubmission"],
"filters": {
"formId": null,
"interactiveDocumentId": "01a1ab64-2f0e-7c55-b1d3-5a9e0c7d2b41",
"packageTypeId": null,
"contactTypeId": null
},
"isActive": true,
"status": "active",
"source": "api",
"createdByAccessKeyId": "01a1d59f-c762-7ddf-8b7a-04e91c7a6a22",
"consecutiveFailures": 0,
"failingSince": null,
"lastDeliveredAt": null,
"disabledAt": null,
"disabledReason": null,
"createdAt": "2026-11-13T10:15:42+01:00",
"updatedAt": "2026-11-13T10:15:42+01:00"
},
"secret": "whsec_Qm9vZ0tYc0lHQ3V6bk1ZdlR5R2ZkM2pXaFJ6cFZ4c2E="
}
Status When
400 The body isn’t valid JSON.
401 The key or secret is missing or wrong, or the key is switched off or expired.
403 The key wasn’t given create_outgoing_webhook.
403 Your plan’s limit on outgoing webhooks is reached. See plans and limits.
422 A field breaks the rules above. violations names each field, such as url, eventTypes or filters.formId.

A refused address and an empty list of events, as Doxtly answers them:

{
"violations": [
{
"field": "url",
"message": "The address must start with https:// and carry no user name or password.",
"code": "57c2f299-1154-4870-89bb-ef3b1f5ad229"
},
{
"field": "eventTypes",
"message": "Choose at least one event.",
"code": "bef8e338-6ae5-4caf-b8e2-50e7b0579e69"
}
],
"type": "https://tools.ietf.org/html/rfc4918#section-11.2",
"title": "Validation Error",
"status": 422,
"detail": "The submitted data is invalid. Please check the fields and try again.",
"instance": "/v1/outgoing_webhooks"
}

An address whose host is in a private network gets The address must be on the public internet. on url when the request has Accept-Language: en (without the header the API answers in Polish).

GET/v1/outgoing_webhooks/{id}

Returns one webhook, with where it stands.

Key permission: read_outgoing_webhook

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

Path parameter Type Meaning
id UUID The webhook’s identifier.
Terminal window
curl 'https://api.doxtly.com/v1/outgoing_webhooks/01a1d5b2-4c7e-7a3d-9e21-6f0b8c2d4a17' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET"

Response 200, a webhook whose address has been failing since the morning:

{
"id": "01a1d5b2-4c7e-7a3d-9e21-6f0b8c2d4a17",
"name": "Accounting: training orders",
"url": "https://accounting.northbridge.example/…7f3k",
"eventTypes": ["interactiveDocumentSubmission"],
"filters": {
"formId": null,
"interactiveDocumentId": "01a1ab64-2f0e-7c55-b1d3-5a9e0c7d2b41",
"packageTypeId": null,
"contactTypeId": null
},
"isActive": true,
"status": "failing",
"source": "api",
"createdByAccessKeyId": "01a1d59f-c762-7ddf-8b7a-04e91c7a6a22",
"consecutiveFailures": 3,
"failingSince": "2026-11-14T08:02:11+01:00",
"lastDeliveredAt": "2026-11-13T16:40:05+01:00",
"disabledAt": null,
"disabledReason": null,
"createdAt": "2026-11-13T10:15:42+01:00",
"updatedAt": "2026-11-13T10:15:42+01:00"
}
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_outgoing_webhook.
404 No webhook of your organization has this id.

PATCH/v1/outgoing_webhooks/{id}

Changes the fields you send and keeps the rest.

Key permission: update_outgoing_webhook

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

Any of name, url, eventTypes, filters and isActive, with the rules of Create. filters, when sent, replaces all four filters: {} takes them all away.

Switching on with "isActive": true a webhook that was off, or that Doxtly switched off, clears its failures and disabledReason: it starts afresh. Deliveries canceled when it was switched off stay canceled; send them again one by one.

Terminal window
curl -X PATCH 'https://api.doxtly.com/v1/outgoing_webhooks/01a1d5b2-4c7e-7a3d-9e21-6f0b8c2d4a17' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{ "eventTypes": ["interactiveDocumentSubmission", "packageExpired"] }'

Response 200 with the webhook object.

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 update_outgoing_webhook.
404 No webhook of your organization has this id.
422 A field breaks the rules of Create.

DELETE/v1/outgoing_webhooks/{id}

Deletes the webhook with all its deliveries. Nothing more is sent to its address, including deliveries that were waiting.

Key permission: delete_outgoing_webhook

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

Terminal window
curl -X DELETE 'https://api.doxtly.com/v1/outgoing_webhooks/01a1d5b2-4c7e-7a3d-9e21-6f0b8c2d4a17' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET"

Response 204 No Content, without a 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_outgoing_webhook.
404 No webhook of your organization has this id.

GET/v1/outgoing_webhooks/{id}/deliveries

Returns the webhook’s deliveries of the last 30 days, the latest first. A delivery is one event sent to this webhook, with all its attempts.

Key permission: get_outgoing_webhook_deliveries

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

page and perPage work as in every list.

Field Type Meaning
id UUID The delivery’s identifier. It is the webhook-id header of every request it made.
eventId UUID or null The event’s identifier, the body’s eventId, the same for every webhook that took the event. null for a test event.
eventType string The event’s type.
isTest boolean Whether it was a test event.
status string pending (not sent yet), retrying (failed, will be sent again), delivered (answered 2xx), failed (every attempt failed, or 410 Gone) or canceled (the webhook was switched off, or the subscription ended).
attempts integer How many times it was sent.
responseStatus integer or null The HTTP status of the last answer. null when the address didn’t answer.
durationMs integer or null How long the last answer took.
error string or null Why the last attempt failed, such as HTTP 500: … with the start of the answer, or why no answer came.
lastAttemptAt time or null When it was last sent.
nextAttemptAt time or null When it is sent next.
createdAt time When it was made.
Terminal window
curl 'https://api.doxtly.com/v1/outgoing_webhooks/01a1d5b2-4c7e-7a3d-9e21-6f0b8c2d4a17/deliveries' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET"

Response 200, trimmed to two items:

{
"items": [
{
"id": "01a1d8e4-91a2-7d0c-8b5e-2c7f4a9d1e63",
"eventId": "01a1d8e4-8f37-7b21-a6c0-4e1b9d2f7a58",
"eventType": "interactiveDocumentSubmission",
"isTest": false,
"status": "retrying",
"attempts": 3,
"responseStatus": 503,
"durationMs": 412,
"error": "HTTP 503: Service Unavailable",
"lastAttemptAt": "2026-11-14T08:37:18+01:00",
"nextAttemptAt": "2026-11-14T10:37:18+01:00",
"createdAt": "2026-11-14T08:02:09+01:00"
},
{
"id": "01a1d6c0-3b5f-7e18-9d47-8a2e6f1c0b39",
"eventId": "01a1d6c0-3a02-7f9b-b3d8-1f6c4e8a2d75",
"eventType": "interactiveDocumentSubmission",
"isTest": false,
"status": "delivered",
"attempts": 1,
"responseStatus": 200,
"durationMs": 184,
"error": null,
"lastAttemptAt": "2026-11-13T16:40:05+01:00",
"nextAttemptAt": null,
"createdAt": "2026-11-13T16:40:03+01:00"
}
],
"meta": {
"total": 14,
"page": 1,
"perPage": 20,
"totalPages": 1,
"hasMore": false,
"hasPrevious": 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 get_outgoing_webhook_deliveries.
404 No webhook of your organization has this id.

POST/v1/outgoing_webhooks/{id}/deliveries/{deliveryId}/resend

Sends a delivery again from its first attempt, with the same body and the same webhook-id, so a receiver that already has it can tell. Use it for a delivery that failed or was canceled, or one the receiver lost. It works on any delivery of the webhook, whatever its status.

Key permission: resend_outgoing_webhook_delivery

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

Path parameter Type Meaning
id UUID The webhook’s identifier.
deliveryId UUID The delivery’s identifier.
Terminal window
curl -X POST 'https://api.doxtly.com/v1/outgoing_webhooks/01a1d5b2-4c7e-7a3d-9e21-6f0b8c2d4a17/deliveries/01a1d8e4-91a2-7d0c-8b5e-2c7f4a9d1e63/resend' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET"

Response 200 with the delivery, on its way: status is pending and attempts is 0, while the fields of the last answer still show the attempt before.

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 resend_outgoing_webhook_delivery.
404 No webhook of your organization has this id, or the delivery isn’t one of this webhook.
409 The webhook is switched off, by someone or by Doxtly. Switch it on first.

POST/v1/outgoing_webhooks/{id}/test

Sends the webhook a sample of an event at once, signed like every delivery, and answers how it went. Use it to check a new receiver before real events reach it. The sample is the catalogue’s, with made-up values and eventId set to null.

A test is sent once and never retried, also works on a webhook that is switched off, and changes nothing of the webhook’s status or failures. It appears among the deliveries with isTest: true. The call waits for the answer, up to 15 seconds.

Key permission: send_test_event

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

Field Type Default Meaning
eventType string or null The first of the webhook’s eventTypes Which event to send a sample of: any type of the catalogue.

The body can be left out.

Terminal window
curl -X POST 'https://api.doxtly.com/v1/outgoing_webhooks/01a1d5b2-4c7e-7a3d-9e21-6f0b8c2d4a17/test' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET" \
-H 'Content-Type: application/json' \
-d '{ "eventType": "packageExpired" }'

Response 200:

{
"id": "01a1d5b3-0e6a-7c4f-a812-3d9b5e7f1c26",
"eventId": null,
"eventType": "packageExpired",
"isTest": true,
"status": "delivered",
"attempts": 1,
"responseStatus": 200,
"durationMs": 231,
"error": null,
"lastAttemptAt": "2026-11-13T10:16:20+01:00",
"nextAttemptAt": null,
"createdAt": "2026-11-13T10:16:20+01:00"
}

A test the address refused comes back with "status": "failed", its responseStatus and the error.

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 send_test_event.
404 No webhook of your organization has this id.
422 eventType isn’t in the catalogue.

GET/v1/event_types

Returns the catalogue: every event a webhook can take, with a description, the JSON Schema of the body your address receives for it, and a sample body. Build your receiver from it.

Key permission: get_event_types

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

Field Type Meaning
eventType string The value for eventTypes.
subject string What it is about: form, interactiveDocument, template, documentPackage, contact, crm, payment, quiz or survey.
title string A short English title.
description string When it happens, in English.
payloadSchema object The JSON Schema of the whole body, data included.
sample object A body with made-up values, as a test event sends it.
eventType subject When it happens
formSubmission form A form was submitted, or a submission edited. submission.revision is 0 for a submission and the edit’s number for an edit.
interactiveDocumentSubmission interactiveDocument The documents of a filled-in interactive document were rendered, as it was submitted or after an edit.
documentGenerated template A document was generated from a template.
packagePartyTurnStarted documentPackage It became a party’s turn to sign, approve or receive the package.
packagePartyViewed documentPackage A party opened its first document of the package; once per party.
packageApproved documentPackage An approver let the package through.
packageApprovalRejected documentPackage An approver did not, with the reason given.
packagePartySigned documentPackage A party signed a document of the package.
packagePartyPaid documentPackage A party who pays as part of signing paid; once per party. Their turn ends then, and the package is fully signed once every party has signed and paid. party.payment is what they paid; no card or account data of the payer is ever sent.
packagePartyPaymentFailed documentPackage The payment of a party who pays as part of signing ended unpaid: its 24 hours passed with no attempt paid. Their signature stands, and they can pay again from their signing link while the package is open.
packageDeclined documentPackage A party refused to sign, with the reason given.
packageFullySigned documentPackage Every party signed every document.
packageExpired documentPackage The deadline passed and the last open document expired; once per package.
packageVoided documentPackage The sender voided what was left of the package; once per package.
packageContractChanged documentPackage A change of a contract took effect (an annex, also one changing only the terms), somebody changed its term, or it renewed.
packageContractEndingSoon documentPackage A contract entered its type’s warning period before its end or the last day to give notice; once per period, and again after each renewal.
packageContractEnded documentPackage A contract ended, by its term or by an annex.
contactSaved contact A contact was created or changed. contactChange.event is created or updated.
crmOpportunityStageChanged crm A deal of a connected CRM (Pipedrive, HubSpot; an opportunity of Copper) moved to another stage, or was won or lost. opportunity is the deal as the CRM has it when the event is sent, with its stage and status before the change; crm the integration it came through.
crmPersonSaved crm A person of a connected CRM (Pipedrive, HubSpot, Copper) was created or changed. personChange.event is created or updated; person is the person as the CRM has it when the event is sent, crm the integration it came through.
paymentSucceeded payment A payer paid a payment of a form’s submission in time; once per payment. payment is the payment as it is when the event is sent.
paymentFailed payment A payment ended unpaid: its 24 hours passed with no attempt paid; once per payment, not per attempt. The submission it was for starts nothing.
paymentRefunded payment A refund of a payment succeeded at the provider, in full or in part; once per refund. refund is that refund, payment.refundedAmount everything given back so far; refund.reason is late_payment for a payment that came after its time and was given back at once.
quizAttemptStarted quiz Somebody started an attempt at a quiz. attempt holds only id, number, startedAt, language, personName and personEmail (the access list’s person, null on an open link), and values is still empty.
quizAttemptNeedsGrading quiz An attempt was sent with open answers nobody could grade yet, and waits for someone with the Grade attempts permission; once per attempt. attempt.score is what the rest earned so far, and the waiting answers are pending in results. quizAttemptFinished follows with the final score once they are graded.
quizAttemptFinished quiz An attempt was sent and scored, every open answer graded; once per attempt. attempt has its score and how it ended, results one entry per question with its answer and verdict.
quizResultsReleased quiz The result of an attempt was shown to its person: at once, once every answer was graded, or when somebody released it, as the quiz says; once per attempt. A person whose e-mail is known is sent it. attempt.grade is the grade reached on the quiz’s grading scale.
quizClosed quiz A quiz stopped taking attempts: its close date passed (closure.reason date) or the last response it takes was started (limit); once per close. closure.attempts is how many attempts it took, closure.finished how many of them were sent.
quizRecipientDidNotRespond quiz Somebody a quiz was sent to had not finished it by the deadline of the invitations that sent it; once per person and invitation. Their reminders stop then. person says who: a person of the access list (person.kind list) or a contact sent a personal link (contact, with contact and company). There is no attempt.
quizAttemptRegraded quiz A finished attempt’s outcome changed, its score, its pass or its grade: graded again by hand, by a workflow, or by a regrade after the answer key or the grading scale changed; once per change. attempt.previous is the outcome before it.
surveyResponseStarted survey Somebody started responding to a survey. response holds who and when, without submittedAt or durationSeconds; who responds is empty for an anonymous survey.
surveyResponseSubmitted survey A response to a survey was sent; once per response. response has submittedAt and durationSeconds, answers one entry per question, in the order the response was served them, and values the answers by data key. Nothing is scored.
surveyRecipientDidNotRespond survey Somebody a survey was sent to had not responded by the deadline of the invitations that sent it; once per person and invitation. Their reminders stop then. person says who, as for quizRecipientDidNotRespond. There is no response.
surveyClosed survey A survey stopped taking responses: its close date passed (closure.reason date) or the last response it takes was started (limit); once per close. closure.responses is how many responses it took, closure.submitted how many of them were sent.
surveyQuotaFull survey One of a survey’s quotas took its last response; once per quota. quota is the quota (id, label, limit, filledAt); responses that would count in it end with its closed text from then on.
Terminal window
curl 'https://api.doxtly.com/v1/event_types' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET"

Response 200, trimmed to one item and to the start of its schema:

{
"items": [
{
"eventType": "packageExpired",
"subject": "documentPackage",
"title": "The package expires",
"description": "The deadline passed and the last document still open expired; once per package.",
"payloadSchema": {
"type": "object",
"required": ["schemaVersion", "eventType", "eventId", "occurredAt", "organizationId", "data"],
"properties": {
"schemaVersion": { "type": "integer", "const": 1 },
"eventType": { "type": "string", "const": "packageExpired" },
"eventId": { "type": ["string", "null"], "format": "uuid", "description": "The same for every webhook the event is sent to; null for a test event." },
"occurredAt": { "type": "string", "format": "date-time" },
"organizationId": { "type": "string", "format": "uuid" },
"data": { "type": "object", "properties": { "...": "..." } }
}
},
"sample": {
"schemaVersion": 1,
"eventType": "packageExpired",
"eventId": "0193a5d6-7c1e-7b51-9a8f-3f5d2c1b0a99",
"occurredAt": "2026-11-13T11:00:00+00:00",
"organizationId": "01a1aaef-8959-73ca-b6e7-d19c0e49272f",
"data": { "...": "..." }
}
}
]
}
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_event_types.

GET/v1/event_types/{eventType}/samples

Returns up to three of the latest real events of a type in your organization, each built as a webhook would be sent it now. When there is none yet, it returns the catalogue’s sample. Automation platforms show these while a trigger is being set up, and you can use them to see real data before subscribing.

Key permission: get_event_samples

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

Path parameter Type Meaning
eventType string A type of the catalogue.
Query parameter Type Meaning
formId, interactiveDocumentId, packageTypeId, contactTypeId UUID Optional. Only the events a webhook with this filter would get, such as formId for the submissions of one form. Of the latest events of the type, those that pass; when none does, the catalogue’s sample.
Terminal window
curl 'https://api.doxtly.com/v1/event_types/packageExpired/samples' \
-H "X-Api-Key: $DOXTLY_API_KEY" \
-H "X-Api-Secret: $DOXTLY_API_SECRET"

Response 200 with items, each a body as your address would receive it.

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_event_samples.
404 There is no such event type. Doxtly answers There is no such event type.

Each delivery is one POST request to the webhook’s address:

Header Value
Content-Type application/json
User-Agent Doxtly-Webhooks/1.0
webhook-id The delivery’s id. The same on every retry and every resend of that delivery, so use it to drop duplicates.
webhook-timestamp When this attempt was signed, in Unix seconds.
webhook-signature v1, followed by the base64 signature. See Checking the signature.

The same envelope for every event:

Field Type Meaning
schemaVersion integer 1. A change to data that isn’t only an addition comes as a new version.
eventType string The event’s type.
eventId UUID or null The event’s id, the same for every webhook the event is sent to. null for a test event.
occurredAt time When the event happened, in UTC (ISO 8601).
organizationId UUID Your organization.
data object What the event is about, described by the type’s payloadSchema.

data holds the same blocks a workflow started by that event gets, without their leading underscore: package, party, submission, contact, company, contactChange, generation, for a CRM’s events crm with opportunity, or person and personChange, for a payment’s events payment, with refund for a refund, and for a quiz’s events quiz and attempt, with results once the attempt is finished and attempt.previous for a regrade, quiz and closure when a quiz closes, or for a quiz recipient who does not respond quiz and person, with contact and company for a contact, and for a survey’s events survey and response, with answers once the response is submitted, survey and closure when it closes, survey and quota when a quota is full, or survey and person for a recipient who does not respond, depending on the event. A form submission also has form and an interactive document’s submission interactiveDocument, each with the record’s id and title; submission.interactiveDocumentId and submission.interactiveDocumentTitle stay for receivers set up before. A form submission also has payment, empty for a form that takes none: on a form that takes one, formSubmission is sent once the payment is made, never for a submission left unpaid. The Payment trigger lists the fields of payment and refund, the Quiz trigger those of quiz, attempt and results, and A quiz recipient does not respond those of person; the Survey trigger lists those of survey, response and answers. Times inside data are in your organization’s time zone. Besides them:

  • values: what was filled in, by field, for forms, interactive documents and generated documents, and the answers by question for a quiz or a survey. Password and signature fields are always empty.
  • files for submissions and documents for packages: each with a downloadUrl, an API address such as https://api.doxtly.com/v1/document_packages/{id}/documents/{documentId}/pdf. A link opens only with an access key that holds its download operation: download_package_document, download_submission_file, download_interactive_document_submission_file, or download_generated_file for generation.downloadUrl. A body never carries a file itself.

A filled-in order, trimmed:

{
"schemaVersion": 1,
"eventType": "interactiveDocumentSubmission",
"eventId": "01a1d6c0-3a02-7f9b-b3d8-1f6c4e8a2d75",
"occurredAt": "2026-11-13T15:40:03+00:00",
"organizationId": "01a1aaef-8959-73ca-b6e7-d19c0e49272f",
"data": {
"interactiveDocument": {
"id": "01a1ab64-2f0e-7c55-b1d3-5a9e0c7d2b41",
"title": "Training order"
},
"submission": {
"id": "01a1d6bf-f1c4-7a90-8e2b-6d3a5c9f0e14",
"title": "Training order: GDPR for HR teams",
"interactiveDocumentId": "01a1ab64-2f0e-7c55-b1d3-5a9e0c7d2b41",
"interactiveDocumentTitle": "Training order",
"submittedAt": "2026-11-13T16:40:01+01:00",
"submittedDate": "2026-11-13",
"language": "en",
"revision": 0,
"editedAt": null,
"editedBy": null,
"personalLink": false
},
"values": {
"companyName": "Ashgrove Logistics",
"participants": 12,
"courseDate": "2026-12-03"
},
"files": [
{
"id": "01a1d6c0-2b7d-7e44-9f18-0c5a3e6b8d92",
"kind": "document",
"filename": "training-order.pdf",
"mimeType": "application/pdf",
"size": 84213,
"downloadUrl": "https://api.doxtly.com/v1/interactive-document-submissions/01a1d6bf-f1c4-7a90-8e2b-6d3a5c9f0e14/files/01a1d6c0-2b7d-7e44-9f18-0c5a3e6b8d92"
}
]
}
}

A submission through a personal link also has contact and company.

  • the values of custom fields marked as sensitive;
  • what was typed into password and signature fields;
  • a party’s signing link, which would open their documents to whoever has it;
  • the data given to the workflow run that created a package.
  • anything the payment provider knows of the payer’s card or bank account.

Requests are signed as the Standard Webhooks specification says, so its libraries for most languages verify them with the secret as it is. To check by hand:

  1. Take the secret without whsec_ and decode it from base64: those bytes are the key.
  2. Build the text {webhook-id}.{webhook-timestamp}.{body}, the body exactly as it arrived, before parsing it.
  3. Compute HMAC-SHA256 of that text with the key and encode it in base64.
  4. Compare it, in constant time, with what follows v1, in webhook-signature.

Refuse a request whose webhook-timestamp is more than a few minutes from your clock, so that a recorded request can’t be replayed later. Each attempt is signed anew, so a retry has a new timestamp and signature but the same webhook-id.

In Node.js:

import crypto from 'node:crypto';
function isFromDoxtly(headers, rawBody, secret) {
const key = Buffer.from(secret.replace(/^whsec_/, ''), 'base64');
const signed = `${headers['webhook-id']}.${headers['webhook-timestamp']}.${rawBody}`;
const expected = crypto.createHmac('sha256', key).update(signed).digest();
const age = Math.abs(Date.now() / 1000 - Number(headers['webhook-timestamp']));
return age < 300 && headers['webhook-signature'].split(' ').some((part) => {
const [version, signature] = part.split(',');
const given = Buffer.from(signature ?? '', 'base64');
return version === 'v1' && given.length === expected.length && crypto.timingSafeEqual(given, expected);
});
}
  • Success is a 2xx answer within 15 seconds. Redirects aren’t followed and count as failures. Doxtly reads and keeps at most the first 16 KB of an answer.
  • Retries. Any other answer, or none, is tried again 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours after the attempt before: eight attempts in about 45 hours. Then the delivery is failed, and only Send a delivery again sends it.
  • Retry-After. An answer of 429 or 503 with a Retry-After header, in seconds or as a date, is waited for as it asks, up to a day.
  • 410 Gone says nobody listens at the address any more. The delivery isn’t retried. A webhook of zapier, make or n8n is deleted; any other is switched off with disabledReason gone.
  • A webhook that keeps failing. After a day without a delivery, counted from the first failed attempt, and at least five failed attempts, the people with Manage webhooks get a warning, once for each spell of failures. After five days and at least 20 failed attempts, Doxtly switches the webhook off with disabledReason failing, cancels the deliveries still waiting and tells them again.
  • Order isn’t guaranteed. Two events close together can arrive the other way round, and a retry can arrive after a later event. Use occurredAt to order them.
  • At least once. A delivery can arrive more than once, for example when your answer was lost on the way. Drop the duplicates by webhook-id.
  • History. Deliveries are kept for 30 days, then deleted with what they sent and received.
  • HTTPS to public addresses only, checked when the webhook is saved and again at every delivery.
  • No events are sent while a webhook is switched off, or at all once your organization’s subscription is canceled. An event that happens while a webhook is off isn’t sent to it later.

A plan’s limit on outgoing webhooks only stops new ones being added: those above it after a move to a smaller plan keep receiving events. Deliveries don’t count against it.