Buy tokens for this key
buy_tokensBuy a token package for a key wallet (within remaining spend cap). Payment via saved method or human checkout; tokens arrive asynchronously—poll balance to confirm.
Instructions
Buy one token package for this key's wallet. Only works if the key was issued with purchasing enabled, and only up to what the key may still spend — a purchase cannot lift the key's own spend cap. The answer says charged when the payment provider took it from the saved payment method, or requires_human with a checkout_url a person has to open. Either way the tokens arrive asynchronously: poll get_balance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | Package id from list_token_packages, e.g. "600" |