Skip to content
Console
On this page

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_records and, when there is more, next_page_token

Request

FieldTypeWhat it is
parentstringCanonical name of the parent Resource. Required.
page_sizeint32Maximum number of entries to return.
page_tokenstringToken from the previous page.
user_idstringOptional end-user ID within this Auth instance.

Response

FieldTypeWhat it is
consent_recordsConsentRecord[]Page of immutable consent receipts.
next_page_tokenstringToken for the next page, empty at the end.

ConsentRecord

FieldTypeWhat it is
namestringCanonical Resource name.
uidstringServer-assigned immutable ID. Output only.
metaResourceMetaResource metadata.
user_idstringThe Auth end user who accepted; absent after erasure. Output only.
org_idstringThe owning Access organization. Output only.
project_idstringThe owning Access project. Output only.
doc_slugstringStable agreement kind. Output only.
versionstringAccepted agreement version. Output only.
document_sha256stringExact SHA-256 of the text accepted. Output only.
accept_timetimestampServer-observed acceptance time in UTC. Output only.
ip_addressstringEmpty if the trusted request context did not provide an IP address. Output only. Never returned again.
user_agentstringUser-Agent observed on the acceptance request, if present. Output only. Never returned again.
surfacestringThe Auth ceremony that recorded acceptance. Output only.

ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong 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_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

Errors

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"