curl --request GET \
--url https://api.despezzas.com/v1/accounts \
--header 'Authorization: Basic <encoded-value>'const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.despezzas.com/v1/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.despezzas.com/v1/accounts"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.despezzas.com/v1/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
{
"connection": {
"bank_name": "Nubank",
"id": "f7a8b9c0-d1e2-4f3a-8b4c-5d6e7f8a9b0c",
"status": "CONNECTED",
"bank_icon": "https://cdn.despezzas.com/banks/nubank.png",
"import_date": "2026-09-01T09:00:00.000Z",
"last_update": "2026-09-15T14:32:10.000Z",
"need_update": false
},
"id": "3a9e7d21-4b5c-4d6e-8f70-1a2b3c4d5e6f",
"include_total_balance": true,
"is_default": true,
"logo": "https://cdn.despezzas.com/banks/nubank.png",
"name": "Nubank",
"user_id": "0d6b923c-3392-424e-a152-2ee32474e8d5",
"balance": 1250000,
"createdAt": "2026-09-01T09:00:00.000Z",
"last_synced_at": null,
"need_update": false,
"profile_id": null,
"subtype": null,
"sync_count": 0,
"sync_limit": 3,
"syncs_remaining": 3,
"type": "PERSONAL_BANK",
"updatedAt": "2026-09-15T14:32:10.000Z"
}
]{
"message": "Credenciais de API inválidas",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "Credenciais de API inválidas",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "Credenciais de API inválidas",
"statusCode": 401,
"error": "Unauthorized"
}Listar contas
Escopo necessário: read.
curl --request GET \
--url https://api.despezzas.com/v1/accounts \
--header 'Authorization: Basic <encoded-value>'const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.despezzas.com/v1/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.despezzas.com/v1/accounts"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.despezzas.com/v1/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
{
"connection": {
"bank_name": "Nubank",
"id": "f7a8b9c0-d1e2-4f3a-8b4c-5d6e7f8a9b0c",
"status": "CONNECTED",
"bank_icon": "https://cdn.despezzas.com/banks/nubank.png",
"import_date": "2026-09-01T09:00:00.000Z",
"last_update": "2026-09-15T14:32:10.000Z",
"need_update": false
},
"id": "3a9e7d21-4b5c-4d6e-8f70-1a2b3c4d5e6f",
"include_total_balance": true,
"is_default": true,
"logo": "https://cdn.despezzas.com/banks/nubank.png",
"name": "Nubank",
"user_id": "0d6b923c-3392-424e-a152-2ee32474e8d5",
"balance": 1250000,
"createdAt": "2026-09-01T09:00:00.000Z",
"last_synced_at": null,
"need_update": false,
"profile_id": null,
"subtype": null,
"sync_count": 0,
"sync_limit": 3,
"syncs_remaining": 3,
"type": "PERSONAL_BANK",
"updatedAt": "2026-09-15T14:32:10.000Z"
}
]{
"message": "Credenciais de API inválidas",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "Credenciais de API inválidas",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "Credenciais de API inválidas",
"statusCode": 401,
"error": "Unauthorized"
}Authorizations
HTTP Basic com o token como usuário e o secret como senha: curl -u dpz_tk_…:dpz_sk_…. Crie a chave em https://despezzas.com/settings/api-keys.
Query Parameters
Busca pelo nome da conta.
"mercado"
Response
Sucesso.
Conexão Open Finance, ou null em contas manuais.
Show child attributes
Show child attributes
Id da conta.
"3a9e7d21-4b5c-4d6e-8f70-1a2b3c4d5e6f"
Se entra no saldo total.
true
Conta padrão do contexto.
true
Logo do banco (URL).
"https://cdn.despezzas.com/banks/nubank.png"
Nome.
"Nubank"
Dono.
"0d6b923c-3392-424e-a152-2ee32474e8d5"
Saldo atual. Em centavos.
1250000
Criação.
"2026-09-01T09:00:00.000Z"
Última sincronização (Open Finance).
null
Só presente quando há conexão: se o banco pede nova autorização.
false
Perfil de Acesso / empresa.
null
Subtipo informado pelo banco (Open Finance).
null
Sincronizações manuais usadas hoje.
0
Limite diário de sincronizações manuais.
3
Sincronizações manuais restantes hoje.
3
Tipo.
PERSONAL_BANK, BUSINESS_BANK, INVESTMENT, OTHER, null "PERSONAL_BANK"
Última alteração.
"2026-09-15T14:32:10.000Z"