Upload PDF
Use this endpoint to upload a PDF document. This will return a JSON result containing the uploaded document Id.
We can then use the document Id result from this to call the
/api/analyze
endpoint to extract the data.
Endpoint
POST https://app.pdfdodo.com/api/uploadfile
Uploads a PDF document as a file
Header
X-API-Key
string
Your API key. You can find this from the "Settings" page
Body
file
FormData
The PDF file as FormData
Response
The response will be a JSON result with HTTP response code 200
.
For example:
{
"documentId": "123e4567-e89b-12d3-a456-426614174000",
"documentName": "your-test-file.pdf"
}
Example usage using curl
curl -X POST \
-H "Content-Type: multipart/form-data" \
-H "x-api-key: YOUR_API_KEY" \
-F "file=@/path/to/your/file.pdf" \
https://https://app.pdfdodo.com/api/uploadfile