# Classify documents and check data room coverage

Label each uploaded document with a category, then compare what is filed with a venture or M&A checklist to see which items have a matching document and which to request.

Documentation index: https://webcite.co/llms.txt
Canonical page: https://webcite.co/api-docs/data-room-coverage
API origin: https://api.webcite.co
Authentication: x-api-key header. Keep keys on your server.

## How do I see which documents a data room is missing?

Classify each filed document with `POST /api/v1/classify`, then send the categories to `POST /api/v1/gaps` with a `taxonomy` of `vc` or `ma`. Each checklist item comes back with `present` true or false, which gives you the next information request list. A present item means a filed document matched it; read that document to confirm it is complete. The recorded response below shows both states.

## Endpoints and minimal requests

`POST https://api.webcite.co/api/v1/classify` takes an `asset_id` and returns a `category`, the document types it `covers` and a `confidence`. `POST /api/v1/gaps` takes a `category`, a `taxonomy` (`vc` or `ma`), an optional `stage` (`early` or `growth`) and the `docs` already filed. Agents call `classify_document` and `document_gaps`.

```bash
curl --fail-with-body -X POST 'https://api.webcite.co/api/v1/gaps' \
  -H "x-api-key: $WEBCITE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"category": "financials", "taxonomy": "vc", "stage": "early", "docs": [{"filename": "us-mint-2024-annual-report-pages-9-and-36.pdf", "category": "financials", "covers": ["Financials (P&L)"]}]}'
```

Recorded response:

```json
{
  "items": [
    {
      "name": "P&L / income statement",
      "present": true
    },
    {
      "name": "Cap table",
      "present": false
    },
    {
      "name": "Management accounts / monthly P&L (24 mo)",
      "present": false
    },
    {
      "name": "Cash-flow statement & burn / runway",
      "present": false
    },
    {
      "name": "Financial model / projections",
      "present": false
    }
  ]
}
```

[Full response](/samples/gaps-financials.json).

## Read a classification

Classification is conservative. A page of IRS Form W-9, which fits no diligence category, came back:

```json
{
  "state": "complete",
  "category": "unfiled",
  "covers": [],
  "confidence": 0,
  "basis": "fallback"
}
```

Treat `unfiled` with `basis: fallback` as unclassified and file it by hand. [Full response](/samples/doc-w9-classify.json).

## When to use it, and what to use instead

Use these two calls to build the next information request list. `present: true` means a filed document matched the item; it does not establish that the document's contents are complete or correct. To check what the documents say, run [figure extraction](/api-docs/extract-financial-figures), [find conflicting figures](/api-docs/find-conflicting-figures) or a [document review](/api-docs/mcp#review).
