> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ledgerize.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Convert a PDF with the Ledgerize API in minutes

## Steps

### 1) Upload a PDF

```bash theme={null}
curl -s -X POST   -H "X-Api-Key: $LEDGERIZE_API_KEY"   -F file=@statement.pdf   https://ledgerize.ai/api/v1/files
```

### 2) Convert to JSON

```bash theme={null}
curl -s -X POST   -H "X-Api-Key: $LEDGERIZE_API_KEY"   -H "Content-Type: application/json"   -d '{"ids":["<uuid>"],"format":"JSON"}'   https://ledgerize.ai/api/v1/convert
```

### 3) Poll job & fetch result

```bash theme={null}
curl -s -H "X-Api-Key: $LEDGERIZE_API_KEY" https://ledgerize.ai/api/v1/jobs/<jobId>
curl -s -H "X-Api-Key: $LEDGERIZE_API_KEY" https://ledgerize.ai/api/v1/jobs/<jobId>/result
```

Use `format: CSV` or `XLS` to download a file. See the Endpoints section for details.
