Passer au contenu principal
GET
/
consents
/
{consent_id}
Get a consent by ID
curl --request GET \
  --url https://{host}/me/v1/consents/{consent_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "cns_abc123def456",
  "client_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z",
  "requested_details": {
    "binding_message": "<string>",
    "audience": "<string>",
    "scope": [
      "<string>"
    ]
  }
}

Autorisations

Authorization
string
header
requis

Bearer and DPoP tokens are supported depending on the API configuration

Paramètres de chemin

The ID of the consent to retrieve

Réponse

Successfully retrieved consent

A consent record representing user authorization for a specific client and scope.

id
string
requis

The unique identifier of the consent.

Exemple:

"cns_abc123def456"

client_id
string
requis

The client ID that the consent was granted to.

created_at
string<date-time>
requis

The date and time when the consent was created.

expires_at
string<date-time>
requis

The date and time when the consent expires.

requested_details
object

Details of the consent request