Skip to content

API Endpoints

Doxtly exposes a REST API built with API Platform. All endpoints return JSON responses and follow standard HTTP conventions.

https://api.{your-subdomain}.doxtly.com/api
MethodEndpointDescription
GET/document-templatesList all document templates
POST/document-templatesCreate a new template
GET/document-templates/{id}Get template details
PUT/document-templates/{id}Update a template
DELETE/document-templates/{id}Delete a template
MethodEndpointDescription
POST/document-templates/{id}/generateGenerate a PDF from a template
GET/generated-documentsList generated documents
GET/generated-documents/{id}Get document details
GET/generated-documents/{id}/downloadDownload the PDF file
DELETE/generated-documents/{id}Delete a generated document
Terminal window
curl -X POST https://api.yourcompany.doxtly.com/api/document-templates/{id}/generate \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"variables": {
"client_name": "Acme Corp",
"amount": 1500
}
}'
MethodEndpointDescription
GET/form-definitionsList all forms
POST/form-definitionsCreate a new form
GET/form-definitions/{id}Get form details
PUT/form-definitions/{id}Update a form
DELETE/form-definitions/{id}Delete a form
GET/form-definitions/{id}/submissionsList form submissions
POST/public/forms/{slug}Submit a public form
MethodEndpointDescription
GET/workflowsList all workflows
POST/workflowsCreate a new workflow
GET/workflows/{id}Get workflow details
PUT/workflows/{id}Update a workflow
DELETE/workflows/{id}Delete a workflow
POST/workflows/{id}/executeManually trigger a workflow
GET/workflow-executionsList workflow executions
GET/workflow-executions/{id}Get execution details
POST/workflow-executions/{id}/rerunRe-run a failed execution
MethodEndpointDescription
GET/email-templatesList all email templates
POST/email-templatesCreate a new template
GET/email-templates/{id}Get template details
PUT/email-templates/{id}Update a template
DELETE/email-templates/{id}Delete a template
POST/email-templates/{id}/sendSend an email using a template
MethodEndpointDescription
GET/subscriptionGet current subscription details
GET/subscription/usageGet current usage statistics

List endpoints support pagination via query parameters:

GET /api/documents?page=1&itemsPerPage=25

Response includes pagination metadata:

{
"hydra:member": [...],
"hydra:totalItems": 42,
"hydra:view": {
"hydra:first": "/api/documents?page=1",
"hydra:last": "/api/documents?page=2",
"hydra:next": "/api/documents?page=2"
}
}

Errors follow the standard API Platform format:

{
"hydra:title": "An error occurred",
"hydra:description": "Document template not found.",
"status": 404
}

Common HTTP status codes:

CodeMeaning
200Success
201Created
204No content (successful deletion)
400Bad request (validation error)
401Unauthorized
403Forbidden
404Not found
422Unprocessable entity
429Rate limit exceeded