Personal links API
A personal link opens a form at /cf/{token}, an interactive document at /ci/{token} or a quiz or survey at /cq/{token} for one contact or company, with the fields whose default names their details filled in. Its address is never in an answer: only the person it was sent to holds it.
Sending or revoking one needs, besides the operation, the right to send the public link of what it opens: Manage forms for a form, Manage interactive documents for an interactive document, Manage quizzes for a quiz and Manage surveys for a survey. A user needs that permission; a key holds it with any operation that stands for it, such as send_form_link, send_interactive_document_link, send_quiz_link or send_survey_link.
Reading a contact’s links, and the entries of its history about them, needs the right to view what they open: a user is shown the links to the forms, documents, quizzes and surveys they may view, and a key is shown links to quizzes only with get_quiz_attempts and links to surveys only with get_survey_responses.
The link object
Section titled “The link object”| Field | Type | Meaning |
|---|---|---|
id |
UUID | The link’s identifier. |
target |
string | form, interactive_document or quiz, which stands for a quiz and a survey alike. |
targetId, targetTitle |
UUID, string | What it opens. |
quizMode |
string | For a link to a quiz or a survey: quiz or survey; null for a form or a document. |
contactId, contactName |
UUID, string | The contact it went to; null for a company’s own address. |
channel |
string | email, sms or whatsapp. |
recipient |
string | The address it went to. |
singleUse |
boolean | Whether it takes one submission only. Always false for a quiz, which counts its attempts itself. |
state |
string | sent, opened, submitted, expired or revoked. A quiz’s link is submitted once an attempt through it is finished. |
sentBy |
object | Who sent it: kind (user or access_key), name, and userId or accessKeyId, null once that user or key is gone. workflowId and workflowExecutionId are always null here. |
createdAt, expiresAt |
time | When it was sent and when it stops working. |
openedAt, submittedAt, revokedAt |
time | When it was first opened, last sent in and revoked; null until then. |
submissionCount |
integer | How many times it was sent in. |
Send a link to a contact
Section titled “Send a link to a contact”POST/v1/contacts/{id}/personal_links
Key permission: send_personal_link
| Field | Type | Required | Rules |
|---|---|---|---|
target |
string | Yes | form, interactive_document or quiz; quiz for a survey too. |
targetId |
UUID | Yes | An active form, interactive document, quiz or survey of your organization. |
channel |
string | No | email (the default), sms or whatsapp. The link goes to the contact’s own address of the channel: an SMS or WhatsApp needs a phone number with its country code and an active integration of the channel. |
templateId |
UUID | No | A template for the form’s, the document’s or the quiz’s link; the default message when left out. |
language |
object | No | {"mode": "organization"} or {"mode": "fixed", "code": "pl"}; the organization’s when left out. |
expiresInDays |
integer | No | 1 to 365, 30 when left out. |
singleUse |
boolean | No | true when left out. Not used for a quiz. |
Returns 201 Created with the link. 422 says the contact has no address of the channel or your organization can’t send by it; 400 that the message could not be sent, and why, and nothing is stored; 404 that the contact, the form or the document is not your organization’s. For a survey, 422 also says the contact declined surveys. A contact who still holds an open link to the same quiz at the same address is sent that link again.
curl -X POST 'https://api.doxtly.com/v1/contacts/01a1ce96-6be6-7605-b9ad-fb6bfd0af776/personal_links' \ -H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \ -H 'Content-Type: application/json' \ -d '{"target":"form","targetId":"01a1cd27-9e62-7d58-bf81-45e7b594ef85","expiresInDays":14}'{ "id": "01a1ce96-6ecc-7ee2-bca0-2139d5209570", "target": "form", "targetId": "01a1cd27-9e62-7d58-bf81-45e7b594ef85", "targetTitle": "Supplier onboarding", "contactId": "01a1ce96-6be6-7605-b9ad-fb6bfd0af776", "contactName": "Jonas Berg", "channel": "email", "recipient": "jonas.berg@nordvik-marine.example", "singleUse": true, "state": "sent", "sentBy": { "kind": "access_key", "name": "CRM sync", "userId": null, "workflowId": null, "workflowExecutionId": null, "accessKeyId": "01a1ce8f-1aa1-73fd-afff-6cf89ba101c8" }, "createdAt": "2026-11-12T08:08:47+01:00", "expiresAt": "2026-11-26T08:08:47+01:00", "openedAt": null, "submittedAt": null, "submissionCount": 0, "revokedAt": null}Send a link to a company
Section titled “Send a link to a company”POST/v1/companies/{id}/personal_links
Key permission: send_personal_link. The same fields, to the company’s own address, with the same answers: 201 Created with the link, or the errors above. To send to one of its contacts, send to the contact.
curl -X POST 'https://api.doxtly.com/v1/companies/01a1ccda-2ad5-70dd-aa62-48bede3a76f7/personal_links' \ -H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \ -H 'Content-Type: application/json' \ -d '{"target":"form","targetId":"01a1cd27-9e62-7d58-bf81-45e7b594ef85","expiresInDays":14,"singleUse":true}'{ "id": "01a1ce96-6fdf-7a2a-9a73-6f68d93497b6", "target": "form", "targetId": "01a1cd27-9e62-7d58-bf81-45e7b594ef85", "targetTitle": "Supplier onboarding", "contactId": null, "contactName": null, "channel": "email", "recipient": "post@nordvik-marine.example", "singleUse": true, "state": "sent", "sentBy": { "kind": "access_key", "name": "CRM sync", "userId": null, "workflowId": null, "workflowExecutionId": null, "accessKeyId": "01a1ce8f-1aa1-73fd-afff-6cf89ba101c8" }, "createdAt": "2026-11-12T08:08:47+01:00", "expiresAt": "2026-11-26T08:08:47+01:00", "openedAt": null, "submittedAt": null, "submissionCount": 0, "revokedAt": null}Send links to many contacts
Section titled “Send links to many contacts”POST/v1/contacts/personal_links
Key permission: send_personal_link. Sends each of up to 5,000 contacts a link of their own, each to their own address of the channel, in the background. Name the contacts in contactIds, or set allMatching to send to every contact that the query parameters of List contacts match, such as filter[type][eq] or search[company.name]. The other fields are those of a link to one contact.
| Field | Type | Required | Rules |
|---|---|---|---|
contactIds |
array of UUIDs | Without allMatching |
Up to 5,000 contacts of your organization; other ids are left out. |
allMatching |
boolean | No | true: every contact the query parameters match, up to 5,000. |
schedule |
object | No | For a quiz only: a deadline and reminders, as for the quiz’s invitations. |
sendAt |
string | No | For a quiz only: a later moment on a quarter of an hour (ISO 8601) to send the wave at, as for the quiz’s invitations; the contacts are those chosen now, and expiresInDays counts from the sending. Left out: now. |
Returns 202 Accepted with queued, how many contacts are to be sent their link, and distributionId: a quiz’s links go as one wave, which counts what was sent and what failed; null for a form or a document. A contact without an address of the channel, or who declined surveys, is passed over. 400 says what the links open is inactive; 403 that you may not send its link; 404 that it isn’t your organization’s; 422 that no contacts are named, more than 5,000 match, schedule or sendAt is given for something other than a quiz, or sendAt isn’t a later quarter of an hour.
curl -X POST 'https://api.doxtly.com/v1/contacts/personal_links?filter[type][eq]=01a1cd02-4b7e-7a18-9f3c-2e5d8a6b1c47' \ -H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET" \ -H 'Content-Type: application/json' \ -d '{"target":"quiz","targetId":"01a1d2c4-7b3e-7f10-9c55-3e8a41b07d29","allMatching":true,"expiresInDays":21,"schedule":{"reminderDays":[3,7]}}'{ "queued": 42, "distributionId": "01a1d6f9-8e21-7c3a-b5d4-0f6e2a9c1b73" }List a contact’s links
Section titled “List a contact’s links”GET/v1/contacts/{id}/personal_links
Key permission: get_personal_links. Returns 200 OK with items, the newest first. Not paged. Only the links to what the caller may view, as said at the top of this page.
curl 'https://api.doxtly.com/v1/contacts/01a1ce96-6be6-7605-b9ad-fb6bfd0af776/personal_links' \ -H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"{ "items": [ { "id": "01a1ce96-6ecc-7ee2-bca0-2139d5209570", "target": "form", "targetId": "01a1cd27-9e62-7d58-bf81-45e7b594ef85", "targetTitle": "Supplier onboarding", "contactId": "01a1ce96-6be6-7605-b9ad-fb6bfd0af776", "contactName": "Jonas Berg", "channel": "email", "recipient": "jonas.berg@nordvik-marine.example", "singleUse": true, "state": "sent", "sentBy": { "kind": "access_key", "name": "CRM sync", "userId": null, "workflowId": null, "workflowExecutionId": null, "accessKeyId": "01a1ce8f-1aa1-73fd-afff-6cf89ba101c8" }, "createdAt": "2026-11-12T08:08:47+01:00", "expiresAt": "2026-11-26T08:08:47+01:00", "openedAt": null, "submittedAt": null, "submissionCount": 0, "revokedAt": null } ]}List a company’s links
Section titled “List a company’s links”GET/v1/companies/{id}/personal_links
Key permission: get_personal_links. Returns 200 OK with items: the links sent to the company’s own address and to its contacts, the newest first. Not paged. Only the links to what the caller may view.
curl 'https://api.doxtly.com/v1/companies/01a1ccda-2ad5-70dd-aa62-48bede3a76f7/personal_links' \ -H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"{ "items": [ { "id": "01a1ce96-6fdf-7a2a-9a73-6f68d93497b6", "target": "form", "targetId": "01a1cd27-9e62-7d58-bf81-45e7b594ef85", "targetTitle": "Supplier onboarding", "contactId": null, "contactName": null, "channel": "email", "recipient": "post@nordvik-marine.example", "singleUse": true, "state": "sent", "sentBy": { "kind": "access_key", "name": "CRM sync", "userId": null, "workflowId": null, "workflowExecutionId": null, "accessKeyId": "01a1ce8f-1aa1-73fd-afff-6cf89ba101c8" }, "createdAt": "2026-11-12T08:08:47+01:00", "expiresAt": "2026-11-26T08:08:47+01:00", "openedAt": null, "submittedAt": null, "submissionCount": 0, "revokedAt": null }, { "id": "01a1ce96-6ecc-7ee2-bca0-2139d5209570", "target": "form", "targetId": "01a1cd27-9e62-7d58-bf81-45e7b594ef85", "targetTitle": "Supplier onboarding", "contactId": "01a1ce96-6be6-7605-b9ad-fb6bfd0af776", "contactName": "Jonas Berg", "channel": "email", "recipient": "jonas.berg@nordvik-marine.example", "singleUse": true, "state": "sent", "sentBy": { "kind": "access_key", "name": "CRM sync", "userId": null, "workflowId": null, "workflowExecutionId": null, "accessKeyId": "01a1ce8f-1aa1-73fd-afff-6cf89ba101c8" }, "createdAt": "2026-11-12T08:08:47+01:00", "expiresAt": "2026-11-26T08:08:47+01:00", "openedAt": null, "submittedAt": null, "submissionCount": 0, "revokedAt": null } ]}Shortened: each list shows its first items.
Revoke a link
Section titled “Revoke a link”POST/v1/personal_links/{id}/revoke
Key permission: revoke_personal_link. Takes no body and returns 200 OK with the link, revoked. It stops working at once. A link that no longer works - revoked, expired or used up - is returned as it stands: revoking it changes nothing, so one used up stays submitted.
curl -X POST 'https://api.doxtly.com/v1/personal_links/01a1ce96-6ecc-7ee2-bca0-2139d5209570/revoke' \ -H "X-Api-Key: $DOXTLY_API_KEY" -H "X-Api-Secret: $DOXTLY_API_SECRET"{ "id": "01a1ce96-6ecc-7ee2-bca0-2139d5209570", "target": "form", "targetId": "01a1cd27-9e62-7d58-bf81-45e7b594ef85", "targetTitle": "Supplier onboarding", "contactId": "01a1ce96-6be6-7605-b9ad-fb6bfd0af776", "contactName": "Jonas Berg", "channel": "email", "recipient": "jonas.berg@nordvik-marine.example", "singleUse": true, "state": "revoked", "sentBy": { "kind": "access_key", "name": "CRM sync", "userId": null, "workflowId": null, "workflowExecutionId": null, "accessKeyId": "01a1ce8f-1aa1-73fd-afff-6cf89ba101c8" }, "createdAt": "2026-11-12T08:08:47+01:00", "expiresAt": "2026-11-26T08:08:47+01:00", "openedAt": null, "submittedAt": null, "submissionCount": 0, "revokedAt": "2026-11-12T08:08:48+01:00"}Opening a link
Section titled “Opening a link”The public form endpoints, /v1/public/forms/{token}…, the interactive document ones, /v1/public/interactive-documents/{token}…, and the quiz ones, /v1/public/quizzes/{token}…, take a personal link’s token in place of the public one. The form’s answer then has values, what the link fills in by data path, an interactive document’s forms each have theirs, and a quiz’s has prefill, by the question’s data key (the public page). A link revoked, expired or used up is answered 410 Gone with code personal_link_revoked, personal_link_expired or personal_link_used, and branding, the name, logo and colour of the organization that sent it.