https://sandbox-api.akoya.com/consents/{version}/{consentId}
Use this endpoint to get the details of an end-user's consent.
You may use the Consent API to receive notifications of an end-user's change in consent. If you haven't already, subscribe to receive notifications. You'll receive a notification via webhook if your user changes their consent through their provider's website or interface. To see a list of the providers which support consent notifications, log in to the Data Recipient Hub Support Center. Then, view the consent notification providers list.
🛑 The service token should be used as the bearer token with this call.
version*
stringdefault: v1version of endpoint
consentId*
stringConsent Id, may be returned in a notification.
Set the grant_type and scope.
grant_type*
Defaults to client_credentials, your `clientId` and `clientSecret`.
Example: client_credentials
scope*
The service accessed by provided credentials.
200
Ok
Response Body
id
string
status
string
parties
array of objects
object
name
string
type
string
registeredEntityId
string
createdTime
string
resources
array of objects
object
resourceType
string
resourceId
string
dataClusters
array of strings
string
const options = {
"method": "GET",
"headers": {
"accept": "application/json"
},
"body": {
"application/json": {
"grant_type": "client_credentials",
"scope": "notifications_subscriptions advisory"
}
}
}};
fetch('https://sandbox-api.akoya.com/consents/v1/', options)
.then(response => response.json())
.catch(err => console.error(err));