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

Documentation

API Authentication

Introduction

Our API uses bearer token authentication to validate user requests. This guide will walk you through the process of creating an API token and how to include it in the request header for successful authentication.

1. Create an API Token

To begin using our API, you need to generate an API token. Follow the steps below to create a new token:

  1. Navigate to the "API Tokens" page.
  2. Click on the "Create a token" button.
  3. Provide a name for your token.
  4. Submit the form to generate the token.
Warning
Upon generating the token, copy it immediately and store it in a secure location. For security reasons, you will not be able to view this token again.

2. Include the Token in the Request Header

Once you have your API token, you must include it in the request header to access our API's endpoints. Here's how you can add the token to the header using curl:

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

Replace {endpoint} with the specific API endpoint you wish to access, and {token} with the token you obtained during the previous step.