POST
/
v1
/
tools
/
pdf-parser
/
{file_id}
curl --location --request POST https://api.writer.com/v1/tools/pdf-parser/{file_id} \
 --header "Authorization: Bearer <token>" \
 --header "Content-Type: application/json" \
--data-raw '{"format":"text"}'
{
  "content": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

file_id
string
required

The unique identifier of the file.

Body

application/json
format
enum<string>
required

The format into which the PDF content should be converted.

Available options:
text,
markdown

Response

200 - application/json
content
string
required

The extracted content from the PDF file, converted to the specified format.