> ## Documentation Index
> Fetch the complete documentation index at: https://docs.danubeai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Spending Limits

> Get the current user's USDC spending limit settings

## 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

<ResponseField name="id" type="string">
  Settings record UUID.
</ResponseField>

<ResponseField name="user_id" type="string">
  The user's UUID.
</ResponseField>

<ResponseField name="max_per_call_atomic" type="integer">
  Maximum USDC per tool call in atomic units (6 decimals). Default: 5,000,000 (\$5.00).
</ResponseField>

<ResponseField name="daily_limit_atomic" type="integer | null">
  Daily spending limit in atomic units. `null` means no daily limit.
</ResponseField>

<ResponseField name="created_at" type="string">
  ISO 8601 timestamp of when the settings were created.
</ResponseField>

<ResponseField name="updated_at" type="string">
  ISO 8601 timestamp of the last update.
</ResponseField>

## Example

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.danubeai.com/v1/x402/settings \
    -H "danube-api-key: dk_your_api_key"
  ```

  ```python Python SDK theme={null}
  from danube import DanubeClient

  client = DanubeClient(api_key="dk_...")
  # Access via direct API call
  import httpx
  resp = httpx.get(
      "https://api.danubeai.com/v1/x402/settings",
      headers={"danube-api-key": "dk_..."}
  )
  settings = resp.json()
  print(f"Max per call: ${settings['max_per_call_atomic'] / 1_000_000:.2f}")
  ```

  ```typescript TypeScript theme={null}
  const response = await fetch('https://api.danubeai.com/v1/x402/settings', {
    headers: { 'danube-api-key': 'dk_your_api_key' }
  });
  const settings = await response.json();
  console.log(`Max per call: $${(settings.max_per_call_atomic / 1_000_000).toFixed(2)}`);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "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"
  }
  ```
</ResponseExample>

## 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.
