Aller au contenu principal
Rodz API
FR EN
v2.0.0

Référence / Account Management / Get credit balance

Get credit balance

Les résumés et descriptions des routes viennent du contrat OpenAPI et restent en anglais.

Check your remaining lead-detection credits to determine if you can activate new signals or need to purchase additional credit packs.

GET https://api.rodz.io/api/v1/account/credits

Documenté depuis le contrat OpenAPI, version 2.0.0 de l’API.

Lire la description complète

Check your remaining lead-detection credits to determine if you can activate new signals or need to purchase additional credit packs.

Input: None (authenticated via API key; no request body or query parameters)

Output: Your current credit balance (credits, floating-point number representing available lead-gen budget) and registered company name (companyName, string or null). A client workspace that uses its agency’s shared credits also gets sharedPool (agencyName, poolHasCredits): it spends its own credits first, then the agency’s, so read poolHasCredits rather than credits to know whether it can still activate signals; sharedPool is null for every other account.

Authentification et en-têtes

Toutes les routes demandent une clé d’API. Vous la créez dans le tableau de bord, sous Intégrations puis API. Voir comment obtenir une clé.

Authorization requis

Bearer suivi de votre clé d’API, par exemple Bearer USR_...

Réponses

200 OK
Schéma de la réponse
credits number requis

Credits held by this account itself.

exemple
1250.5
companyName string facultatif accepte null
exemple
"Acme"
sharedPool object facultatif accepte null

Set only for a client workspace that uses its agency's shared credits: it spends its own credits first, then the agency's, so credits at 0 does not mean it is out. Read poolHasCredits instead. null for every other account.

exemple
{
  "agencyName": "Growth Agency",
  "poolHasCredits": true,
  "type": "agency_pool"
}
3 champs dans sharedPool
type string facultatif

Always agency_pool.

par défaut
"agency_pool"
exemple
"agency_pool"
agencyName string facultatif accepte null

The agency account whose credits this workspace uses.

exemple
"Growth Agency"
poolHasCredits boolean requis

true while the agency's shared credits can still pay for this workspace's leads and calls. false once both this workspace's own credits and the agency's are used up.

exemple
true
429 Rate limit exceeded. Retry after the number of seconds in the Retry-After response header.