5-Minute Quickstart
Generate your first sub-50ms server-side PDF via REST API using a pre-built template and API key.
1. Create an Organization & API Key
Every workspace in Open Layout includes an isolated organization with Row-Level Security. Navigate to Organization Settings → API Keys and click Generate Key. Keys begin with ol_live_ and are hashed at rest using SHA-256.
- Sandbox Trial accounts include 250 real REST API PDF renders/month and 3 templates.
- Starter ($15/mo) unlocks 5,000 PDF renders/month and optional $2.00 / 1,000 overage protection.
2. Clone a Starter Template or Design Visually
Open Organization → Templates and select one of the 16 pre-built starter templates (e.g. Enterprise B2B Tax Invoice or Standard Bill of Lading eBOL). Copy the UUID from the designer URL (/org/<org_id>/templates/<template_id>).
3. Call POST /api/v1/templates/:id/render
Send a POST request with your Bearer token and dynamic JSON data. Unlike Chrome-based competitors taking 800–2,500ms, Open Layout compiles your Typst document in memory in ~15–50ms and streams the binary file back without storing customer payloads.
curl -X POST "https://openlayout.dev/api/v1/templates/YOUR_TEMPLATE_ID/render" \
-H "Authorization: Bearer ol_live_your_secret_key" \
-H "Content-Type: application/json" \
-d '{
"format": "pdf",
"data": {
"company": { "name": "Apex Logistics LLC" },
"invoice": { "number": "INV-2026-104", "date": "2026-11-17" },
"items": [
{ "description": "Priority Air Freight (ORD -> LAX)", "qty": 2, "unitPrice": 420, "total": 840 }
]
}
}' \
--output invoice.pdf