FAQ
Access, credentials and environments
How do I access the Console if my invitation expired or the security code doesn't arrive?
Invitations are valid for 24 hours. If yours expired, ask support to resend it. If the security code doesn't arrive, check your spam folder and whether your company's email filters are blocking messages from Klavi.
Where do I find my credentials, and how do I get access to sandbox and production?
The credentials are in the Console, under Integration > Production. To request access to an environment, our team reviews each request. Each environment (sandbox, testing, production) has its own accessKey/secretKey pair.
What data should I use to test in sandbox (Klavi Mock Bank)?
Sandbox data is fictitious. Any valid CPF and any phone number work with Klavi Mock Bank. Simulated reports are delivered to the destination you configured on Console
The consent journey
What do I need to use my own journey through the API (API Only)?
Follow the API Only guide in our documentation. Before you can create consents through the API, Klavi must validate your journey. Contact us to start the validation.
How do I connect business accounts (CNPJ)?
The personal (PF) and business (PJ) journeys are separate: sending a CNPJ when you create a link does not turn it into a business journey. Ask us to enable the business journey.
Where does the user go at the end of the journey, and how do I bring them back to my app or WhatsApp?
After authorizing at their bank, the user returns to Klavi's success screen and from there to your redirectURL. Set redirectURL to where you want the user to land.
Institutions
Why isn't an institution in the journey's list, and how do I request it?
We can only list institutions that have active data sharing in the Open Finance Directory. If the institution has it, ask us to add it and we will include it after testing consent and redirection.
Consents: status and events
Why does a consent stay pending, expire or get rejected without the user finishing?
Pending means the user left the journey before reaching their bank, or the bank didn't confirm completion. When the time limit runs out, the consent expires or is rejected.
Why do I receive consent events out of order, or with a status different from the Console?
Events are sent in the order they are confirmed, so the rejection or expiry of an earlier consent can arrive after a new consent on the same link was authorized. Track status per consent (consentId), not only per linkId.
What triggers consent_rejected and consent_revoked?
consent_rejected is sent when the journey was created but never authorized: the user abandoned it or declined. consent_revoked is sent when an active consent is revoked, by the user or by your application.
Why doesn't the consent status change when the user revokes it in their bank's app?
This is an Open Finance limitation: no API tells Klavi when a user revokes a consent at the bank, so the status isn't updated right away and you may not receive consent_revoked.
Webhooks
Why didn't the report reach my webhook?
Usually because your endpoint refused the delivery. Klavi retries a limited number of times and then stops. Fix your endpoint, make sure your firewall allows Klavi's IP addresses (listed on the Security page of our documentation), and request the product again.
Note that the product_generated_success event only tells you the report was generated. The report itself is sent to your productsCallbackURL.
How do I configure my webhook addresses?
Event webhooks and data (product) webhooks are registered separately and can coexist. Product webhooks can be set:
- for all reports in the Console
- per link, or
- per request with productsCallbackURL.
What does each webhook event contain, for example consent_authorised?
Consent events carry only consent data. Product data arrives in its own webhooks, at your productsCallbackURL. Check more details in API Events page
Error codes
What does error 5003 (Bank side not available) mean?
Probably the institution was unavailable when we queried it (you can check in our status page https://status.klavi.ai/). It's a temporary problem on the bank's side, not with the consent. Outside production, it can also appear during scheduled maintenance, which we announce by email. If the failure left data out of a report, request it again; if it persists, contact support.
Why do I get 400 "Entity not found" when requesting an institution-data product?
The request is missing a required parameter. For example: institutionCode, which is required in institution-data requests.
Why do my credentials return 401 Unauthorized?
Each environment (sandbox, testing, production) has its own accessKey/secretKey pair. Check if the credentials match the environment and the endpoint you're calling. Also check if you have added a valid access token
Why do I get error 4002 or "not authorized" when requesting a product?
The product isn't enabled in your contract or you are using the wrong endpoint level. Check your contract and the endpoint used to request the product
What does 5100 "Account is null" mean in the credit card report?
The user's credit card accounts are marked as unavailable (UNAVAILABLE) at the institution or the resource does not exist, so there's no card data to return. If the user does have an active card, contact support and we'll open a ticket with the institution.
Why do I get 4006 "Invalid productsCallbackURL" when creating a link?
productsCallbackURL takes an object, not a plain URL. Use one key per product code, or the key `all` for every product:
What is the API rate limit (error 429)?
The default limit is 5 requests per second, which protects Klavi's systems and respects the banks' limits. Above it, the API returns 429 Too Many Requests: space out your calls and retry with exponential backoff.