Skip to main content
Fetch all active spending policies on your account. A spending policy defines the guardrails — daily budgets, per-transaction caps, manual approval thresholds, allowed assets, allowed actions, and session lifetimes — that govern what an AI session is permitted to do. Use this endpoint to inspect your existing policies before attaching one to a new session, or to audit your current configuration.

List all policies

Endpoint

Authentication

All requests must include a valid bearer token in the Authorization header, or a pay3_session cookie obtained during wallet authentication.

Response

Returns an array of policy objects, ordered newest-first. Soft-deleted policies (isActive: false) are excluded.

Response fields

string
required
Unique UUID for this policy.
string
required
Display name you assigned when the policy was created.
string
required
The preset template this policy was created from. One of:
  • CONSERVATIVE — $100/day, $20/tx, approval above $15, 24-hour sessions
  • BALANCED — $500/day, $100/tx, approval above $250, 7-day sessions
  • DEFI — $1,000/day, $250/tx, approval above $500, 7-day sessions
  • CUSTOM — fully user-defined limits
string
required
Maximum total spend allowed per calendar day, in USD. Returned as a decimal string.
string
Optional monthly spend cap in USD as a decimal string. null if no monthly limit is configured.
string
required
Maximum amount allowed in a single transaction, in USD. Transactions exceeding this value are rejected outright.
string
required
Transactions above this USD amount (but at or below perTransactionMax) are sent to the approval queue rather than executed automatically.
number
required
How long sessions created with this policy remain active, in hours.
array
required
List of asset tickers the AI is permitted to transact with, e.g. ["USDC", "XLM"]. Transactions involving any other asset are rejected.
array
required
List of actions this policy permits the AI to perform. Possible values:
  • CHECK_BALANCE — read wallet and smart account balances
  • TRANSFER — send assets to a recipient
  • VIEW_TRANSACTION_HISTORY — list past transactions
array
required
Array of contact UUIDs from your Pay3 address book. When non-empty, the AI may only send funds to these contacts. An empty array means no recipient restriction is enforced.
number
Maximum number of transactions the AI may submit per minute under this policy. null if no rate limit is configured.
boolean
required
Whether this policy is currently active. Only active policies are returned by this endpoint.
string
required
ISO 8601 timestamp when the policy was created.
string
required
ISO 8601 timestamp when the policy was last modified.

Example request

Example response


Get a single policy

Retrieve one policy by its UUID. Useful when you need to verify the exact configuration before attaching the policy to a new AI session.

Endpoint

Authentication

Path parameters

string
required
The UUID of the policy to retrieve.

Response

Returns a single policy object with the same fields as the list response above. Returns 404 Not Found if the policy does not exist or does not belong to your account.

Error responses

Example request

Example response