API Reference
Complete reference for all GlotFiles API endpoints
Endpoints
Authentication
API Keys
Polyglot
Usage & Info
POST
/generateGenerate Polyglot
Generate a polyglot file from multiple inputs.
Example Request
curl
curl -X POST "https://api.glotfiles.dev/api/v1/generate" \
-H "X-API-Key: pk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-F "type=pdf-html" \
-F "file1=@document.pdf" \
-F "file2=@page.html"Request Body
JSON
{
"type": "pdf-html",
"file1": "@document.pdf",
"file2": "@page.html"
}Response
JSON200 OK
{
"success": true,
"file_id": "9b6e9f7d2c8a4a92",
"download_url": "https://api.glotfiles.dev/api/v1/download/9b6e9f7d2c8a4a92",
"expires_at": "2024-01-16T10:30:00Z",
"file_size": 1234567,
"polyglot_type": "pdf-html"
}