Get Credit Balance
Your organisation's spendable credit balance, and what an enrichment costs it.
Call this before a batch to size it: remaining_credits divided by the cost of the shape you intend to request is how many contacts you can enrich before POST /v1/contacts/{contact_id}/enrich starts returning 402.
The costs are a worst case, not an invoice. They are the maximum one contact can be charged for that shape — the figure the credit gate checks against before accepting an enrichment. What you are actually billed is what the provider *returned*: ask for email and phone, get only an email back, and you are charged for the email alone. So a batch priced off this endpoint over-reserves rather than under-reserves. Treat the quote as a ceiling and read each job's credits_charged for the real figure.
Email and phone are independently priced outcomes, which is why enrichment_cost_email_and_phone is simply their sum; there is no combined-shape discount to discover.
remaining_credits includes credits rolled over from earlier billing cycles, and can be negative — a settled charge can land against a balance another call had already exhausted. Negative means every enrichment will 402 until credits are added.
Neither figure is a reservation. Two of your own concurrent enrichments are each checked against the same balance, so a balance that covers one call does not guarantee it covers both. Re-read this endpoint rather than caching it across a long-running batch; pricing is org-specific and can change.
Requires the credit_balance:read scope. Errors: 403 missing that scope.
curl -X GET "https://api.handshaik.com/v1/credits/balance" \
-H "Authorization: Bearer $HANDSHAIK_PUBLIC_API_KEY"Authorization
AuthorizationstringheaderrequiredOAuth2 client_credentials (M2M). Request a token with the
audienceset tohttps://api.handshaik.com.Handshaik's own first-party apps, such as the Chrome extension, instead sign a Handshaik user in with the authorization code flow and PKCE, with the same
audience. Such a token acts as that user, within their organisation. Partner integrations use client_credentials.
Response
Successful Response
remaining_creditsstringrequiredSpendable balance, including credits rolled over from earlier billing cycles. This is the figure that decides whether the next enrichment is accepted or returns 402. It can be negative if a settled charge landed against an exhausted balance.
enrichment_cost_emailstringrequiredCredits one contact costs when enriched for email only
enrichment_cost_phonestringrequiredCredits one contact costs when enriched for phone only
enrichment_cost_email_and_phonestringrequiredCredits one contact costs when enriched for both email and phone. Email and phone are independently priced outcomes, so this is their sum — there is no combined-shape discount.
{
"remaining_credits": "string",
"enrichment_cost_email": "string",
"enrichment_cost_phone": "string",
"enrichment_cost_email_and_phone": "string"
}