Skip to content

Retrieve a consent by consent ID.

Request

Returns a single consent which details information regarding the connection

Security
Bearer(Required scopes: api:consent)
Path
consentIdstringrequired

The consent ID to fetch the consent details for. This should be a uuid.

curl -i -X GET \
  'https://uk.api.atto.co/consents/v1/{consentId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Returns the consent details.

Bodyapplication/json
consentIdstring, (uuid)

Unique reference for the consent.

applicationIdstring, (uuid)

Application Id for the client.

userIdstring, (uuid)

Unique reference for the User the consent is associated with.

providerIdinteger, (int32)

Provider Id for the consent.

providerNamestring or null

Provider name for the consent.

configurationNamestring or null

Specific configuration of the client.

customerReferencestring or null

Reference for the consent provided by the client.

consentDurationTypestring(DirectID.Models.Consent.ConsentDurationType)

Type of the consent based on duration.

Enum:"Single""Limited""Infinite"
consentStatusstring(DirectID.Models.Consent.ConsentStatus)
Enum:"Pending""Active""Revoked""Abandoned""Failed""Expired"
consentStartstring or null, (date-time)

Start date for the consent.

consentEndstring or null, (date-time)

End date for the consent.

durationstring or null

Duration of consent in ISO8601 format.

daysOfHistoricalTransactionsinteger or null, (int32)

Number of days of transactions that can be requested from the bank.

statusUpdatedstring, (date-time)

Date of last status update of the consent.

statusDetailsstring or null

Details for the current status.

permissionsArray of strings or null

List of permissions for the consent.

invitationIdstring or null

Associated Invitation Id

journeyTypestring(DirectID.Models.Consent.ConsentJourneyType)

Used to indicate the type of journey that was performed If null it means the default(initial) journey was performed.

Enum:"Reauthentication""Reconfirmation"
Response
{ "consentId": "383460e3-8762-4b4d-5d63-08dea9a9a93c", "applicationId": "1e2eada7-fea2-4b6c-93f4-e8691e3be657", "userId": "b33420fd-987c-4703-fae5-08dea9a9a93d", "providerId": 15, "providerName": "Barclays", "configurationName": "default", "customerReference": "Ref123", "consentDurationType": "Limited", "consentStatus": "Active", "consentStart": "2026-05-05T14:08:45", "consentEnd": "2027-05-05T14:08:45", "duration": "P365D", "daysOfHistoricalTransactions": 365, "statusUpdated": "2026-05-05T14:08:45", "statusDetails": null, "permissions": [ "Balances", "Transactions" ], "invitationId": "e88e9ba5-1ec6-434e-5d62-08dea9a9a93c", "journeyType": null }