POST
/
api
/
ai
/
v2
/
pdf-extract
curl --request POST \
  --url https://api.worqhat.com/api/ai/v2/pdf-extract \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file=/path/to/pdf.pdf
{
  "data": "This is a sample text to be converted.",
  "processing_time": 888,
  "processing_id": "4b139bfe-1f71-4345-b539-fa6c1700f166",
  "processing_count": 12
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
file
file
required

The PDF file to be extracted.

Response

200
application/json
Successful response
processing_time
integer
required

The amount of time in miliseconds it took to complete the request.

processing_id
string
required

A unique identifier for the server process. This helps us track support requests and complaints.

processing_count
integer
required

Usage statistics for the request. This is what is used for the billing.

data
string
required

The extracted text content.