Credits

The API is metered in credits, not in requests. Reads are free. Anything that calls a search provider, a scraper or a model costs credits, and the charge happens when the work is queued, not when it succeeds.

What each call costs

Read the prices from GET /me, not from this table. The costs object on that response comes from the same configuration the charge does, so it cannot disagree with what you are billed. The table below is for reading; the endpoint is for coding against.

Call costs key Credits
POST /website-analyses website_analysis 2
POST /leads/{id}/enrich lead_enrich 1
POST /leads/{id}/analyze lead_analysis 2
POST /leads/{id}/draft draft_regenerate 1
POST /searches search_result_enriched 2 per result found
POST /searches with "enrich": false search_result_basic 1 per result found

"enrich": false is the half-price mode. You get the businesses — name, address, phone, website, rating — and nothing we would have had to work out: no email discovery, no WhatsApp check, no opportunity score, no matched service and no drafted email. Worth it when you qualify leads yourself. It is one switch over all of that, not a way to skip only the analysis, and a workspace needs no business profile to use it. See Serving your own customers.

costs also carries profile_polish, which only the dashboard can trigger. Ignore keys you have no endpoint for.

Every other endpoint on the public surface is free. All GETs are free, and so are PUT /leads/{id} and both deletes.

A search is the other call whose cost is not fixed, and it works the same way: its ceiling is the limit you asked for, so the most one costs is 2 x limit. A search that finds nothing costs nothing.

Scheduled searches — radars — are a dashboard feature and are not reachable with an API key, so nothing you can call has a cost beyond the table above. See Serving your own customers.

Reading the balance

curl -s "$BASE/me" -H "Authorization: Bearer $LEADCUBS_TOKEN"
"credits": { "total": 50, "monthly": 0, "bonus": 50, "monthly_allowance": 150, "resets_at": null }

Spend against total. The two pools behave differently and spending draws from monthly first:

  • monthly is the plan allowance. It resets every month and does not carry over. 15 on Free, 150 on Pro, 750 on Team.
  • bonus is bought credits. It never expires.

Running out

A call you cannot afford returns 402 and does nothing. Nothing is queued and nothing is charged.

HTTP 402
{
  "message": "Not enough credits. This costs 2 and you have 1.",
  "credits_required": 2,
  "credits_available": 1
}

Both numbers are fields, not just words in the sentence, so you never have to parse the message. credits_required - credits_available is exactly how short you are.

Every metered endpoint answers this way, including POST /searches, where credits_required is the whole batch you asked for rather than one result.

Credits cannot be bought through the API. Billing is closed to tokens (Authentication), so a 402 is resolved by a person in the dashboard.

Spending carefully

  • Check before you spend, in bulk. One /me call before a batch of 200 analyses is one request; 200 402s are 200.
  • Use a read-only token for anything that does not need to spend. A reporting job with a read token cannot charge the account even if it has a bug in a loop.
  • Do not retry a charge blindly. The charge lands when the work is queued, so a retry after a timeout can charge twice. See Errors.