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

# List recent local receipts.

` GET /v1/receipts `

List recent local receipts.

## Servers

- ` http://127.0.0.1:8831 ` — Default local host-agent listener.

## Authentication

The operation accepts these alternatives. Schemes within one alternative are required together.

### Alternative 1

- ` SetupBearer `: ` http `

  - HTTP scheme: ` bearer `

  - Setup token before operator configuration, or an authenticated operator session outside this spec.

## Parameters

### ` limit ` (query, optional)

- ` value `: type ` integer `

  - default: ` 25 `

  - minimum: ` 1 `

  - maximum: ` 200 `

## Responses

### ` 200 ` — Recent local receipts.

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` receipts `

  - ` receipts `: type ` array `

    - ` array item `: type ` object `

      - ` receipt_hash `: type ` string `

      - ` receipt `: type ` object `

      - ` submitted_at `: type ` string `; format ` date-time `

      - ` control_plane_url `: type ` string `

      - ` batch_id `: type ` string `

      - ` created_at `: type ` string `; format ` date-time `

### ` default ` — B3IQ-native problem response.

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` error `

  - ` error `: type ` object `

    - Required fields: ` status `, ` title `, ` detail `

    - ` status `: type ` integer `

    - ` title `: type ` string `

    - ` detail `: type ` string `

    - ` code `: type ` string ` — Stable B3IQ code when present. See docs/error-codes.md.

## Request examples

### cURL

```curl
curl -X GET 'http://127.0.0.1:8831/v1/receipts' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('http://127.0.0.1:8831/v1/receipts', {
  method: 'GET',
  headers: {
      "Authorization": "Bearer YOUR_API_TOKEN"
  }
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN'
}

response = requests.get('http://127.0.0.1:8831/v1/receipts', headers=headers)
print(response.json())
```