Skip to content

List the current user's OAuth consents.

GET
/api/user/consents
Code sample: Shell / cURL
curl --request GET \
--url https://auth.example.com/api/user/consents \
--header 'Authorization: Bearer <token>'

Returns consent records granted by the authenticated end user, including client display metadata, scopes, grant time, expiry, and policy versions when available.

Successful JSON response.

Media type application/json
object
consents
required
Array<object>
object
id
required
string
clientId
required
string
clientName
string
clientLogoUri
string format: uri
scopes
required
Array<string>
selectedScopes
Array<string>
grantedAt
required
integer
expiresAt
integer
policyVersions
object
privacyPolicyVersion
string
tosVersion
string
consentVersion
integer
total
required
integer
Example
{
"consents": [
{
"id": "consent_123",
"clientId": "client_123",
"clientName": "Example App",
"scopes": [
"openid",
"profile"
],
"grantedAt": 1770000000000
}
],
"total": 1
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
error_code

Stable Authrim error category that can be provided to support.

string
/^AR[0-9]{6}$/
error_id

Opaque occurrence identifier that can be provided to support for correlation.

string format: uuid
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example",
"error_code": "example",
"error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
error_code

Stable Authrim error category that can be provided to support.

string
/^AR[0-9]{6}$/
error_id

Opaque occurrence identifier that can be provided to support for correlation.

string format: uuid
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example",
"error_code": "example",
"error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
error_code

Stable Authrim error category that can be provided to support.

string
/^AR[0-9]{6}$/
error_id

Opaque occurrence identifier that can be provided to support for correlation.

string format: uuid
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example",
"error_code": "example",
"error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}