The PdfGate API provides a simple HTTP endpoint to generate high quality PDF files based on an HTML document or a URL resource. In this page you will find everything you need in order to use the API.
To use the API, you need to always authenticate the HTTP requests you initiate. PdfGate is using API keys for the authentication.
Firstly, you need to login to your account and create an API key. Make sure it is active and then you can use it in your source code.
In your HTTP requests you need to provide the Authorization header with the value Bearer YOUR_API_KEY.
There are two types of API keys. Production and Sandbox keys, and they should have the following format.
In order to create a PDF document, you need to send a URL or HTML in the request body. The endpoint you should use is the following.
In the request headers you should add your API key and the content type as follows.
The request body can accept the following parameters.
The PdfGate API is using different rate limits for each account type in Production environment. For Sandbox enviroment the rate limit is the same for all account types.
Production rate limits:
Sandbox rate limits: