---
title: "Get consent records for a user"
method: GET
path: "/api/v1/consent/{userId}"
tags: ["Consent"]
---

# Get consent records for a user

`GET /api/v1/consent/{userId}`

## Request

- Base URL: `https://policyforge.co`
- URL: `https://policyforge.co/api/v1/consent/{userId}`
- Auth: HTTP bearer

Retrieve all consent records for a specific website visitor. Use this for compliance audits to prove consent was obtained.

## Path parameters

- `userId` string, required

## Response `200`

Consent records

- ConsentListResponse
  - `user_id` string
  - `consent_records` ConsentResponse[]
    - `id` string
    - `user_id` string
    - `policy_version` string
    - `policy_id` string, uuid, nullable: Echoes the policy_id from the request, or null if none was provided.
    - `consents` object
    - `recorded_at` string, date-time
    - `status` string
  - `total_records` integer

## Other responses

- `400`: User ID required
- `401`: Missing or invalid API key
- `429`: Rate limit exceeded

---

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