Billing
Get a buy-credits link
Returns a URL the agent hands to a human to buy prepaid credits. With billing configured this is a real Stripe hosted-Checkout session (provider: "stripe") for the selected pack; credits are available seconds after the human completes payment. Falls back to a dashboard billing deep link (provider: "dashboard") on deployments without Stripe. A human must complete the payment either way.
get/v1/billing/upgrade-link
Request
- Base URLhttps://api.talonic.com
- AuthHTTP bearer
Query parameters
pack, '10' | '50' | '250' | '1000'
Credit pack to check out (see GET /v1/billing/packs).
Response
Buy-credits link.
object required
url, string uri required
provider, string required
'stripe' (hosted Checkout session) or 'dashboard' (deep link fallback).
requires_human, boolean required
pack, object
The selected pack (stripe provider only).
message, string
Example response
{
"url": "https://checkout.stripe.com/c/pay/cs_test_...",
"provider": "stripe"
}Changes
No recorded changes to this operation across all 32 revisions of this API.