Skip to content

Get user consent record history

GET
/api/admin/users/{userId}/consent-records/{statementId}/history
Code sample: Shell / cURL
curl --request GET \
--url https://auth.example.com/api/admin/users/example/consent-records/example/history \
--header 'Authorization: Bearer <token>'

Returns consent item history for a user and statement ordered by newest first.

userId
required
string
statementId
required
string

Successful JSON response.

Media type application/json
object
history
required
Array<object>
object
key
additional properties
key
additional properties
Example
{
"history": [
{
"id": "hist_123",
"user_id": "user_123",
"statement_id": "statement_123",
"action": "granted",
"status_before": null,
"status_after": "granted",
"created_at": 1770000000000
}
]
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}