---
title: Proposals
description: Approval-gated agent write operations.
canonical: https://bennybooks.com/developers/api/proposals
markdown: https://bennybooks.com/developers/api/proposals.md
---
# Proposals

Approval-gated agent write operations.

> **Documentation index.** Fetch [https://bennybooks.com/developers/llms.txt](https://bennybooks.com/developers/llms.txt) before browsing further. Prefer markdown (this file or `Accept: text/markdown`). Site-wide map: [https://bennybooks.com/llms.txt](https://bennybooks.com/llms.txt).

Proposals are drafts. Humans approve or reject them in Ledger → Approvals. Approved proposals mutate the ledger. Propose and review events are audit-logged in Log (https://bennybooks.com/log) — there is no agent API to read Log in v1.

### `GET https://bennybooks.com/api/v1/proposals`

Pending agent proposals awaiting human approval.

- operationId: `list_pending_proposals`
- scope: `read`

**Response**

```json
{
  "data": [ { "id": "…", "type": "categorization", "status": "pending", … } ],
  "meta": { "count": 2 }
}
```

### `GET https://bennybooks.com/api/v1/proposals/{id}`

Single proposal by ID.

- operationId: `get_proposal`
- scope: `read`

**Parameters**

- `id` (uuid, required) — Proposal ID

**Response**

```json
{ "data": { "id": "…", "type": "categorization", "status": "pending", … } }
```

### `POST https://bennybooks.com/api/v1/imports/revolut`

Ingest a Revolut statement CSV into the ledger. Pass full CSV text in `csv`. Posts completed rows immediately (bank feed ingest). Idempotent on external ids.

- operationId: `import_revolut_csv`
- scope: `propose-write`

**Body**

```json
{
  "csv": "Type,Product,Started Date,Completed Date,Description,Amount,Fee,Currency,State,Balance\nCard payment,Current,2024-01-15 10:00:00,2024-01-15 10:00:00,Coffee,-4.50,0.00,EUR,COMPLETED,100.00\n"
}
```

**Response**

```json
{ "data": { "inserted": 12, "skipped": 1, "parsed": 13, "format": "personal", "source": "revolut" } }
```

### `POST https://bennybooks.com/api/v1/proposals/categorization`

Suggest a category for a transaction. Prefer categoryCode. Creates a pending proposal — the ledger is not updated until a human approves in Ledger → Approvals.

- operationId: `propose_categorization`
- scope: `propose-write`

**Body**

```json
{
  "transactionId": "uuid",
  "categoryCode": "5300",
  "confidence": 0.91,
  "reason": "Description matches counterparty AWS",
  "evidence": [
    { "type": "counterparty_match", "value": "aws" }
  ]
}
```

**Response**

```json
{ "data": { "id": "…", "status": "pending", "type": "categorization", … } }
```

### `POST https://bennybooks.com/api/v1/proposals/journal-entry`

Propose a new manual ledger entry. Creates a pending proposal — a transaction is created only after human approval.

- operationId: `propose_journal_entry`
- scope: `propose-write`

**Body**

```json
{
  "date": "2026-08-28",
  "description": "Office supplies",
  "amount": -42.50,
  "currency": "EUR",
  "categoryCode": "5200",
  "source": "manual_csv",
  "confidence": 0.88,
  "reason": "One-off office purchase"
}
```

**Response**

```json
{ "data": { "id": "…", "status": "pending", "type": "journal_entry", … } }
```

### `POST https://bennybooks.com/api/v1/proposals/receipt-link`

Suggest linking a receipt to a transaction. Approval required.

- operationId: `propose_receipt_link`
- scope: `propose-write`

**Body**

```json
{
  "transactionId": "uuid",
  "receiptId": "uuid",
  "confidence": 0.85,
  "reason": "Amount and date match"
}
```

**Response**

```json
{ "data": { "id": "…", "status": "pending", "type": "receipt_link", … } }
```

import_revolut_csv posts bank rows immediately (ingest). Other write endpoints create pending proposals until approved.

| type | On approval |
| --- | --- |
| categorization | Sets canonical category + agent metadata; status → matched |
| journal_entry | Creates new transaction (status matched) |
| receipt_link | Links receipt to transaction |
| note | Creates note on transaction |

---

## Machine-readable

- HTML: https://bennybooks.com/developers/api/proposals
- Markdown: https://bennybooks.com/developers/api/proposals.md
- Docs index: https://bennybooks.com/developers/llms.txt
- OpenAPI: https://bennybooks.com/openapi.json
- Skill: https://bennybooks.com/skill.md
- Auth: https://bennybooks.com/auth.md

```json
{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "headline": "Proposals",
  "description": "Approval-gated agent write operations.",
  "url": "https://bennybooks.com/developers/api/proposals",
  "inLanguage": "en",
  "encodingFormat": [
    "text/html",
    "text/markdown"
  ],
  "isAccessibleForFree": true,
  "publisher": {
    "@type": "Organization",
    "name": "BennyBooks",
    "url": "https://bennybooks.com",
    "logo": {
      "@type": "ImageObject",
      "url": "https://bennybooks.com/apple-icon.png"
    }
  },
  "mainEntityOfPage": "https://bennybooks.com/developers/api/proposals",
  "image": "https://bennybooks.com/opengraph-image",
  "workExample": {
    "@type": "CreativeWork",
    "url": "https://bennybooks.com/developers/api/proposals.md",
    "encodingFormat": "text/markdown",
    "name": "Proposals (Markdown)"
  },
  "about": {
    "@type": "WebAPI",
    "name": "BennyBooks Agent API",
    "url": "https://bennybooks.com/api/v1",
    "documentation": "https://bennybooks.com/developers"
  }
}
```
