Skip to main content
POST
Check Campaign Balance (Beta)
Add balance first (Billing), then call it with the bulk_list_id from upload status. When the response’s status is draft, start calls again with the same bulk_list_id; there is no need to upload the list again. If the balance is still short, status stays insufficient_balance and the response gives required_credits and additional_balance_required. A campaign in another status, or with no contacts or agent, returns 400. Get all campaigns runs the same check on every insufficient_balance campaign it lists.

Authorizations

X-API-KEY
string
header
required

Headers

X-API-KEY
string
required

(Required) Your Ringg AI API key.

Example:

"rg_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Path Parameters

bulk_list_id
string
required

Bulk list ID to re-check.

Response

Balance checked. status is draft when the campaign can start, or still insufficient_balance.

status
enum<string>
Available options:
draft,
insufficient_balance
message
string
bulk_list_id
string

When status is draft.

total_callees
integer

When status is draft: valid contacts in the campaign.

required_credits
number

When status is insufficient_balance: estimated cost of the campaign.

additional_balance_required
number

When status is insufficient_balance: how much more balance is needed.