Wallet
Top up wallet (agent-paid)
Add money to the wallet, paid by the calling agent over the Machine Payments Protocol (MPP). The first call answers 402 with a payment challenge in WWW-Authenticate; retry with a Payment-Authorization credential to settle the charge and credit the wallet.
post/v1/wallet/top-up
Request
- Base URL: https://agent.tinyfish.ai
- URL: https://agent.tinyfish.ai/v1/wallet/top-up
- Auth: API key in header X-API-Key
Request body
Example request
{
"amount": "25.00"
}Response
Payment settled and wallet credited
Example response
{
"amount": "25.00",
"currency": "USD",
"payment_reference": "pi_3QxYz2Ab",
"ledger_entry_id": "wallet-grant:machine-payment:pi_3QxYz2Ab",
"available_balance": "31.44"
}Changes
No recorded changes to this operation across all 1 revision of this API.