curl --request GET \
--url https://api.rb2b.com/api/v1/credits \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.rb2b.com/api/v1/credits"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.rb2b.com/api/v1/credits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"credits_remaining": 1000
}{
"error": "missing_api_key"
}Credits
Returns the account’s remaining API credit balance.
Authenticates with the API key only; no per-service enablement or minimum credit balance is required. When the optional Api-Origin-Key header identifies a partner account, the endpoint instead returns a partner usage report aggregating API call counts across every account that shares the partner’s custom origin, over the start_date/end_date range (defaults: beginning of the current month through today). An unknown origin key returns 401 invalid_origin_key; a partner account without a configured custom origin returns 400 no_custom_origin_configured.
Billing: never billed; this endpoint does not consume credits.
curl --request GET \
--url https://api.rb2b.com/api/v1/credits \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.rb2b.com/api/v1/credits"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.rb2b.com/api/v1/credits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"credits_remaining": 1000
}{
"error": "missing_api_key"
}Authorizations
Per-account API key. Also accepted as Api-Key or Authorization: Bearer <key>.
Headers
Partner origin key. When present, switches the response to a partner usage report covering all accounts that share the partner's custom origin. Also accepted as X-Api-Origin-Key.
Query Parameters
Start of the partner usage report range (ISO 8601 date, e.g. 2026-06-01). Defaults to the beginning of the current month. Only used with Api-Origin-Key.
End of the partner usage report range (ISO 8601 date, e.g. 2026-06-10). Defaults to today. Only used with Api-Origin-Key.
Response
Credits returned
API credits currently remaining on the account. (When Api-Origin-Key is supplied, the body is a partner usage report instead: partner_origin, date_range, summary, and per-account accounts usage breakdowns.)
1000

