API Reference
Complete reference for the PDF.beauty REST API endpoints.
Base URL
https://api.pdf.beautyAuthentication
All API requests require a valid API key. Include it in the Authorization header:
Header
Authorization: Bearer pk_xxxxxxxxxxxxx
Endpoints
POST
/v1/convertSubmit a PDF file for conversion to PPTX
Parameters
fileFilerequiredThe PDF file to convertoptionsobjectConversion options (quality, etc.)Response
JSON
{
"task_id": "task_abc123xyz",
"status": "pending",
"message": "Task created successfully"
}GET
/v1/tasks/:task_idGet the status of a conversion task
Parameters
task_idstringrequiredThe task ID returned from /v1/convertResponse
JSON
{
"task_id": "task_abc123xyz",
"status": "completed",
"progress": 100,
"download_url": "/v1/download/task_abc123xyz"
}GET
/v1/download/:task_idDownload the converted PPTX file
Parameters
task_idstringrequiredThe task ID of a completed conversionError Codes
| Code | Description |
|---|---|
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing API key |
402 | Payment Required - Insufficient credits |
404 | Not Found - Task or resource not found |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error |