Get Credit Pricing
What one action you can spend credits on through this API costs your organisation.
The action keys are email_enrichment and phone_enrichment (contact enrichment, per email or phone found) and credit_report.purchase (buying a company's credit report). The price is the one that action charges your organisation, including any price agreed for your organisation.
Unlike filtering GET /v1/credits/pricing by ?action_keys=, which returns an empty array for an unknown key, this returns 404 โ so a missing price can't be mistaken for a free action.
Requires the credit_balance:read scope. Errors: 403 missing that scope ยท 404 unknown action (anything not listed above), or one with no price in force for your organisation.
curl -X GET "https://api.handshaik.com/v1/credits/pricing/credit_report.purchase" \
-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.
Parameters
action_keystringpathrequiredThe action to price, e.g.
credit_report.purchase
Response
Successful Response
action_keystringrequiredThe chargeable action, e.g.
credit_report.purchase. Stable: it is the key the charge is recorded againstcredit_coststringrequiredCredits one unit of this action costs your organisation โ the figure it is charged, including any price agreed for your organisation
pricing_modelstringrequiredHow
credit_costis applied, e.g.fixed: that many credits per unitunit_namestring | nullWhat one unit of the action is, e.g.
contact; null when it has nonefeature_keystringrequiredKey of the product feature the action belongs to
feature_namestringrequiredDisplay name of the product feature
{
"action_key": "string",
"credit_cost": "string",
"pricing_model": "string",
"unit_name": "string",
"feature_key": "string",
"feature_name": "string"
}