The BRZ API uses two authentication methods depending on the endpoint type.
All endpoints except Cash-In use Bearer Token authentication:
Call POST /api/v1/auth/bearer-token with your API Key credentials in the headers and the desired scopes in the request body:
Response:
The returned JWT token should be included in the Authorization header as Bearer <token> for all subsequent requests.
The Cash-In endpoint (POST /api/v1/pix/cash-in/qrcode) accepts API Key authentication via two headers as an alternative to Bearer Token:
When generating a Bearer Token, you can request specific scopes to control access. If no scopes are provided, the token will include all scopes available to your API Key.