# Quickstart

Extractivio turns a PDF bank or credit card statement into a list of transactions: date, description, signed amount and running balance, plus a check that the balances add up.

There are three ways to call it. Pick the one that matches where the statement is and what is calling.

| You are | The statement is | Use |
| --- | --- | --- |
| Writing code | A file or a URL | [REST API](https://extractivio.com/docs/convert.md) |
| An AI agent with MCP support | Online (a URL) or small enough to send as base64 | [Hosted MCP server](https://extractivio.com/docs/mcp.md) |
| An AI agent on the user's own computer | A local file | [Local MCP server](https://extractivio.com/docs/mcp-local.md), free, no account |

## 1. Get an API key

The REST API and the hosted MCP server need a key. Keys are available on the Pro plan (500 pages a month) and the Business plan (5,000 pages a month).

1. Sign in at https://extractivio.com/login.
2. Open https://extractivio.com/account and click "Create API key".
3. Copy the key. It starts with `ex_` and is shown only once.

## 2. Convert a statement

```bash
curl -X POST "https://extractivio.com/api/v1/convert" \
  -H "Authorization: Bearer ex_your_key" \
  -F "file=@statement.pdf"
```

Or point at a PDF that is already online:

```bash
curl -X POST "https://extractivio.com/api/v1/convert" \
  -H "Authorization: Bearer ex_your_key" \
  -H "Content-Type: application/json" \
  -d '{"file_url": "https://example.com/statement.pdf"}'
```

## 3. Read the result

```json
{
  "id": null,
  "filename": "statement.pdf",
  "pages": 3,
  "currency": "USD",
  "balance_check": { "checkable": 41, "reconciled": 41 },
  "warnings": [],
  "transactions": [
    { "date": "2026-03-01", "description": "CARD GREENFIELD MARKET", "amount": -42.18, "balance": 2845.30 }
  ]
}
```

Three things to check on every result:

1. `amount` is negative for money leaving the account and positive for money coming in.
2. `balance_check.reconciled` should equal `balance_check.checkable`. If it is lower, some rows are probably wrong.
3. `warnings` should be empty, or you should act on each one. See [Response and data model](https://extractivio.com/docs/response.md).

## Next

- [Convert endpoint reference](https://extractivio.com/docs/convert.md)
- [Guide for AI agents](https://extractivio.com/docs/agent-guide.md)
- [Errors](https://extractivio.com/docs/errors.md) and [Limits](https://extractivio.com/docs/limits.md)
