Core Resources
Banking Api
Energy Api
Common api
A Consent represents the access period and scope of data an End User allows a Client (you) to access. We handle a lot of the compliance requirements around Consents, but we also recommend alerting your customers of their consents. These APIs will help you to embed an End Users personalised consents into your application.
Consents Endpoints
An object that represents your Consents
Indicates whether consent is active or not
URL to a logo of your application
Your application name
CDR arrangement ID provided by DH.
When the Consent was created
The time period access was granted. Its in seconds
End users email
ID of the end user that authorised the consent
RFC3339 date-time that the consent expires (or already expired) at
The identifier for the institution the Consent is held with.
Institution logo
Institution name
Institution Type
The last time the ADR, or Fiskil used the consent to access data.
The last time the Consent was acknowledged by the End User.
A list of the data permissions granted.
Reason for consent termination
{
"active": true,
"app_logo": "https://acme.com/app-logo.png",
"app_name": "MyCoolApp",
"arrangement_id": "94549a73-a554-4b76-b824-d96898829751",
"created_at": "2021-03-18T02:46:42Z",
"duration": 7776000,
"end_user_email": "tony.stark@example.com",
"end_user_id": "482c0e2b-5866-46b1-b795-220b7bba45b5",
"expires_at": "2023-01-01T10:42:40Z",
"institution_id": "11",
"institution_logo": "https://example.com/images/gringotts-logo.png",
"institution_name": "Gringgotts",
"institution_type": "banking",
"last_accessed": "2023-01-02T10:42:42Z",
"last_consent": "2023-01-01T10:42:40Z",
"permissions": [
"accounts",
"balances",
"transactions"
],
"termination_reason": "Expired or Revoked"
}
/v1/consent
Retrieve all consents for a specific End User.
The ID of the end user to list consents for
Filter to include only active or inactive (i.e. revoked or expired) consents
curl --request GET \
--url https://api.fiskil.com/v1/consent?end_user_id={end_user_id}&active={active} \
--header 'Authorization: Bearer {access_token}' \
--header 'accept: application/json; charset=UTF-8' \
--header 'content-type: application/json; charset=UTF-8'
[
{
"active": true,
"app_logo": "https://acme.com/app-logo.png",
"app_name": "MyCoolApp",
"arrangement_id": "94549a73-a554-4b76-b824-d96898829751",
"created_at": "2021-03-18T02:46:42Z",
"duration": 7776000,
"end_user_email": "tony.stark@example.com",
"end_user_id": "482c0e2b-5866-46b1-b795-220b7bba45b5",
"expires_at": "2023-01-01T10:42:40Z",
"institution_id": "11",
"institution_logo": "https://example.com/images/gringotts-logo.png",
"institution_name": "Gringgotts",
"institution_type": "banking",
"last_accessed": "2023-01-02T10:42:42Z",
"last_consent": "2023-01-01T10:42:40Z",
"permissions": [
"accounts",
"balances",
"transactions"
],
"termination_reason": "Expired or Revoked"
},
{
"active": true,
"app_logo": "https://acme.com/app-logo.png",
"app_name": "MyCoolApp",
"arrangement_id": "94549a73-a554-4b76-b824-d96898829751",
"created_at": "2021-03-18T02:46:42Z",
"duration": 7776000,
"end_user_email": "tony.stark@example.com",
"end_user_id": "482c0e2b-5866-46b1-b795-220b7bba45b5",
"expires_at": "2023-01-01T10:42:40Z",
"institution_id": "11",
"institution_logo": "https://example.com/images/gringotts-logo.png",
"institution_name": "Gringgotts",
"institution_type": "banking",
"last_accessed": "2023-01-02T10:42:42Z",
"last_consent": "2023-01-01T10:42:40Z",
"permissions": [
"accounts",
"balances",
"transactions"
],
"termination_reason": "Expired or Revoked"
},
{
"active": true,
"app_logo": "https://acme.com/app-logo.png",
"app_name": "MyCoolApp",
"arrangement_id": "94549a73-a554-4b76-b824-d96898829751",
"created_at": "2021-03-18T02:46:42Z",
"duration": 7776000,
"end_user_email": "tony.stark@example.com",
"end_user_id": "482c0e2b-5866-46b1-b795-220b7bba45b5",
"expires_at": "2023-01-01T10:42:40Z",
"institution_id": "11",
"institution_logo": "https://example.com/images/gringotts-logo.png",
"institution_name": "Gringgotts",
"institution_type": "banking",
"last_accessed": "2023-01-02T10:42:42Z",
"last_consent": "2023-01-01T10:42:40Z",
"permissions": [
"accounts",
"balances",
"transactions"
],
"termination_reason": "Expired or Revoked"
}
]
/v1/consent/{arrangement_id}
Revoke consent
CDR arrangement ID as returned by the list consents API.
curl --request DELETE \
--url https://api.fiskil.com/v1/consent/{arrangement_id} \
--header 'Authorization: Bearer {access_token}' \
--header 'accept: application/json; charset=UTF-8' \
--header 'content-type: application/json; charset=UTF-8'
Was this page helpful?