Skip to main content
The Fileloom API lets you generate PDFs programmatically from HTML templates or raw HTML content.

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):
Authorization Bearer Token:
Keep your API key secure. Never expose it in client-side code, public repositories, or browser requests.

Available Endpoints

Request Format

All requests must:
  • Use POST method
  • Include Content-Type: application/json header
  • Send a JSON body

Response Format

All responses are JSON with this structure: Success Response:
Error Response:

Rate Limits

Requests are rate-limited based on your plan:

Rate Limit Headers

Every response includes rate limit information:

Rate Limit Exceeded

When you exceed the rate limit, you’ll receive a 429 Too Many Requests response:

Timeouts

PDF generation timeouts vary by plan: Complex documents with large images or external resources may require higher-tier plans.

Content Limits

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