Available Examples
cURL
Command line
JavaScript
Node.js
TypeScript
Type-safe
Python
requests
Flutter
Dart
PHP
cURL/Guzzle
.NET
C#
Go
net/http
Java
HttpClient
Ruby
Net::HTTP
Rust
reqwest
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Learn how to integrate Fileloom PDF generation into your application with examples in 11 programming languages.
| Setting | Value |
|---|---|
| Base URL | https://api.fileloom.io/v1 |
| Endpoint | POST /pdf/generate |
| Content-Type | application/json |
| Authentication | X-API-Key: fl_your_api_key |
{
"htmlContent": "<html>...</html>",
"templateData": { },
"filename": "document.pdf",
"options": {
"format": "A4",
"margin": { "top": 10, "right": 10, "bottom": 10, "left": 10 }
}
}
{
"templateId": "tpl_your_template_id",
"templateData": { },
"filename": "document.pdf"
}
{
"success": true,
"requestId": "req_abc123",
"data": {
"fileId": "file_xyz789",
"url": "https://storage.googleapis.com/.../document.pdf",
"signedUrl": "https://storage.googleapis.com/...?token=...",
"filename": "document.pdf",
"size": 45678,
"processingTimeMs": 1234
},
"usage": {
"remaining": 9500,
"quotaUsed": 500,
"quotaLimit": 10000
}
}
| Error Code | Description |
|---|---|
| 400 | Invalid request |
| 401 | Invalid API key |
| 404 | Template not found |
| 408 | Request timeout |
| 413 | File too large |
| 429 | Rate limit or no credits |
| 500 | Server error |
