---
title: "List all users consent history (admin)"
method: GET
path: "/api/v1/user-consent/admin/history"
tags: ["user-consent"]
---

# List all users consent history (admin)

`GET /api/v1/user-consent/admin/history`

## Query parameters

- `page` number
- `limit` number
- `order` object
  - `fileName` 'ASC' | 'DESC'
  - `uploadedAt` 'ASC' | 'DESC'
  - `version` 'ASC' | 'DESC'

## Response `201`

- UserConsentAdminHistoryResponseDTO
  - `data` object[], required
    - `acceptedCount` integer, required — Number of live acceptances of this version
    - `documentId` string, uuid, required — The id of the consent document
    - `fileName` string, required — The display name of the document
    - `isCurrent` boolean, required — True iff this row is the current latest consent doc for the org
    - `pendingCount` integer, nullable, required — Active org users without a live acceptance of the current version. Only populated for the current row.
    - `revokedCount` integer, required — Users who revoked this version and have not since accepted the current version
    - `sizeBytes` integer, required — The byte size of the uploaded document
    - `totalUsers` integer, required — Total active org users at query time
    - `uploadedAt` string, date-time, required — When the document was uploaded
    - `uploadedBy` string, uuid, required — The user id who uploaded the document
    - `version` integer, required — The document version
  - `meta` object, required
    - `hasNext` boolean, required
    - `limit` number, required
    - `page` number, required
    - `total` number, required

---

[API](https://skmtc.net/wejam/apis/jam.md) · [All operations](https://skmtc.net/wejam/apis/jam/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wejam/jam/revisions/bd5a5f406bca/schema)
