# Create PDF async Source: https://docs.doczilla.app/api-reference/endpoint/async-pdf POST /v1/pdf/async Queue the creation of a PDF and call the webhook with the result. # Create screenshot async Source: https://docs.doczilla.app/api-reference/endpoint/async-screenshot POST /v1/screenshot/async Queue the creation of a screenshot and call the webhook with the result. # From Template async Source: https://docs.doczilla.app/api-reference/endpoint/async-template POST /v1/template/{id}/async Queue the creation of the template and call the webhook with the result. All provided options are optional and will be merged with those defined in the template. # Create new Template Source: https://docs.doczilla.app/api-reference/endpoint/create-template POST /v1/templates Create one template. # Delete Template Source: https://docs.doczilla.app/api-reference/endpoint/delete-template DELETE /v1/templates/{id} Delete one template. # Get Template Source: https://docs.doczilla.app/api-reference/endpoint/get-template GET /v1/templates/{id} Get one template. # Get all Templates Source: https://docs.doczilla.app/api-reference/endpoint/list-templates GET /v1/templates Get all templates. # Create PDF Source: https://docs.doczilla.app/api-reference/endpoint/pdf POST /v1/pdf Create a PDF and directly return the raw result. # Create screenshot Source: https://docs.doczilla.app/api-reference/endpoint/screenshot POST /v1/screenshot Create a screenshot and directly return the raw result. # Create PDF sync Source: https://docs.doczilla.app/api-reference/endpoint/sync-pdf POST /v1/pdf/sync Create a PDF and directly return a document URL instead of the raw document. Optionally writes the document directly into your bucket, bypassing the need for our temporary storage. # Create screenshot sync Source: https://docs.doczilla.app/api-reference/endpoint/sync-screenshot POST /v1/screenshot/sync Create a screenshot and directly return a document URL instead of the raw document. Optionally writes the document directly into your bucket, bypassing the need for our temporary storage. # From Template sync Source: https://docs.doczilla.app/api-reference/endpoint/sync-template POST /v1/template/{id}/sync Create the template and directly return a document URL instead of the raw document. Optionally writes the document directly into your bucket, bypassing the need for our temporary storage. All provided options are optional and will be merged with those defined in the template. # From Template Source: https://docs.doczilla.app/api-reference/endpoint/template POST /v1/template/{id} Create the template and directly return the raw result. All provided options are optional and will be merged with those defined in the template. # Update Template Source: https://docs.doczilla.app/api-reference/endpoint/update-template PUT /v1/templates/{id} Update one template. # Introduction Source: https://docs.doczilla.app/api-reference/introduction Introduction to our API. Doczilla offers three endpoint types: `direct`, `sync` and `async`. * `direct`: your document is generated and returned directly in the response to your request, providing simplicity and efficiency. For requests with responses exceeding 32 MiB, refer to the [Content type](#content-type) section. * `sync`: your document is created and directly returns a URL instead of the raw document. Optionally, write the document directly into your bucket by using the [storage option][storage-options], bypassing the need for our temporary storage. * `async`: you provide a [webhook][webhook-options] where the [result](/api-reference/webhook-event) is sent to after the document is created. ## Endpoints | Endpoint | Type | Body | | :--------------------------------------------------------------------------------------------- | :------: | :--------------------------------------------------------------------------------------------------------------------------------- | | | `direct` | [page][page-options], [pdf][pdf-options] | | | `sync` | [page][page-options], [pdf][pdf-options], [storage][storage-options] | | | `async` | [page][page-options], [pdf][pdf-options], [storage][storage-options], [webhook][webhook-options] | | | | | | | `direct` | [page][page-options], [screenshot][screenshot-options] | | | `sync` | [page][page-options], [screenshot][screenshot-options], [storage][storage-options] | | | `async` | [page][page-options], [screenshot][screenshot-options], [storage][storage-options], [webhook][webhook-options] | | | | | | | `direct` | [page][page-options], [pdf][pdf-options], [screenshot][screenshot-options], [storage][storage-options], [webhook][webhook-options] | | | `sync` | [page][page-options], [pdf][pdf-options], [screenshot][screenshot-options], [storage][storage-options], [webhook][webhook-options] | | | `async` | [page][page-options], [pdf][pdf-options], [screenshot][screenshot-options], [storage][storage-options], [webhook][webhook-options] | ## Content type By default, when doing a `direct` request Doczilla will return with the `Content-Type` header associated with the endpoint, this will be: * `/v1/pdf` -> `application/pdf` * `/v1/screenshot` with `screenshot.type` set to `png` -> `image/png` (default) * `/v1/screenshot` with `screenshot.type` set to `jpeg` -> `image/jpeg` * `/v1/screenshot` with `screenshot.type` set to `webp` -> `image/webp` If the size of the final document or screenshot exceeds 32 MiB, the `Transfer-Encoding` header will be set to `chunked`, and the `Content-Type` header will be changed to `application/octet-stream`. [page-options]: /api-reference/page-options [pdf-options]: /api-reference/pdf-options [screenshot-options]: /api-reference/screenshot-options [storage-options]: /api-reference/storage-options [webhook-options]: /api-reference/webhook-options # Page options Source: https://docs.doczilla.app/api-reference/page-options All the available page options for the PDF/screenshot API endpoints. Either `page.url`, `page.html` or `page.htmlTemplate` needs to be set, they cannot be used at the same time! # PDF options Source: https://docs.doczilla.app/api-reference/pdf-options All available options for the PDF API endpoints. All options are optional # Screenshot options Source: https://docs.doczilla.app/api-reference/screenshot-options All available options for the screenshot API endpoints. All options are optional # Storage options Source: https://docs.doczilla.app/api-reference/storage-options Storage options that are available for the `sync`/`async` endpoints. For the `/sync` and `/async` endpoints the `storage` property becomes available. This feature makes it possible to store the documents directly into your personal bucket, bypassing the need for our temporary storage. See also [Use your own bucket](/examples/use-your-own-bucket) for examples on how to generate a signed url. #### Available on endpoints: | Endpoint | Type | | :--------------------------------------------------------------------------------------------- | :-----: | | | `sync` | | | `async` | | | `sync` | | | `async` | | | `sync` | | | `async` | # Render PDF or Screenshots from a Template Source: https://docs.doczilla.app/api-reference/templates Define ones, render repeatedly with templates.