Create a customer
create_customerCreate a customer
Creates a customer (201): a group of keys with its own monthly limit, balance record and usage. With an externalRef that already exists, returns that one with 200 instead, so a signup webhook can be retried safely. Its usage is debited directly from your balance at our price, so its keys work without any credit. With billingMode limit, or a spendLimitUsd sent alone, spendLimitUsd caps its monthly usage (PATCH sets it for any customer). initialCreditUsd only records a payment for your books. Amounts are at our price. At most 10,000 customers per account: past it, 409 limit_reached.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "create_customer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| No | |||
| billingMode | No | prepaid | |
| externalRef | No | Your own id. Creating a customer with an externalRef that already exists returns that one (200) instead of a new one, so a signup webhook can be retried safely. | |
| spendLimitUsd | No | billingMode limit only: monthly spending cap at our price. PATCH sets it for any customer. | |
| idempotencyKey | No | Optional. A unique string so that repeating this call never creates twice. | |
| initialCreditUsd | No | billingMode prepaid only: a payment to record as the opening balanceUsd. Not needed for its keys to work. 0, or from 0.00000001 to less than 1,000,000. |