Skip to navigation

Wallets

Customer-funded wallets that AI agents spend from, within the limits and approval rules you control.

View as Markdown

Wallets allow your customers to delegate payments to their AI agents without sharing cards, bank details or account credentials. Each wallet belongs to one of your customers, who funds it, while you determine how it may be used. The customer’s agent can then pay from the wallet whenever a task requires payment, always within the limits set on it and subject to approval for anything above them.

Wallets are available when Give agents a wallet is enabled for your agent service, and are managed under Customers and Wallets in the Agents area of the Mitu dashboard or through the API.

What wallets provide

  1. Ownership stays with the customer
    Funds in a wallet belong to the customer at all times. The agent receives only the ability to pay within the limits set.
  2. Control stays with you
    You issue wallets, set their limits and decide which payments require approval, so spending always follows your rules.
  3. Separation by purpose
    A customer can hold several wallets, such as Travel and Office, each with its own balance and limits, so one purpose never draws on the funds of another.

Issuing and managing a wallet

1

Issue the wallet

Issue a wallet to an existing customer, created in the dashboard, through the API or when they first sign in with your OAuth. Name the wallet after its purpose so that both the customer and their agent know when to use it.

curl --request POST \
--url https://api.mitu.ai/v1/customers/cus_ds9hazr8jd3l/wallets \
--header "x-api-key: $MITU_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"name": "Travel",
"limits": { "per_payment": 500, "monthly": 3000, "approve_above": 750 }
}'
2

Let the customer fund it

Each wallet has a deposit address on every supported network, which you present to the customer. Wallets accept USDC only, and deposits become available as soon as they are confirmed.

GET /v1/wallets/{id}/addresses
3

Set its limits

Limits define how far an agent may act on its own. Any limit left unset is inherited from the customer’s existing limits, and a limit set to zero is removed.

LimitWhat it controls
per_paymentThe largest single payment the agent can make.
sessionThe most the agent can spend in one session, currently each clock hour in UTC.
dailyThe most the wallet can spend in a day, in UTC.
monthlyThe most the wallet can spend in a calendar month, in UTC.
approve_aboveThe amount above which every payment waits for approval.

Limits can be changed at any time through the wallet’s spending policy, and current usage shows how much remains before each limit resets.

PATCH /v1/wallets/{id}/policies/{policyId}
GET /v1/wallets/{id}/policies/usage
4

Handle approvals

A payment that exceeds a limit is not refused. It waits for approval and appears under Awaiting approval, and your systems are notified through events. Present the payment to your customer, confirm their identity in the way your product already does, and record their decision.

POST /v1/approvals/{id}/approve
POST /v1/approvals/{id}/reject

Approving does not move money by itself. The agent’s next attempt completes the payment, only for the payee and amount that were approved, and an approval that is not answered within 30 minutes lapses with nobody charged.

5

Freeze a wallet when necessary

Freezing stops all spending from a wallet immediately, while deposits continue to arrive and its limits are preserved. Frozen wallets appear as blocked in the dashboard. Unfreeze the wallet to allow spending again.

POST /v1/wallets/{id}/freeze
POST /v1/wallets/{id}/unfreeze

Wallet states

StateMeaning
ActiveThe wallet can be funded and spent from within its limits.
Awaiting approvalAt least one payment is waiting for the customer’s decision.
BlockedThe wallet is frozen. Deposits are accepted, but nothing can be spent.

Security considerations

  1. Confirm the customer for every approval
    Use your own strongest form of confirmation, such as a passcode or biometrics, before recording an approval.
  2. Set limits by purpose
    Give each wallet limits that reflect how it will be used, rather than one generous limit for everything.
  3. Freeze first, investigate second
    If activity on a wallet looks unexpected, freeze it immediately. Deposits are unaffected, and spending can resume once the matter is resolved.

Wallets give your customers a safe way to let their agents act for them financially. The customer always owns the funds, your business sets the rules, and the agent receives exactly the authority it needs to complete the task and nothing more.