DocSlice documentation

DocSlice is a REST API that turns documents into data your software can use. You send a file (a PDF, a Word document, a photo of an invoice) and get back clean JSON, Markdown or HTML, or only the fields you asked for, extracted against a JSON Schema that you define.

Start here

What you can do

  • Convert PDF, DOCX, RTF, TXT, CSV and image files to json, markdown or html.
  • Extract exactly the fields you need (invoice number, total, dates, clauses) by passing a JSON Schema.
  • Read scanned documents and photos: OCR is applied automatically when a document has no usable text.
  • Send many files, or a ZIP archive, in one request.
  • Run long conversions in the background and be notified by webhook when they end.

How the documentation is organised

The menu on the left follows the path most people take: Overview explains the service, Getting started gets you to a first call, Guides cover each feature in depth, API reference describes every endpoint, Integrations shows how to plug DocSlice into your tools, and Reference collects error codes, a glossary and answers to common questions. Press / anywhere to search.