Banco do Brasil API

Finance / OAuth Advanced HTTPS CORS
Varies by plan (check documentation)

Overview

Banco do Brasil provides a suite of financial APIs covering transactions, payments, PIX transfers, and account data for Brazil's largest public bank. It uses OAuth 2.0 for authentication and follows Open Banking standards. This API is best suited for developers building fintech applications targeting the Brazilian market.

💡

Beginner Tip

You will need to register as a developer on developers.bb.com.br and go through an approval process before getting sandbox credentials. Start in the sandbox environment — it mirrors production without using real money.

Available Data

Banco do Brasil data via REST API
JSON-formatted response data
Requires OAuth authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Banco do Brasil",
    "description": "All Banco do Brasil financial transaction APIs",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

access_token OAuth 2.0 bearer token to use in subsequent API requests
token_type Token type, always Bearer for this API
expires_in Token validity duration in seconds from the time of issuance
scope Space-separated list of permissions granted to this token

Implementation Example

const url = "https://developers.bb.com.br/home";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "Authorization": "Bearer YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Unauthorized on token request Incorrect client_id or client_secret in the OAuth token request
Double-check your credentials from the developer portal and ensure you are using the sandbox credentials for the sandbox environment
403 Forbidden on API call Access token does not include the required scope for the endpoint
Request the correct scope when obtaining your token; each endpoint requires a specific scope listed in the documentation
400 Bad Request on PIX endpoint PIX key format is invalid or the request body does not match the expected schema
Validate your request body against the API schema; PIX keys have strict format rules for CPF, CNPJ, phone, email, and random keys

Matrix Score Breakdown

🌐 Reachability 0/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 8/20
✓ Reliability 0/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth OAuth
HTTPS REQUIRED
CORS YES
Category Finance
Difficulty Advanced
Verified: 2026-04-04

Similar APIs

View All →