API Documentation

Complete reference for the Alterna PDF REST API. All endpoints, parameters, and code examples.

Base URL: https://app.alternapdf.comAuth: X-API-Key headerVersion: 2.5.1

Quick Start

terminal
curl -X POST "https://app.alternapdf.com/api/v1/convert/text-to-pdf" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "Hello from the Alterna PDF API!"}' \
  --output hello.pdf

All endpoints require an X-API-Key header. Get your key at dashboard.alternapdf.com.

Rate Limits

Every response includes rate limit headers:

HeaderDescription
X-RateLimit-LimitMax requests per minute
X-RateLimit-RemainingRequests remaining
X-RateLimit-ResetUnix timestamp for reset
X-Credits-RemainingCredits left on account

Error Codes

Errors return JSON with a detail field:

CodeMeaning
400Bad Request
401Unauthorized
402Insufficient Credits
413Payload Too Large
422Validation Error
429Rate Limit Exceeded
500Internal Server Error

Interactive API Explorer

Try endpoints directly in your browser with the Swagger UI or ReDoc interface.