---
title: "List bulk consent uploads"
method: GET
path: "/v1/compliance/consent-batches"
tags: ["Compliance / CASL"]
---

# List bulk consent uploads

`GET /v1/compliance/consent-batches`

## Request

- Base URL: `https://api.honkio.ca`
- URL: `https://api.honkio.ca/v1/compliance/consent-batches`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Requires `compliance:r`.

## Query parameters

- `page` integer
- `limit` integer

## Response `200`

A page of bulk uploads, newest first. No total is returned.

- object: A page of bulk uploads, newest first. No total is returned.
  - `data` ConsentBatch[], required
    - `id` string, required: cb_…
    - `source` 'api' | 'dashboard', required: Sent through the API, or uploaded on the dashboard.
    - `file_name` string, nullable, required: The file name the uploader gave, if any.
    - `attested` boolean, required: Whether the uploader confirmed these people gave this consent or have this relationship.
    - `counts` object, required
      - `rows` integer, required
      - `recorded` integer, required
      - `express` integer, required
      - `implied` integer, required
      - `already_recorded` integer, required
      - `opted_out` integer, required
      - `revoked_by_review` integer, required
      - `duplicate_in_file` integer, required
      - `invalid` integer, required
    - `revoked_at` string, date-time, nullable, required
    - `created_at` string, date-time, required
    - `defaults` object: The defaults the upload was sent with, as sent. Only on GET /v1/compliance/consent-batches/{id}.
      - `consent_type` 'express' | 'implied', required
      - `source_description` string
      - `source_ip` string
      - `source_url` string
      - `relationship_type` string
      - `last_transaction_date` string
      - `expires_at` string, nullable

## Other responses

- `401`: Missing, invalid, revoked or expired API key.
- `402`: The account has no balance, or a LIVE key was used before the first top-up.
- `403`: The API key lacks the permission this operation requires, or the account is suspended or closed.
- `422`: VALIDATION_ERROR: the request failed validation; details names the fields.
- `429`: Rate limit reached: 100 requests per second per account, or a route-specific limit (Retry-After set where one applies).
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/honkio/apis/honkio-api.md) · [All operations](https://skmtc.dev/honkio/apis/honkio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/honkio/apis/honkio-api/revisions/ce4ed3fe9691?raw)
