Document parser
Last updated
{
"url": "string", // Required: URL of the document
"type": "string", // Optional: Document type (default: "pdf")
"output": "string", // Optional: Output format (default: "plain")
"webhook": "string" // Optional: Webhook URL for completion notification
}{
"requestId": "string",
"status": "COMPLETED",
"data": "string" // Extracted text content
}{
"requestId": "string",
"status": "PROCESSING",
"message": "Processing in progress. Please check status endpoint."
}{
"error": "string",
"details": ["string"] // Array of error details
}curl --location 'https://api.yetanotherapi.com/documents/parse' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://example.com/document.pdf",
"type": "pdf",
"output": "markdown",
"webhook": "https://your-webhook-url.com/callback"
}'