Get Consent List
1 min
consents
Get consent list by end user's CPF or CNPJ
GET
https://api-sandbox.klavi.ai/data/v1/consents
Query Parameters
- personalTaxIdstringDescription
- businessTaxIdstringDescription
- linkIdstringDescription
Header Parameters
- AuthorizationstringrequiredDescription
Response
- consentIdstringDescription
- linkIdstringDescription
- externalTrackIdstringDescription
- personalTaxIdstringDescription
- businessTaxIdstringDescription
- institutionCodestringDescription
- statusstringDescription
- permissionsApplyarrayDescription
- permissionsGrantedarrayDescription
- expireAtstringDescription
- createdAtstringDescription
- updatedAtstringDescription
curl
curl --location 'https://api-sandbox.klavi.ai/data/v1/consents' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'200
[
{
"consentId": "ac246093-353b-4310-bd9c-c6ce0b278de8",
"linkId": "85a3af9f-e8ab-4be8-86dd-6138e9f2474c",
"externalTrackId": "113ee41e-1ecf-41b7-b6a9-c24d7f84bdfd",
"personalTaxId": "16109277673",
"businessTaxId": "",
"institutionCode": "001",
"status": "AUTHORISED",
"permissionsApply":
[
"ACCOUNTS_ALL",
"CREDIT_CARDS_ALL",
"CREDIT_OPERATIONS_ALL",
"REGISTRATION_ALL",
"INVESTMENTS_ALL"
],
"permissionsGranted":
[
"ACCOUNTS_ALL",
"CREDIT_CARDS_ALL",
"CREDIT_OPERATIONS_ALL",
"REGISTRATION_ALL",
"INVESTMENTS_ALL"
],
"expireAt": "2024-12-07T23:59:59.999Z",
"createdAt": "2023-12-08T09:19:19.253Z",
"updatedAt": "2023-12-08T11:29:50.253Z"
},
{
"consentId": "4942ef1e-18c2-4421-8bc9-ae0348d3b1bf",
"linkId": "9cec914d-7663-4f4e-aa90-39efe8f0f279",
"externalTrackId": "f47d4959-3a9d-4856-83e8-7b653f2f383a",
"personalTaxId": "16109277673",
"businessTaxId": "",
"institutionCode": "001",
"status": "AUTHORISED",
"permissionsApply":
[
"ACCOUNTS_ALL",
"CREDIT_CARDS_ALL",
"CREDIT_OPERATIONS_ALL",
"REGISTRATION_ALL",
"INVESTMENTS_ALL"
],
"permissionsGranted":
[
"ACCOUNTS_ALL",
"CREDIT_CARDS_ALL",
"CREDIT_OPERATIONS_ALL",
"REGISTRATION_ALL",
"INVESTMENTS_ALL"
],
"expireAt": "2024-12-07T23:59:59.999Z",
"createdAt": "2023-12-08T09:19:19.253Z",
"updatedAt": "2023-12-08T11:29:50.253Z"
}
]