U.CASH Account API

Signup, activation, wallets, webhook, settlement log

GitHub OpenAPI

Operations 39

POST /v1/signup Register an agent account (returns the api_key immediately; usable at $0; email… #
POST /v1/top-up Create a credit top-up checkout (>= $1; adds platform credit; email… #
GET /v1/agent Account snapshot: activation, balance, wallets, webhook URL, earnings summary #
POST /v1/agent Set the settlement webhook URL {webhook_url} #
GET /v1/me Alias of /v1/agent (account snapshot) #
GET /v1/account Alias of /v1/agent (account snapshot) #
GET /v1/webhooks Webhook discoverability alias (canonical surface is /v1/webhook) #
GET /v1/webhook Read the settlement webhook (masked): {url, has_secret, secret_last4}. #
POST /v1/webhook Set the webhook URL (auto-generates the HMAC secret on first set, shown once)… #
DELETE /v1/webhook Clear the webhook URL. settings.edit capability for a subagent key. #
GET /v1/wallets Your receive addresses {wallets{asset:address}} #
POST /v1/wallets Set the agent's own receive address for an asset (where buyer funds land… #
PUT /v1/wallets Toggle a coin on/off (?asset=, body {active:true|false}) without losing its… #
DELETE /v1/wallets Remove a coin receive address (?asset=); the coin stops being accepted until… #
GET /v1/stripe Masked Stripe config + the webhook endpoint to register #
POST /v1/stripe Connect the agent's OWN Stripe account (card rail); verifies the key + product… #
DELETE /v1/stripe Disconnect Stripe (disables card payments). #
GET /v1/custom-tokens List the agent custom tokens #
POST /v1/custom-tokens Add a custom token (ERC-20/TRC-20/SPL/TON Jetton/Robinhood-20/Arc-20); then… #
DELETE /v1/custom-tokens Remove a custom token by code. settings.edit capability for a subagent key #
GET /v1/settings The agent safe settings: confirmations policy (default + per-coin +… #
PUT /v1/settings Partially update the agent safe settings (any subset). #
GET /v1/settlements The agent's earnings log (settled + underpaid resource payments) #
GET /v1/integrations Read third-party integration credentials you have stored (Discord, Telegram… #
PUT /v1/integrations Write third-party integration credentials. #
POST /v1/account-email OWNER KEY ONLY (an sa_ subagent key gets 403 uxc_forbidden). #
POST /v1/reset-password OWNER KEY ONLY (an sa_ subagent key gets 403 uxc_forbidden). #
POST /v1/resend-verification Resend the email verification link (3-day expiry for agents; no-op if already… #
GET /v1/sandbox-keys List the account's self-provisioned sandbox (sk_test_/pk_test_) keys. #
POST /v1/sandbox-keys Create a sandbox key {kind: secret (sk_test_) | publishable (pk_test_), label?}. #
DELETE /v1/sandbox-keys Revoke a sandbox key ?key_id=N (401s immediately; never deleted - audit trail) #
POST /v1/exact-relay Manage the exact relayer for instant, gasless USDC-on-Base settlement (ON by… #
GET /v1/account-info Alias of /v1/agent (account snapshot) #
GET /v1/transactions Full transaction history with filters (type, status, asset, store_id, date… #
POST /v1/transactions Per-transaction actions: ?transaction_id=N&action=refund (needs a… #
GET /v1/payout-info List payout-info requests (type-4: merchant-mediated fiatcrypto/OTC payouts) #
POST /v1/payout-info Request payout info -> {transaction_id, link}. #
GET /v1/billing Balances + lander slot pack status: {credit_balance, ucash_points, lander_slots} #
POST /v1/billing Actions: {action:"buy-lander-pack", qty} (debits credit) or… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/u-cash:u-cash-account-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

u-cash-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: agents.u.cash Account API
  version: 0.7.3
  description: 'Agent + merchant product surface for the 402 Online Protocol - multi-coin, non-custodial HTTP-402 payments. Two-sided: sell (get paid to your own wallet) and buy (pay for resources). UCP (ucp.dev) discovery + multi-item mixed-currency checkout sessions + AP2 mandates + RFC 9421-signed responses. Live reference implementation; protocol spec at https://402.onl. INPUT CONTRACTS (all authenticated writes): unknown keys are rejected with 400 uxc_unknown_param listing the Allowed keys; wrong shapes are rejected with 400 uxc_invalid_request naming the field and expected shape; booleans must be true/false (or "true"/"false"); updates are true partials (unsent fields keep their values). Supported assets (grouped; the engine master list): Bitcoin (BTC, +Lightning), Ethereum (ETH), Solana (SOL), Tron (TRX), XRP, Dogecoin (DOGE), Litecoin (LTC), Bitcoin Cash (BCH), Algorand (ALGO), Monero (XMR), Polkadot (DOT), Stellar (XLM), Tezos (XTZ), Polygon (POL), Avalanche (AVAX), BNB Chain (BNB), Toncoin (TON); Base, Arbitrum, Optimism, Linea, Mantle, Berachain, Sonic, Unichain, World, Monad, Plasma, Abstract, Scroll, Ink, Hyperliquid (native gas + ETH-bridged), Robinhood Chain (native gas + ALL 194 issuer-listed tokenized-asset rails; featured set in pickers, u.cash/tokenized-assets for the full list), Arc (Circle L2, native USDC gas); USDT (Ethereum / BSC / Tron), USDC (Ethereum / native on Arc), and USDC-on-Base (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) - the x402 gasless rail; UCASH (Ethereum ERC-20, 0x92e52a1A235d9A103D970901066CE910AAceFD37) - also the non-withdrawable fee-credit unit; Any ERC-20 / BEP-20 / Base-20 / Polygon-20 / Arb-20 / Op-20 / Avax-20 / Linea / Mantle / Sonic / Bera / ... / TRC-20 / SPL / TON Jetton / Robinhood-20 / Arc-20 added via POST /v1/custom-tokens (auto-detected on-chain like any coin)'
  contact:
    url: https://github.com/UdotCash/agents
servers:
- url: https://agents.u.cash
  description: agents.u.cash
tags:
- name: Account
  description: Signup, activation, wallets, webhook, settlement log
paths:
  /v1/signup:
    post:
      tags:
      - Account
      summary: Register an agent account (returns the api_key immediately; usable at $0; email…
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Signup'
      responses:
        '200':
          description: '{api_key, activated, next}'
        '400':
          description: validation error
      operationId: postV1Signup
      x-operation-id-source: derived
  /v1/top-up:
    post:
      tags:
      - Account
      summary: Create a credit top-up checkout (>= $1; adds platform credit; email…
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                amount:
                  type: number
                  minimum: 1
      responses:
        '200':
          description: '{url, amount, activated, next}'
      operationId: postV1TopUp
      x-operation-id-source: derived
  /v1/agent:
    get:
      tags:
      - Account
      summary: 'Account snapshot: activation, balance, wallets, webhook URL, earnings summary'
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{email, activated, primary_wallet, credit_balance, webhook_url, wallets, settlements_count, total_earned}'
      operationId: getV1Agent
      x-operation-id-source: derived
    post:
      tags:
      - Account
      summary: Set the settlement webhook URL {webhook_url}
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                webhook_url:
                  type: string
      responses:
        '200':
          description: '{webhook_url}'
      operationId: postV1Agent
      x-operation-id-source: derived
  /v1/me:
    get:
      tags:
      - Account
      summary: Alias of /v1/agent (account snapshot)
      security:
      - ApiKey: []
      responses:
        '200':
          description: same as /v1/agent
      operationId: getV1Me
      x-operation-id-source: derived
  /v1/account:
    get:
      tags:
      - Account
      summary: Alias of /v1/agent (account snapshot)
      security:
      - ApiKey: []
      responses:
        '200':
          description: same as /v1/agent
      operationId: getV1Account
      x-operation-id-source: derived
  /v1/webhooks:
    get:
      tags:
      - Account
      summary: Webhook discoverability alias (canonical surface is /v1/webhook)
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{webhook_url, how_to_set, rotate_secret}'
      operationId: getV1Webhooks
      x-operation-id-source: derived
  /v1/webhook:
    get:
      tags:
      - Account
      summary: 'Read the settlement webhook (masked): {url, has_secret, secret_last4}.'
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{url, has_secret, secret_last4}'
      operationId: getV1Webhook
      x-operation-id-source: derived
    post:
      tags:
      - Account
      summary: Set the webhook URL (auto-generates the HMAC secret on first set, shown once)…
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  format: uri
                rotate_secret:
                  type: boolean
      responses:
        '200':
          description: '{url, secret}'
        '403':
          description: uxc_forbidden (subagent key without settings.edit) | uxc_sandbox_key_rejected (sandbox key)
      operationId: postV1Webhook
      x-operation-id-source: derived
    delete:
      tags:
      - Account
      summary: Clear the webhook URL. settings.edit capability for a subagent key.
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{url:'''', cleared:true}'
        '403':
          description: uxc_forbidden (subagent key without settings.edit) | uxc_sandbox_key_rejected (sandbox key)
      operationId: deleteV1Webhook
      x-operation-id-source: derived
  /v1/wallets:
    get:
      tags:
      - Account
      summary: Your receive addresses {wallets{asset:address}}
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{wallets:{asset:address}}'
      operationId: getV1Wallets
      x-operation-id-source: derived
    post:
      tags:
      - Account
      summary: Set the agent's own receive address for an asset (where buyer funds land…
      security:
      - ApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Wallet'
      responses:
        '200':
          description: '{asset, address}'
        '400':
          description: uxc_unknown_asset | uxc_bad_address
      operationId: postV1Wallets
      x-operation-id-source: derived
    put:
      tags:
      - Account
      summary: Toggle a coin on/off (?asset=, body {active:true|false}) without losing its…
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{asset, active}'
        '400':
          description: uxc_unknown_asset | uxc_invalid_request
      operationId: putV1Wallets
      x-operation-id-source: derived
    delete:
      tags:
      - Account
      summary: Remove a coin receive address (?asset=); the coin stops being accepted until…
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{asset, deleted:true}'
        '400':
          description: uxc_unknown_asset | uxc_invalid_request
      operationId: deleteV1Wallets
      x-operation-id-source: derived
  /v1/stripe:
    get:
      tags:
      - Account
      summary: Masked Stripe config + the webhook endpoint to register
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{configured, active, mode, secret_key(masked), product_id, webhook_secret(masked), publishable_key, webhook_endpoint, webhook_events}'
      operationId: getV1Stripe
      x-operation-id-source: derived
    post:
      tags:
      - Account
      summary: Connect the agent's OWN Stripe account (card rail); verifies the key + product…
      security:
      - ApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Stripe'
      responses:
        '200':
          description: masked config + webhook_endpoint
        '400':
          description: uxc_invalid_request | uxc_stripe_invalid
        '403':
          description: uxc_forbidden (subagent key without payments.processors.edit)
      operationId: postV1Stripe
      x-operation-id-source: derived
    delete:
      tags:
      - Account
      summary: Disconnect Stripe (disables card payments).
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{configured:false, cleared:true}'
        '403':
          description: uxc_forbidden (subagent key without payments.processors.edit)
      operationId: deleteV1Stripe
      x-operation-id-source: derived
  /v1/custom-tokens:
    get:
      tags:
      - Account
      summary: List the agent custom tokens
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{custom_tokens:[{code,type,network,name,contract_address,decimals}]}'
      operationId: getV1CustomTokens
      x-operation-id-source: derived
    post:
      tags:
      - Account
      summary: Add a custom token (ERC-20/TRC-20/SPL/TON Jetton/Robinhood-20/Arc-20); then…
      security:
      - ApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - type
              - code
              - contract_address
              - decimals
              - name
              properties:
                type:
                  type: string
                  enum:
                  - erc-20
                  - bep-20
                  - base-20
                  - polygon-20
                  - arb-20
                  - op-20
                  - avax-20
                  - trc-20
                  - spl
                  - ton-jetton
                  - robinhood-20
                  - arc-20
                code:
                  type: string
                contract_address:
                  type: string
                decimals:
                  type: integer
                  minimum: 0
                  maximum: 36
                name:
                  type: string
                rate:
                  type: string
                rate_url:
                  type: string
                  description: 'live rate source: an https URL returning a price JSON, or the coingecko:<id> scheme (e.g. coingecko:nvidia-xstock; pattern ^coingecko:[a-z0-9][a-z0-9_-]{0,80}$) resolved server-side via CoinGecko'
                confirmations:
                  type: integer
                  minimum: 0
                  maximum: 200
                img:
                  type: string
                  format: uri
      responses:
        '200':
          description: the stored token
        '400':
          description: uxc_invalid_request | uxc_custom_token_exists
        '403':
          description: uxc_forbidden (subagent key without settings.edit)
      operationId: postV1CustomTokens
      x-operation-id-source: derived
    delete:
      tags:
      - Account
      summary: Remove a custom token by code. settings.edit capability for a subagent key
      security:
      - ApiKey: []
      parameters:
      - name: code
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: '{deleted, custom_tokens}'
        '404':
          description: uxc_not_found
        '403':
          description: uxc_forbidden (subagent key without settings.edit)
      operationId: deleteV1CustomTokens
      x-operation-id-source: derived
  /v1/settings:
    get:
      tags:
      - Account
      summary: 'The agent safe settings: confirmations policy (default + per-coin +…'
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{confirmations:{default,coins,increase}, webhook:{url,has_secret,secret_last4}, currency, address_reuse_cooldown, payment:{accept_underpayments,redirect}, notifications:{email}, branding:{brand_name,logo_url,logo_url_dark,color_1,color_2,color_3}}'
      operationId: getV1Settings
      x-operation-id-source: derived
    put:
      tags:
      - Account
      summary: Partially update the agent safe settings (any subset).
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                confirmations:
                  type: object
                webhook:
                  type: object
                currency:
                  type: string
                payment:
                  type: object
                notifications:
                  type: object
                branding:
                  type: object
                web3_names:
                  type: object
      responses:
        '200':
          description: the full updated shape
      operationId: putV1Settings
      x-operation-id-source: derived
  /v1/settlements:
    get:
      tags:
      - Account
      summary: The agent's earnings log (settled + underpaid resource payments)
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{settlements:[...]}'
      operationId: getV1Settlements
      x-operation-id-source: derived
  /v1/integrations:
    get:
      tags:
      - Account
      summary: Read third-party integration credentials you have stored (Discord, Telegram…
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{integrations:{discord?,telegram?,bigcommerce?,ecwid?,wix?}}'
        '403':
          description: uxc_forbidden (subagent key without settings.edit)
      operationId: getV1Integrations
      x-operation-id-source: derived
    put:
      tags:
      - Account
      summary: Write third-party integration credentials.
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                integrations:
                  type: object
      responses:
        '200':
          description: '{integrations:{...}}'
        '403':
          description: uxc_forbidden (subagent key without settings.edit)
      operationId: putV1Integrations
      x-operation-id-source: derived
  /v1/account-email:
    post:
      tags:
      - Account
      summary: OWNER KEY ONLY (an sa_ subagent key gets 403 uxc_forbidden).
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  format: email
      responses:
        '200':
          description: '{email, verification_required, next}'
        '403':
          description: uxc_forbidden when authenticated with a subagent key
      operationId: postV1AccountEmail
      x-operation-id-source: derived
  /v1/reset-password:
    post:
      tags:
      - Account
      summary: OWNER KEY ONLY (an sa_ subagent key gets 403 uxc_forbidden).
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                new_password:
                  type: string
                  minLength: 8
      responses:
        '200':
          description: '{reset:true}'
        '403':
          description: uxc_forbidden when authenticated with a subagent key
      operationId: postV1ResetPassword
      x-operation-id-source: derived
  /v1/resend-verification:
    post:
      tags:
      - Account
      summary: Resend the email verification link (3-day expiry for agents; no-op if already…
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{sent, next}'
      operationId: postV1ResendVerification
      x-operation-id-source: derived
  /v1/sandbox-keys:
    get:
      tags:
      - Account
      summary: List the account's self-provisioned sandbox (sk_test_/pk_test_) keys.
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{keys:[{id, kind, mode, label, key_hint, status, created_at, revoked_at, last_used_at}]}'
      operationId: getV1SandboxKeys
      x-operation-id-source: derived
    post:
      tags:
      - Account
      summary: 'Create a sandbox key {kind: secret (sk_test_) | publishable (pk_test_), label?}.'
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                  - secret
                  - publishable
                  default: secret
                label:
                  type: string
                  maxLength: 64
      responses:
        '200':
          description: '{api_key (shown once), kind, key_hint}'
      operationId: postV1SandboxKeys
      x-operation-id-source: derived
    delete:
      tags:
      - Account
      summary: Revoke a sandbox key ?key_id=N (401s immediately; never deleted - audit trail)
      security:
      - ApiKey: []
      parameters:
      - name: key_id
        in: query
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: '{revoked:true, id}'
        '404':
          description: sandbox key not found
      operationId: deleteV1SandboxKeys
      x-operation-id-source: derived
  /v1/exact-relay:
    post:
      tags:
      - Account
      summary: Manage the exact relayer for instant, gasless USDC-on-Base settlement (ON by…
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: integer
                  description: 1 = gasless (default), 0 = opt out (buyer-pays-gas)
                private_key:
                  type: string
                  description: ignored (relayer is platform-managed)
      responses:
        '200':
          description: masked relay config
        '403':
          description: uxc_forbidden (subagent key without settings.edit)
      operationId: postV1ExactRelay
      x-operation-id-source: derived
  /v1/account-info:
    get:
      tags:
      - Account
      summary: Alias of /v1/agent (account snapshot)
      security:
      - ApiKey: []
      responses:
        '200':
          description: same as /v1/agent
      operationId: getV1AccountInfo
      x-operation-id-source: derived
  /v1/transactions:
    get:
      tags:
      - Account
      summary: Full transaction history with filters (type, status, asset, store_id, date…
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{transactions:[...], pagination:{total,limit,offset}} | {transaction:{...}} | {webhook_log:[...]} | CSV bytes'
      operationId: getV1Transactions
      x-operation-id-source: derived
    post:
      tags:
      - Account
      summary: 'Per-transaction actions: ?transaction_id=N&action=refund (needs a…'
      security:
      - ApiKey: []
      parameters:
      - name: transaction_id
        in: query
        required: true
        schema:
          type: integer
      - name: action
        in: query
        required: true
        schema:
          type: string
          enum:
          - refund
          - resend-webhook
          - submit-hash
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                hash:
                  type: string
      responses:
        '200':
          description: '{refunded:true} | {resent:true, webhook_response} | {submitted:true, tx_hash}'
        '400':
          description: state guard errors (e.g. refunds-not-enabled, no webhook configured)
      operationId: postV1Transactions
      x-operation-id-source: derived
  /v1/payout-info:
    get:
      tags:
      - Account
      summary: 'List payout-info requests (type-4: merchant-mediated fiatcrypto/OTC payouts)'
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{requests:[...]}'
      operationId: getV1PayoutInfo
      x-operation-id-source: derived
    post:
      tags:
      - Account
      summary: Request payout info -> {transaction_id, link}.
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                payout_asset:
                  type: string
                details:
                  type: string
      responses:
        '200':
          description: '{transaction_id, link} | {completed:true, id}'
      operationId: postV1PayoutInfo
      x-operation-id-source: derived
  /v1/billing:
    get:
      tags:
      - Account
      summary: 'Balances + lander slot pack status: {credit_balance, ucash_points, lander_slots}'
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{credit_balance, ucash_points, lander_slots:{...}}'
      operationId: getV1Billing
      x-operation-id-source: derived
    post:
      tags:
      - Account
      summary: 'Actions: {action:"buy-lander-pack", qty} (debits credit) or…'
      security:
      - ApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - action
              properties:
                action:
                  type: string
                  enum:
                  - buy-lander-pack
                  - redeem-ucash
                qty:
                  type: integer
                amount:
                  type: number
      responses:
        '200':
          description: the updated balances
        '402':
          description: uxc_insufficient_balance
      operationId: postV1Billing
      x-operation-id-source: derived
components:
  schemas:
    Wallet:
      type: object
      required:
      - asset
      - address
      properties:
        asset:
          type: string
          description: cryptocurrency code, e.g. btc, eth, sol, trx, usdt, usdc, ucash, usdc_base (the x402 gasless rail); or a custom-token code you added via /v1/custom-tokens
        address:
          type: string
    Signup:
      type: object
      required:
      - email
      - password
      properties:
        email:
          type: string
          format: email
        password:
          type: string
          minLength: 8
        primary_wallet:
          type: string
        agreed_to_terms:
          type: boolean
          description: Send true to agree to the Terms of Service (https://u.cash/legal/terms). An explicit false is rejected; omitted is treated as agreed for backward compatibility.
    Stripe:
      type: object
      required:
      - secret_key
      - product_id
      - webhook_secret
      description: Your own Stripe account keys - enables the card (redirect) rail. Verified against Stripe before storing; secrets are never returned in full.
      properties:
        secret_key:
          type: string
          description: sk_live_... or sk_test_...
        product_id:
          type: string
          description: a one-time product id (prod_...)
        webhook_secret:
          type: string
          description: whsec_... from registering the webhook endpoint
        publishable_key:
          type: string
          description: optional pk_live_... or pk_test_...
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: The api_key from POST /v1/signup.