This API provides endpoints to generate PDF documents from web URLs.
Generates a PDF document from a publicly accessible URL provided in the request body.
| Type | Location | Name | Description |
|---|---|---|---|
| API Key | Header | X-API-Key | Your provisioned API key must be included. |
application/jsonThe request body must be a JSON object containing the URL to be converted:
{
"url": "https://www.example.com"
}
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The fully qualified URL (including http:// or https://) of the webpage to convert into a PDF. |
200 OK)| Header | Value |
|---|---|
Content-Type | application/pdf |
Content-Disposition | attachment; filename="generated_document.pdf" |
Content-Length |
Body: The binary data of the generated PDF file.
| Status Code | Reason | Example Body |
|---|---|---|
401 Unauthorized |
API key missing, invalid, expired, or request limit exceeded. | |
422 Unprocessable Entity |
Request body missing url, or URL is invalid/empty. |
|
500 Internal Server Error |
PDF generation failed (e.g., Puppeteer error, timeout) or other server issue. | |