Listar contas de uma organização
RegistosGET /organizations/{organizationID}/accounts
List owned, linked, and pending accounts in the active organization
Returns every link record the organization has (pending consent, active, removal pending, removed), each with the account's name and slug, followed by synthetic entries with state owned and an ID of the form owned:<tenant ID> for accounts the organization owns outright. Only organization owners and admins with the organization:accounts:read scope may call it. A closed or unknown organization returns 404. The list is not paginated.
Parâmetros
organizationIDID of the organization whose account links are listed; it must equal the caller's active organization context.
Devolve
200 Owned accounts plus linked accounts and pending consent requests visible to organization members
Mostrar atributos
idorganization_idtenant_idtenant_nametenant_slugstateum de
pending_consent,active,removal_pending,removed,ownedconsent_approved_byconsent_approved_atadded_bynotice_period_untilgrants
Erros 403
Permissões organization:accounts:read · Funções: account_admin, account_analyst, account_finance, account_owner, account_support
curl -X GET "$BUSINESS_API/organizations/{organizationID}/accounts" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/organizations/{organizationID}/accounts", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/organizations/{organizationID}/accounts",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/organizations/{organizationID}/accounts", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
[
{
"id": "org_2BfeY3PegjBaQbr8EdxWUjNy4BN",
"organization_id": "org_2ZNeUPlw01Za6RbKMZDGGbR4cV5",
"tenant_id": "ten_2ugFXIC316WXzGu1HGal90AxTA6",
"tenant_name": "Ana Matsinhe",
"tenant_slug": "tenant slug",
"state": "pending_consent",
"consent_approved_by": "consent approved by",
"consent_approved_at": "2026-11-19T09:30:00Z",
"added_by": "added by",
"notice_period_until": "2026-11-19T09:30:00Z",
"grants": {
"key": [
"value"
]
}
}
]