Quick Start with Postman
Test the PDFBolt REST API in Postman without writing code. Open the quick start video on YouTube, use our Postman collection, or follow the step-by-step guide below.
Quick API Testing
Fork our Postman collection with one click to test all PDFBolt API endpoints. Set your API key as an environment variable, then start sending requests.
Prefer a video walkthrough? Watch the Postman quick start video on YouTube.
Quick Start from Scratch
1. Get Your API Key
Find your API key on the API Keys page in your Dashboard. If you don't have an account, sign up – the free plan includes 100 document conversions per month.
2. Set Up Postman for PDFBolt
1. Create a New Request
- Open Postman and create a new Request.
- Set the HTTP Method to
POST. - Enter one of the following PDFBolt API endpoint URLs based on your use case:
https://api.pdfbolt.com/v1/direct
https://api.pdfbolt.com/v1/sync
https://api.pdfbolt.com/v1/async
2. Set Up Authorization
- Go to the Authorization tab.
- Choose API Key as the Auth Type.
- Enter the following values:
- Key:
API-KEY - Value: Your unique API key.
- Select Header to include the key in the request headers.
- Key:
Setting Up Your API Key as an Environment Variable in Postman
Instead of manually entering your API key every time, store it as an environment variable in Postman for easier reuse in future requests.
How to set it up in Postman:
- Open Postman and go to Environments.
- Click ➕ to create a new environment.
- Create a new variable called
API_KEYand set its type to Secret. - Paste your API key into Initial value and Current value, then save the environment.
- In your request headers, set the key name to
API-KEYand the value to{{API_KEY}}.
Postman will substitute {{API_KEY}} with your actual API key when sending requests.
3. Define the Request Body
- Navigate to the Body tab.
- Select raw and set the content type to
JSON. - Choose your source:
- URL
- HTML
- Template
Convert a webpage to PDF:
{
"url": "https://example.com",
"format": "A4",
"printBackground": true
}
Convert HTML to PDF (HTML must be base64 encoded):
{
"html": "PGh0bWw+PGJvZHk+PGgxPkhlbGxvITwvaDE+PHA+VGhpcyBpcyBhIHNhbXBsZSBQREYuPC9wPjwvYm9keT48L2h0bWw+",
"format": "A4",
"printBackground": true,
"margin": {
"top": "30px",
"left": "30px"
}
}
The above base64 string represents:
<html><body><h1>Hello!</h1><p>This is a sample PDF.</p></body></html>
Convert a template with data to PDF:
{
"templateId": "your-template-id",
"templateData": {
"client_name": "John Doe",
"invoice_number": "INV-001",
"total_amount": "$299.99",
"line_items": [
{"description": "Web Development", "unit_price": "$200.00"},
{"description": "Design Services", "unit_price": "$99.99"}
]
}
}
Create your first template in the app, then use its ID with JSON data in your API calls. Learn more about Templates
4. Send the Request
- Click Send to execute the request.
- Upon success, the response depends on the endpoint you chose:
- Direct – returns the binary PDF (use Save Response → Save to file in Postman to save it).
- Sync – returns JSON with
documentUrl(the PDF download link, valid for 24 hours). - Async – returns JSON with
requestId. The PDF is delivered to yourwebhookURL when ready.
If you want to use the /async endpoint, include the webhook parameter in your request body.