llms.txt Content
# rendoc
> PDF generation API. Turn HTML templates into pixel-perfect PDFs with a single API call.
## What is rendoc?
rendoc is a cloud API for generating PDF documents from HTML templates and dynamic data. It handles fonts, paper sizes, layouts, and edge cases so you don't have to run headless browsers or manage PDF infrastructure. Also available as an MCP server for direct AI agent integration.
## Base URL
https://rendoc.dev/api/v1
## Authentication
All API requests require a Bearer token: `Authorization: Bearer <api-key>`
API keys use the format `rd_live_` followed by 64 hex characters.
Get your API key at https://rendoc.dev/dashboard/api-keys
### Scopes
- documents:write — Generate and manage documents (default)
- documents:read — View and download documents (default)
- templates:read — List and view templates (default)
- templates:write — Create, update, and delete templates
- usage:read — View usage statistics
## Quick Start
### cURL
```bash
curl -X POST https://rendoc.dev/api/v1/documents/generate \
-H "Authorization: Bearer rd_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"template": {
"markup": "<h1>Hello {{name}}</h1>",
"paper_size": "A4"
},
"data": { "name": "World" }
}'
```
### JavaScript/TypeScript
```bash
npm install @rendoc/sdk
```
```typescript
import { Rendoc } from "@rendoc/sdk";
const client = new Rendoc({ apiKey: "your-api-key" });
const doc = await client.documents.generate({
markup: "<h1>Hello {{name}}</h1>",
data: { name: "World" },
});
console.log(doc.downloadUrl);
```
### Python
```bash
pip install rendoc
```
```python
from rendoc import Rendoc
client = Rendoc(api_key="your-api-key")
doc = client.documents.generate(
markup="<h1>Hello {{name}}</h1>",
data={"name": "World"},
)
print(doc.download_url)
```
### MCP Server (for AI assistants)
```json
{
"mcpServers": {
"rendoc": {
"command": "npx",
"args": ["-y", "@rendoc/mcp-server"],
"en
OpenAPI Spec (preview)
openapi: 3.1.0
info:
title: rendoc API
version: 1.0.0
description: PDF generation API. Create documents from templates with data.
contact:
email: support@rendoc.dev
externalDocs:
url: https://rendoc.dev/docs
description: Full documentation
servers:
- url: https://rendoc.dev
description: Production
security:
- BearerAuth: []
tags:
- name: Documents
description: Generate and retrieve PDF documents
- name: Templates
description: Manage reusable document