U.CASH Subagents API

Owner-only: delegate scoped sa_ API keys with a limited RBAC role (create/list/update/rotate/delete)

GitHub OpenAPI

Operations 4

GET /v1/subagents List the agent subagents (scoped sa_ API keys; never returns the api_key). #
POST /v1/subagents Create a subagent with a limited role (or custom permissions). #
PUT /v1/subagents Update a subagent role/permissions/store_scope/status/display_name. #
DELETE /v1/subagents Delete a subagent (its key stops authenticating; the seat slot frees). #

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-subagents-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-subagents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: agents.u.cash Subagents 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: Subagents
  description: 'Owner-only: delegate scoped sa_ API keys with a limited RBAC role (create/list/update/rotate/delete)'
paths:
  /v1/subagents:
    get:
      tags:
      - Subagents
      summary: List the agent subagents (scoped sa_ API keys; never returns the api_key).
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{subagents:[{id,role,role_name,permissions,store_scope,status,display_name,created_at}], balance, prices, slots_free}'
      operationId: getV1Subagents
      x-operation-id-source: derived
    post:
      tags:
      - Subagents
      summary: Create a subagent with a limited role (or custom permissions).
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - role
              properties:
                role:
                  type: string
                  description: clerk|teller|lead|supervisor|manager|director|officer|admin|master-admin|accountant|auditor|designer|custom
                permissions:
                  type: array
                  items:
                    type: string
                  description: custom-role capability slugs (e.g. transactions.view, checkouts.edit, payment-links.create)
                role_name:
                  type: string
                display_name:
                  type: string
                store_scope:
                  type: array
                  items:
                    type: integer
                  description: restrict to these store ids (empty = all)
      responses:
        '200':
          description: '{api_key, subagent, seat_fee, slot, new_balance}'
        '402':
          description: uxc_insufficient_balance
      operationId: postV1Subagents
      x-operation-id-source: derived
    put:
      tags:
      - Subagents
      summary: Update a subagent role/permissions/store_scope/status/display_name.
      security:
      - ApiKey: []
      parameters:
      - name: subagent_id
        in: query
        required: true
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                role:
                  type: string
                permissions:
                  type: array
                  items:
                    type: string
                role_name:
                  type: string
                display_name:
                  type: string
                store_scope:
                  type: array
                  items:
                    type: integer
                status:
                  type: string
                  enum:
                  - active
                  - suspended
      responses:
        '200':
          description: '{subagent, seat_fee}'
      operationId: putV1Subagents
      x-operation-id-source: derived
    delete:
      tags:
      - Subagents
      summary: Delete a subagent (its key stops authenticating; the seat slot frees).
      security:
      - ApiKey: []
      parameters:
      - name: subagent_id
        in: query
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: '{deleted, id}'
      operationId: deleteV1Subagents
      x-operation-id-source: derived
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: The api_key from POST /v1/signup.