POST https://app.dumplingai.com/api/v1/doc-to-text
application/json
<API_KEY>
{ "inputMethod": "string", // Required. Either "url" or "base64". "file": "string", // Required. URL or base64-encoded file content. "pages": "string" // Optional. Specify pages to process. }
{ "text": "string" // Extracted text content }
{ "error": "Error message describing the issue" }
{ "error": "Error processing document" }
curl -X POST https://app.dumplingai.com/api/v1/doc-to-text \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "inputMethod": "url", "file": "https://example.com/sample.pdf" }'
{ "text": "This is the extracted text content from the document..." }
X-RateLimit-Limit
X-RateLimit-Remaining