curl --request POST \
--url https://api.pawa-ai.com/v1/documents/parse \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form documents='@example-file' \
--form model=pawa-v1-parser-20250809 \
--form 'prompt=<string>'{
"success": true,
"message": "Documents parsed successfully",
"data": [
{
"fileName": "file.pdf",
"fileType": "application/pdf",
"fileSize": 123456,
"content": "This is the content of the document."
}
]
}This endpoint used to parse the documents and extract text from them.
curl --request POST \
--url https://api.pawa-ai.com/v1/documents/parse \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form documents='@example-file' \
--form model=pawa-v1-parser-20250809 \
--form 'prompt=<string>'{
"success": true,
"message": "Documents parsed successfully",
"data": [
{
"fileName": "file.pdf",
"fileType": "application/pdf",
"fileSize": 123456,
"content": "This is the content of the document."
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
List of files. One or more documents (max 25) to be parsed. Supports PDF, DOCX, Excell, PPT, TXT, audio, and images. NOTE: HERE ON THE DOC WE SUPPORT ONE FILE AT A TIME BUT IN REAL REQUEST PLEASE SEND MULTIPLE FILES AS LIST OF FILES
pawa-v1-parser-20250809 Parsing instructions or context for better results.
Documents parsed successfully
true
"Documents parsed successfully"