---
title: "Convert Document"
method: POST
path: "/api/v1/convert"
---

# Convert Document

`POST /api/v1/convert`

Convert a PDF, image, or document to markdown, HTML, JSON, or chunks. Use save_checkpoint=true to save parsed state for later /extract or /segment calls.

## Cookies

- `wos-session` string
- `datalab_active_team` string

## Response `200`

Successful Response

- InitialResponse
  - `success` boolean — Whether the request was successful.
  - `error` string, nullable — If the request was not successful, this will contain an error message.
  - `request_id` string, required — The ID of the request. This ID can be used to check the status of the request.
  - `request_check_url` string, required — The URL to check the status of the request and get results.
  - `versions` union — A dictionary of the versions of the libraries used in the request.
    - object
    - string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/datalab/apis/datalab-api.md) · [All operations](https://skmtc.net/datalab/apis/datalab-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datalab/datalab-api/versions/aa9f8ee18efb/schema)
