Skip to main content
POST
Pay with the saved card

Authorizations

Authorization
string
header
required

An API key from Settings → API keys, sent as Authorization: Bearer kb_live_…. A workspace key starts kb_; a personal key starts kbp_ and acts as its owner.

Headers

Idempotency-Key
string
required

A unique key (a UUID works) for this request. Retrying with the same key returns the first answer instead of running twice.

Maximum string length: 255
Kallabot-Version
enum<string>

The API version to answer as, a date (YYYY-MM-DD). Leave it out for the current version (2026-11-07). An unknown version is refused with 400 unsupported_api_version.

Available options:
2026-11-07
Example:

"2026-11-07"

Body

application/json
kind
string
required
Allowed value: "topup"
amount
integer
required

The credit to buy, minor units of the workspace currency, between the top-up minimum and maximum ($10 to $5,000). Bonus credit is added on top.

Required range: 1 <= x <= 100000000

Response

Successful Response

payment_intent_id
string | null
required
status
enum<string>
required
Available options:
succeeded,
authorized,
requires_action,
processing,
failed,
canceled
amount
integer
required
currency
string
required
client_secret
string | null

Only when requires_action: finish it with Stripe.js handleNextAction.

error
string | null

Why the card was declined, in the bank's words.