List consent records
Lists immutable consent audit receipts of an Auth environment.
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
- Query
page_size,page_token,user_id - Pagination the answer carries
consent_recordsand, 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— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.RESOURCE_NOT_FOUND— The named Resource does not exist or is not visible.INVALID_FIELD— A field failed validation.PAGE_TOKEN_MISMATCH— A page token was reused with different parameters.
Every error arrives in the body Errors describes.
Examples
curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/consent_records" \
-H "Authorization: Bearer $SYLPHX_API_KEY"