Programmable wallets for AI agents. Create wallets, enforce budgets, and track spending.
Create an API key to authenticate your requests. The key will be prefixed with tvpk_.
Create a wallet for your agent with a budget limit. The balance starts at $0.
Make a purchase from the wallet. Transactions are rejected if they exceed the remaining budget.
Get current balance, total spent, and remaining budget.
All wallet endpoints require authentication via the X-Trove-Key header. API keys are prefixed with tvpk_.
Generate a new API key. The key is returned once — save it immediately.
| Parameter | Type | Description |
|---|---|---|
| name required | string | A name to identify this key (e.g., "production", "staging") |
Create a new wallet for an agent with a budget limit.
| Parameter | Type | Description |
|---|---|---|
| agent_id required | string | Unique identifier for the agent (e.g., "research-bot") |
| name required | string | Human-readable name for the wallet |
| budget_limit_usd required | number | Maximum amount the agent can spend (USD) |
Execute a purchase from the wallet. Returns 402 if insufficient funds.
| Parameter | Type | Description |
|---|---|---|
| :id path | integer | Wallet ID |
| amount_usd required | number | Amount to charge (positive number) |
| description | string | Optional description of the purchase |
| vendor | string | Optional vendor name (e.g., "twilio", "openai") |
Get current balance, total spent, remaining budget, and transaction count.
| Parameter | Type | Description |
|---|---|---|
| :id path | integer | Wallet ID |
Get paginated transaction history for a wallet.
| Parameter | Type | Description |
|---|---|---|
| :id path | integer | Wallet ID |
| page | query | Page number (default: 1) |
| limit | query | Items per page (default: 20, max: 100) |
| Code | Status | Description |
|---|---|---|
| 400 | Bad Request | Missing or invalid parameters. Check the message for details. |
| 401 | Unauthorized | Missing or invalid X-Trove-Key header. |
| 402 | Payment Required | Insufficient funds. The purchase amount exceeds remaining budget. |
| 404 | Not Found | Wallet not found. Check the wallet ID. |
| 500 | Server Error | Internal error. Try again later. |