curl -X GET https://api.danubeai.com/v1/x402/settings \
-H "danube-api-key: YOUR_API_KEY"
from danube import DanubeClient
client = DanubeClient(api_key="YOUR_API_KEY")
limits = client.wallet.get_spending_limits()
print(f"Max per call: ${limits.max_per_call_atomic / 1_000_000:.2f}")
const response = await fetch('https://api.danubeai.com/v1/x402/settings', {
headers: { 'danube-api-key': 'YOUR_API_KEY' }
});
const settings = await response.json();
console.log(`Max per call: $${(settings.max_per_call_atomic / 1_000_000).toFixed(2)}`);
{
"id": "abc123",
"user_id": "user-uuid",
"max_per_call_atomic": 5000000,
"daily_limit_atomic": null,
"created_at": "2026-02-01T00:00:00Z",
"updated_at": "2026-02-01T00:00:00Z"
}
Wallet
Get Spending Limits
Get the current user’s USDC spending limit settings
GET
/
v1
/
x402
/
settings
curl -X GET https://api.danubeai.com/v1/x402/settings \
-H "danube-api-key: YOUR_API_KEY"
from danube import DanubeClient
client = DanubeClient(api_key="YOUR_API_KEY")
limits = client.wallet.get_spending_limits()
print(f"Max per call: ${limits.max_per_call_atomic / 1_000_000:.2f}")
const response = await fetch('https://api.danubeai.com/v1/x402/settings', {
headers: { 'danube-api-key': 'YOUR_API_KEY' }
});
const settings = await response.json();
console.log(`Max per call: $${(settings.max_per_call_atomic / 1_000_000).toFixed(2)}`);
{
"id": "abc123",
"user_id": "user-uuid",
"max_per_call_atomic": 5000000,
"daily_limit_atomic": null,
"created_at": "2026-02-01T00:00:00Z",
"updated_at": "2026-02-01T00:00:00Z"
}
Overview
Returns the user’s x402 spending limit configuration, including per-call maximum and optional daily spending cap. These limits control how much USDC can be spent on paid tool executions. The platform enforces a hard cap of $5.00 (5,000,000 atomic units) per tool call regardless of user settings. Authentication: Requires JWT token or API key.Response
Example
curl -X GET https://api.danubeai.com/v1/x402/settings \
-H "danube-api-key: YOUR_API_KEY"
from danube import DanubeClient
client = DanubeClient(api_key="YOUR_API_KEY")
limits = client.wallet.get_spending_limits()
print(f"Max per call: ${limits.max_per_call_atomic / 1_000_000:.2f}")
const response = await fetch('https://api.danubeai.com/v1/x402/settings', {
headers: { 'danube-api-key': 'YOUR_API_KEY' }
});
const settings = await response.json();
console.log(`Max per call: $${(settings.max_per_call_atomic / 1_000_000).toFixed(2)}`);
{
"id": "abc123",
"user_id": "user-uuid",
"max_per_call_atomic": 5000000,
"daily_limit_atomic": null,
"created_at": "2026-02-01T00:00:00Z",
"updated_at": "2026-02-01T00:00:00Z"
}
MCP Tool
When using the Danube MCP Server, use theget_spending_limits tool:
get_spending_limits()
max_per_call_usdc and daily_limit_usdc in human-readable USDC amounts.