How it works

From raw file to live API in minutes.

No code, no migrations, no DBA. DocQuery reads your documents, lets you review the structure, links them with foreign keys, and exposes them as production APIs.

1

Onboard

Create an account, get a personal workspace, and an instant API key. Free tier includes 5 documents and 10,000 rows — no card required.
2

Upload or connect

Drag in CSVs, JSON, Markdown, plain text, PDFs, DOCX, or PPTX. DocQuery reads binary files with pdftotext and pandoc. A scanned PDF with no text layer is rasterized and sent to the model as page images. You can also connect Airtable, Google (Sheets, Docs, and Slides), or Microsoft 365 (Excel, Word, and PowerPoint from OneDrive and SharePoint) with OAuth. Excel and Airtable support live sync. Google files import once, and you can re-extract the stored copy.
3

Extract & review

Our AI detects tables, columns, types, and primary keys. The document page shows the extracted tables, and you can open the original text underneath. On the table page, rename columns, change types, and mark primary keys.
4

Build relations

Open the relations page. Pick two columns from any two tables and choose 1:1, 1:many, many:1, or many:many. DocQuery counts overlapping values and recommends which direction the link should run.
5

Use the API

REST, GraphQL, and MCP endpoints are live the moment you save. Try them from the in-app console, copy the OpenAPI spec into Postman, or paste the MCP config into Claude Desktop or Cursor.
6

Iterate

Re-extract a document to rebuild its tables from the stored file. That replaces the previous tables, so link relations again afterward. Excel and Airtable live sync merge remote edits. When both sides change the same cell, the table page lets you keep the local value or the remote value.

A worked example

Imagine you have two files: a customer list in customers.csv and an invoice export in invoices.csv. Here's what happens once you upload them.

  1. Tables created. DocQuery parses both CSVs, generates clean column slugs, and marks the first column as the primary key. Two tables exist in your workspace.
  2. Relation linked. On the canvas, you click invoices.customer_id → customers.id and choose many → one. Done.
  3. REST request. Hit GET /api/v1/tables/invoices/rows?status=paid&include=customer_id with your bearer token. The response includes each paid invoice and the matching customer row inline.
  4. GraphQL query. The same query in GraphQL: rows(table:"invoices") { related(column:"customer_id") {…} }.
  5. AI chat. Ask "how many paid invoices does Acme have?" — DocQuery's chat agent calls the same MCP tools, joins on the relation, and answers in one sentence.

Try it with your data.

Free workspace, instant API. The first table is the longest part — and even that's about thirty seconds.