Skip to main content
GET
/
v1
/
x402
/
settings
curl -X GET https://api.danubeai.com/v1/x402/settings \
  -H "danube-api-key: dk_your_api_key"
{
  "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

id
string
Settings record UUID.
user_id
string
The user’s UUID.
max_per_call_atomic
integer
Maximum USDC per tool call in atomic units (6 decimals). Default: 5,000,000 ($5.00).
daily_limit_atomic
integer | null
Daily spending limit in atomic units. null means no daily limit.
created_at
string
ISO 8601 timestamp of when the settings were created.
updated_at
string
ISO 8601 timestamp of the last update.

Example

curl -X GET https://api.danubeai.com/v1/x402/settings \
  -H "danube-api-key: dk_your_api_key"
{
  "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 the get_spending_limits tool:
get_spending_limits()
Returns max_per_call_usdc and daily_limit_usdc in human-readable USDC amounts.