---
# @generated by sylphx-gen. Do not edit.
title: "List consent records"
description: "`auth.consent_records.list` (GET /v1/{parent}/consent_records): Lists immutable consent audit receipts of an Auth environment."
type: reference
product: auth
summary: "Lists immutable consent audit receipts of an Auth environment."
updated: 2026-09-28
nav: false
---

Lists immutable consent audit receipts of an Auth environment.

- **Path** `GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/consent_records`
- **Scope** `auth:read`
- **Effect** `read` — nothing is written.
- **Collection** [consent_records](/docs/api/consent_records)
- **Query** `page_size`, `page_token`, `user_id`
- **Pagination** the answer carries `consent_records` and, when there is more, `next_page_token`

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `parent` | `string` | Canonical name of the parent Resource. Required. |
| `page_size` | `int32` | Maximum number of entries to return. |
| `page_token` | `string` | Token from the previous page. |
| `user_id` | `string` | Optional end-user ID within this Auth instance. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `consent_records` | `ConsentRecord[]` | Page of immutable consent receipts. |
| `next_page_token` | `string` | Token for the next page, empty at the end. |

### ConsentRecord

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | Canonical Resource name. |
| `uid` | `string` | Server-assigned immutable ID. Output only. |
| `meta` | `ResourceMeta` | Resource metadata. |
| `user_id` | `string` | The Auth end user who accepted; absent after erasure. Output only. |
| `org_id` | `string` | The owning Access organization. Output only. |
| `project_id` | `string` | The owning Access project. Output only. |
| `doc_slug` | `string` | Stable agreement kind. Output only. |
| `version` | `string` | Accepted agreement version. Output only. |
| `document_sha256` | `string` | Exact SHA-256 of the text accepted. Output only. |
| `accept_time` | `timestamp` | Server-observed acceptance time in UTC. Output only. |
| `ip_address` | `string` | Empty if the trusted request context did not provide an IP address. Output only. Never returned again. |
| `user_agent` | `string` | User-Agent observed on the acceptance request, if present. Output only. Never returned again. |
| `surface` | `string` | The Auth ceremony that recorded acceptance. Output only. |

### ResourceMeta

| Field | Type | What it is |
| --- | --- | --- |
| `generation` | `int64` | Increases by one on every change to `spec`. Output only. |
| `etag` | `string` | Strong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as `If-Match` or `etag` to make Update and Delete conditional; a mismatch fails with ABORTED / 409 `ETAG_MISMATCH`. Output only. |
| `create_time` | `timestamp` | When the Resource was created. Output only. |
| `update_time` | `timestamp` | When the Resource last changed. Output only. |
| `delete_time` | `timestamp` | Set while the Resource is being deleted. Output only. |
| `labels` | `map<string, string>` | Caller-writable, indexed labels (AIP-122 label rules). |
| `annotations` | `map<string, string>` | Caller-writable, unindexed annotations. |
| `display_name` | `string` | Caller-writable human-readable name. |
| `creator` | `string` | The principal that created the Resource. Output only. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`RESOURCE_NOT_FOUND`](/docs/api/errors/RESOURCE_NOT_FOUND) — The named Resource does not exist or is not visible.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.
- [`PAGE_TOKEN_MISMATCH`](/docs/api/errors/PAGE_TOKEN_MISMATCH) — A page token was reused with different parameters.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/consent_records" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"
```

**TypeScript**

```ts
const response = await sylphx.auth.consentRecords.list({ parent: 'orgs/acme/projects/shop/envs/production' })
```

**Rust**

```rust
let mut req = sylphx::auth::ListConsentRecordsRequest::default();
req.parent = "orgs/acme/projects/shop/envs/production".to_string();
let response = sx.auth().consent_records().list(req).await?;
```

**CLI**

```bash
sylphx auth consent-records list orgs/acme/projects/shop/envs/production
```

**MCP**

```json
{ "method_id": "auth.consent_records.list", "args": {"parent":"orgs/acme/projects/shop/envs/production"} }
```
