Docs API Reference
On this page
REST API
API Reference
Integrate PDF generation into your applications with our simple REST API. No authentication required.
No Authentication Required
The API is completely open. No API keys, no tokens, no signup needed. Just start making requests.
Base URL
https://api.yet.report Generate PDF
Create a new PDF from text or markdown content.
POST
/generate 1 Request Body
JSON
{
"content": "# Your Content Here\n\nMarkdown or plain text...",
"style": "corporate" // optional: corporate, academic, legal, etc.
} 2 Response
Response
200 OK {
"success": true,
"pdfUrl": "https://files.yet.report/..."
} | Field | Type | Description |
|---|---|---|
success | boolean | Whether the generation succeeded |
pdfUrl | string | URL to download the PDF (when successful) |
error | string | Error message (when failed) |
Error Handling
The API uses standard HTTP status codes to indicate success or failure.
200 Success
400 Bad request - Invalid input
404 Job not found
429 Rate limit exceeded
500 Server error
Rate Limits
To ensure fair usage, the API has basic rate limiting:
10
requests per minute
100
requests per hour
Need higher limits? Contact us for enterprise options.
Examples
$
cURL
Terminal
curl -X POST https://api.yet.report/generate \
-H "Content-Type: application/json" \
-d '{"content": "# Hello World\n\nMy first PDF!"}' JS
JavaScript (fetch)
JavaScript
const response = await fetch('https://api.yet.report/generate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
content: '# Hello World\n\nMy first PDF!',
style: 'corporate'
})
});
const { success, pdfUrl } = await response.json();
console.log('PDF URL:', pdfUrl); PY
Python
Python
import requests
response = requests.post(
'https://api.yet.report/generate',
json={
'content': '# Hello World\n\nMy first PDF!',
'style': 'corporate'
}
)
data = response.json()
print(f"PDF URL: {data['pdfUrl']}")