Endpoints
List built-in endpoints of DocKing
Restful APIs are ready to use to interact with DocKing 😎
[GET] api/v1/document-templates
Get a list of templates
Request params:
limit: default
20
page: default
1
Response:
[GET] api/v1/document-templates/{uuid}
Get a single template detail.
Response:
[POST] api/v1/document-templates
Create a new template.
Body:
Response: 201 on OK, 422 on Validation Error
[PUT] api/v1/document-templates/{uuid}
Update an existing template.
Body:
Response: 200 on OK, 422 on Validation Error
[DELETE] api/v1/document-templates/{uuid}
Delete a single template.
Response: 200 on OK
[POST] api/v1/document-templates/{uuid}/pdfs
Render a template with the given data and returns the PDF file URL.
Body
variables
(JSON object or array)metadata
(JSON object)
Response
OK: 200 with URL.
ERROR:
400 with message or outcome.
422 for validation errors.
[POST] api/v1/document-templates/{uuid}/pdfs-async
Asynchronously render a new template.
Body
variables
(JSON object or array)metadata
(JSON object)webhook_url
(REQUIRED), for render result notification
Response
OK: 200 with the outcome.
ERROR:
422: for validation errors.
[GET] api/v1/document-files
Get a list of document files
Request params:
limit: default
20
page: default
1
Response:
[POST] api/v1/document-files/{uuid}
Returns the single rendered pdf file
Last updated