---
title: "Parse PDF"
method: POST
path: "/v1/tools/pdf-parser/{file_id}"
tags: ["Tools API"]
---

# Parse PDF

`POST /v1/tools/pdf-parser/{file_id}`

## Request

- Base URL: `https://api.writer.com`
- URL: `https://api.writer.com/v1/tools/pdf-parser/{file_id}`
- Auth: HTTP bearer

Parse PDF to other formats.

## Path parameters

- `file_id` string, required

## Request body

- ParsePdfRequest
  - `format` 'text' | 'markdown', required: The format into which the PDF content should be converted.

## Response `200`

- ParsePdfResponse
  - `content` string, required: The extracted content from the PDF file, converted to the specified format.

## Changes

- **2024-10-30** `d13c05cc3a96`: 1 info
  - the endpoint scheme security `bearerAuth` was added to the API

[Operation history](https://skmtc.dev/writer/apis/writer-api/changes/v1/tools/pdf-parser/:file_id/post.md)

---

[API](https://skmtc.dev/writer/apis/writer-api.md) - [All operations](https://skmtc.dev/writer/apis/writer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/writer/apis/writer-api/revisions/59865afc5779?raw)
