Skip to Content

API Reference

Document conversion, rendering and extraction API

Papyrus is a self-hosted HTTP API that converts documents and web pages into Markdown, chunks and images for LLM and agent pipelines. Send a PDF, an Office file, an email or a URL.

Every operation is a POST under /v1 that takes a source to process and its options, as JSON or as a multipart upload. All of them except Inspect also take an optional destination in your storage, and describe the source and the result in one shared envelope. Errors are application/problem+json with a stable code; the Request format and Error codes pages under Concepts cover both.

Authentication

Send Authorization: Bearer <key> on every /v1 request, where the key is one of the comma separated values of PAPYRUS_API_KEY. A missing or wrong key returns 401 unauthorized. /, /health and /ready are public. The collection's token variable defaults to dev, the key the quickstart starts the server with.

Endpoints

Use your tools

Take this API into the tools you already use. Both files match the version you are reading.

OPENAPI

OpenAPI spec

Generate a client, import the API into Postman or Insomnia, or validate requests against the contract.

BRUNO

Bruno collection

Every endpoint with ready request examples. Open the folder in Bruno, set your server and API key and send.

On this page