Skip to main content
POST
Start a payment

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
purpose
enum<string>
required

subscription: the Brokerage plan (a first one starts its free trial with no card and no payment form); topup: credit with a new card (amount); addon: an add-on with a new card; setup: add a card.

Available options:
subscription,
topup,
addon,
setup
plan
string | null
Allowed value: "brokerage"
interval
enum<string> | null
Available options:
month,
year
sku
string | null

The add-on, for addon.

Maximum string length: 40
amount
integer | null

For topup: the credit to buy, minor units of the workspace currency, between the top-up minimum and maximum. Bonus credit is added on top.

Required range: 1 <= x <= 100000000
currency
enum<string> | null

Set the workspace's billing currency first (refused once it is locked).

Available options:
usd,
aed,
gbp
make_default
boolean
default:false

For setup: the new card becomes the default.

return_url
string | null

Where a payment that has to leave the page comes back to (defaults to the app's /billing/confirm).

Maximum string length: 2000

Response

Successful Response

client_secret
string | null
required

For Stripe.js initCheckoutElementsSdk / the Payment Element.

session_id
string | null
required
currency
string
required
amount
integer | null
trial
boolean
default:false

A free trial was started; nothing to pay, no form to show.

subscription_id
string | null
status
string | null