Get account balance

Get remaining credit balance before running large batches of metered tools — Get account balance.

GET/v1/balance
x-api-key*stringheader

API key (`sfk_...`)

Response fields
19

Endpoint-specific response payload.

databalance
integer

Spendable credits. Grace buffer counts only after included and PAYG credits are exhausted.

≥ 0

datapayg
integer

Total PAYG bucket, including pre-granted grace not yet spendable.

≥ 0

datapaygSpendable
integer

PAYG credits spendable before grace. Equals `payg` when not in grace.

≥ 0

datagraceDebtCredits
integer

Grace buffer for the current unpaid refill episode (0 if none). Excluded from `balance` until spendable credits are spent.

≥ 0

datarefillState
stringnullable

Auto-refill state: `healthy`, `grace`, or `exhausted`. Null when auto-refill is off.

one of: healthy, grace, exhausted, null

databillingAlert
string

Billing health: `none`, `payment_action_required`, or `suspended`. Check alongside `balance` for alerts.

one of: none, payment_action_required, suspended

datasubscriptionIncludedRemaining
integer

Included credits left this period (0 if not subscribed).

≥ 0

datasubscriptionIncludedTotal
integer

Included credits granted this period (0 if not subscribed).

≥ 0

Subscription summary, or `null` for PAYG-only callers.

datasubscriptiontier
string

Subscription tier (e.g. `starter`).

datasubscriptionstatus
string

Subscription status (e.g. `active`, `past_due`).

datasubscriptionperiodEnd
string

When the current included-credit period ends (ISO 8601).

datacollectionStatus
string

Subscription collection status.

one of: current, base_past_due, suspended

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

metacached
booleanoptional

True when served from shared response cache. Credits still apply (full endpoint price); Age header may be present.

Code example

curl "https://api.socialfetch.dev/v1/balance" \
  -H "x-api-key: YOUR_API_KEY"

Responses

OK