CLIENT API / V1 COMPANY CREDITS & USAGE

Read the company credit balance

GET/company/creditsbilling:read

Read the company credit balance. Only explicitly granted sites and permissions are accessible. No credentials or raw worker payloads are returned. Requires explicitly delegated company-wide billing:read; business-unit-restricted integrations are rejected. No date filters or credit mutations are supported.

RequestGET https://satelliteai.io/api/v1/company/credits
Permissionbilling:read
ResponseA single object: data is CompanyCreditsData.
Operation IDgetCompanyCredits

More context and worked examples are in the developer guide.

Example request

cURL · Bash
curl --fail-with-body \
  'https://satelliteai.io/api/v1/company/credits' \
  -H "Authorization: Bearer $SATELLITE_API_KEY"

Replace the example IDs with values returned by the discovery endpoints. Example values are placeholders, not real records.

Parameters

No parameters. Send only the Authorization header.

Unknown or repeated query parameters return 400.

Data dictionary

Scoped result. Lists return pagination metadata; unavailable records return 404. Company balance. available_addon_credits sums currently active, positive, unexpired add-ons; available_credits adds max(base_credits_remaining, 0). addon_credits_remaining is the stored balance field. Period timestamps may omit a UTC suffix; as_of uses UTC Z.

[] marks an array element. nullable means the value can be null; treat it as unknown, not zero. always present means the key is always included in the object.

Fields in data
FieldTypeDescription
data.company_idintegernullableCompany id.
data.base_credits_remainingintegernullableBase credits remaining.
data.addon_credits_remainingintegernullableAddon credits remaining.
data.base_credit_allocationintegernullableBase credit allocation.
data.available_addon_creditsintegernullableAvailable addon credits.
data.available_creditsintegernullableAvailable credits.
data.current_period_startstringnullableCurrent period start.
data.current_period_endstringnullableCurrent period end.
data.last_reset_atstringnullableLast reset at.
data.as_ofstringnullableAs of.

Response metadata

Fields in meta
FieldTypeDescription
meta.request_idstringalways presentRequest identifier; also returned in X-Request-ID. Include it in support requests.
meta.api_versionstringalways presentAPI version that produced the response.
one of: v1
meta.limitintegerMaximum records per page applied to this request.
min 1 · max 100
meta.has_morebooleanTrue when another page is available.
meta.next_cursorstringnullableOpaque cursor for the next page; send as cursor. Null on the last page.
meta.availabilitystringavailable when stored data exists; not_available when it does not.
one of: available, not_available
meta.billingobjectPresent for paid live SERP requests; replayed receipts describe the original debit, not an additional charge.
meta.billing.operationstringalways present
one of: client_api_serp_refresh
meta.billing.credits_chargedintegeralways present
min 0
meta.billing.transaction_idintegeralways present
meta.billing.replayedbooleanalways present

Error responses

Errors return {"error": {"code", "message", "request_id"}}. See error handling for retry guidance.

HTTPWhen
400Invalid parameters
401Invalid credentials
403Missing permission
404Missing or inaccessible resource