New feature Merge multiple templates into a single PDF read the documentation 

Documentation

Templates

Get a list of available templates

To get all templates, send a GET request to /api/templates. You will receive a JSON response containing all templates.

GET /api/templates

Headers

Authorization*

The Authorization header is used to authenticate the request. You need to provide a valid API key in the format Bearer {token}. You can generate an API token from the API Tokens page. Read more about API Authentication for detailed instructions.

Content-Type Default: application/json

The Content-Type header is used to specify the format of the request payload. This must be application/json or null,

Example Request

Here is an example of a GET request to the templates endpoint. In this example, we are using the curl command-line tool to send a GET request to the API.

curl -X POST "https://pdf-api.io/api/templates" \
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer {token}"