The Fileloom API lets you generate PDFs programmatically from HTML templates or raw HTML content.Documentation Index
Fetch the complete documentation index at: https://docs.fileloom.io/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
All API requests use the following base URL:Authentication
Authenticate requests using your API key in one of two ways: X-API-Key Header (Recommended):Available Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /pdf/generate | Generate a PDF from HTML or template |
Request Format
All requests must:- Use
POSTmethod - Include
Content-Type: application/jsonheader - Send a JSON body
Response Format
All responses are JSON with this structure: Success Response:Rate Limits
Requests are rate-limited based on your plan:| Plan | Requests per Minute |
|---|---|
| Free | 60 |
| Starter | 120 |
| Growth | 200 |
| Scale | 400 |
| Scale Business | 1,000 |
| Scale Enterprise | Unlimited |
Rate Limit Headers
Every response includes rate limit information:| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests per minute |
X-RateLimit-Remaining | Requests remaining in current window |
X-RateLimit-Reset | Unix timestamp when the limit resets |
Rate Limit Exceeded
When you exceed the rate limit, you’ll receive a429 Too Many Requests response:
Timeouts
PDF generation timeouts vary by plan:| Plan | Timeout |
|---|---|
| Free | 15 seconds |
| Starter | 30 seconds |
| Growth | 45 seconds |
| Scale | 120 seconds |
| Scale Business | 240 seconds |
| Scale Enterprise | 300 seconds |
Content Limits
| Limit | Free | Starter | Growth | Scale | Scale Business | Scale Enterprise |
|---|---|---|---|---|---|---|
| Max HTML Size | 2 MB | 5 MB | 10 MB | 50 MB | 100 MB | 250 MB |
| Max PDF Size | 10 MB | 25 MB | 50 MB | 50 MB | 100 MB | 250 MB |
CORS
The API supports CORS for browser-based requests. However, we strongly recommend making API calls from your server to protect your API key.Next Steps
Generate PDF
Complete endpoint documentation
Response Examples
Sample responses for all scenarios
Code Examples
Examples in 12 languages
Error Handling
Handle errors gracefully

