HTTP API reference
Extraction and invoice routes accept Authorization: Bearer with a bf_live_ API key or session JWT. Create and revoke bf_live_ keys only from the signed-in dashboard (not documented here). Billing and subscription webhooks are handled in the product UI, not in this catalog.
How the pieces connect
Extract first, then list or update saved rows. Each box links to a topic page with every method and path listed.
Complete endpoint index
| Method | Path | Topic | Summary | Details |
|---|---|---|---|---|
| POST | /api/expenses | Extraction | Extract one or many expense documents (JSON file_url/items or multipart files). client_id required. | View |
| POST | /api/revenue | Extraction | Extract one or many revenue documents (same shape as POST /api/expenses). client_id required. | View |
| GET | /api/expenses | Invoices | Paginated expense invoices for a client (client_id query required). | View |
| GET | /api/expenses/[id] | Invoices | Fetch one expense invoice by id. | View |
| PATCH | /api/expenses/[id] | Invoices | Merge parsed_data on an expense invoice. | View |
| DELETE | /api/expenses/[id] | Invoices | Delete an expense invoice. | View |
| GET | /api/revenue | Invoices | Paginated revenue invoices for a client (client_id query required). | View |
| GET | /api/revenue/[id] | Invoices | Fetch one revenue invoice by id. | View |
| PATCH | /api/revenue/[id] | Invoices | Merge parsed_data on a revenue invoice. | View |
| DELETE | /api/revenue/[id] | Invoices | Delete a revenue invoice. | View |
| GET | /api/clients | Clients | List clients for the authenticated organization. | View |
| POST | /api/clients | Clients | Create a client under the organization. | View |
| GET | /api/clients/[id] | Clients | Fetch one client by id. | View |