Skip to main content
PUT

Overview

Updates the user’s x402 spending limit configuration. Controls how much USDC can be spent on paid tool executions per call and per day. The platform enforces a hard cap of $5.00 (5,000,000 atomic units) per tool call. The max_per_call_atomic cannot exceed this value. Authentication: Requires JWT token or API key.

Body Parameters

integer
Maximum USDC per tool call in atomic units (6 decimals). Must be between 0 and 5,000,000. Default: 5,000,000 ($5.00).
integer | null
Daily spending limit in atomic units. Set to null to remove the daily limit. Must be >= 0.

Response

string
Settings record UUID.
string
The user’s UUID.
integer
Updated maximum USDC per tool call in atomic units.
integer | null
Updated daily spending limit in atomic units.
string
ISO 8601 timestamp.
string
ISO 8601 timestamp of the update.

Example

MCP Tool

When using the Danube MCP Server, use the update_spending_limits tool:
The MCP tool accepts human-readable USDC values (e.g., 2.0 = $2.00) and converts to atomic units internally. Set daily_limit_usdc to 0 to remove the daily limit.