API v3 is live and in beta: expect possible malfunctions and breaking changes in the coming days. If you find a bug, please report it to your Sillage contact.

Get your credit pool

Check how many credits your credit pool can still spend, and when the next credits expire.

Returns your billing model and, when you are billed from a prepaid credit pool, how many credits the pool can spend right now and when the next credits expire. One pool pays for all your client workspaces. Use it before an action that spends credits, or to confirm that Sillage has added credits to your pool. To see where credits went, read the usage.

If you are invoiced instead of using a prepaid pool, billing_model is unlimited and available_credits and next_expiry_at are null. This is expected, not an error: your usage is invoiced to you and never refused for lack of credits.

Route

GET/api/v3/partner/credits/balance

Example request

curl "https://api.getsillage.com/api/v3/partner/credits/balance" \
  -H "Authorization: Bearer $SILLAGE_MASTER_KEY"

Success response

Status: 200 OK

{
  "data": {
    "billing_model": "prepaid",
    "available_credits": 12500,
    "next_expiry_at": "2026-12-01T00:00:00.000Z"
  }
}

Response fields

FieldTypeDescription
data.billing_modelstringHow you are billed: unlimited (usage is invoiced to you) or prepaid (usage is paid from your credit pool). New values may be added; ignore values you don't know.
data.available_creditsinteger or nullCredits your pool can spend right now, across all your client workspaces. 0 when you are prepaid and no credits have been added yet. null when billing_model is unlimited.
data.next_expiry_atstring or nullWhen the next credits of your pool expire, in ISO 8601. null when no credits of your pool expire, and when billing_model is unlimited.

When your pool cannot pay for an action, launching a signal run and enriching a lead are refused with 402 (insufficient_credits) until Sillage adds credits to your pool. Account monitoring is never refused: the accounts the pool cannot pay for stay subscribed but unpaid (not_covered), and are paid once the pool has credits. A keyword, competitor or Discovery detection run that is already running stops at the first detection the pool cannot pay for and finishes partially. A content request the pool cannot pay for fails with insufficient_credits.

Errors

StatusMeaning
401The master key is missing or invalid.
422A query parameter is sent: this route takes none, and errors names the parameter.
429Rate limit exceeded.
500An unexpected server error occurred.

Error responses use RFC 9457 problem documents with Content-Type: application/problem+json. type is always about:blank; code tells one problem from another, detail says what went wrong this time, and errors names the field at fault.

On this page