Skip to main content
POST
/
documents
/
parse
Parse documents
curl --request POST \
  --url https://api.pawa-ai.com/v1/documents/parse \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form model=pawa-v1-parser-20250809 \
  --form 'prompt=<string>' \
  --form documents=@example-file
{
  "success": true,
  "message": "Documents parsed successfully",
  "data": [
    {
      "fileName": "file.pdf",
      "fileType": "application/pdf",
      "fileSize": 123456,
      "content": "This is the content of the document."
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
documents
file
required

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

model
enum<string>
default:pawa-v1-parser-20250809
required
Available options:
pawa-v1-parser-20250809
prompt
string

Parsing instructions or context for better results.

Response

Documents parsed successfully

success
boolean
required
Example:

true

message
string
required
Example:

"Documents parsed successfully"

data
object[]
required
I