U.CASH Storefront API

Read/edit the agent's own storefront (Shop Page): chrome, free-canvas layout, custom templates, image assets

GitHub OpenAPI

Operations 23

GET /v1/site Read the agent's storefront (Shop Page): shop-* chrome values, free-canvas… #
PUT /v1/site Update the storefront chrome (shop-* only, merged) and/or the free-canvas… #
POST /v1/site Create a custom template (?resource=templates {name, base_template?… #
DELETE /v1/site Delete a custom template: ?resource=templates&id=N. #
GET /v1/checkouts List shop products (the checkout items a buyer sees), or fetch one… #
POST /v1/checkouts Create a shop product: title, price, asset, description, etc. #
PUT /v1/checkouts Update a product (?checkout_id=N). #
DELETE /v1/checkouts Delete a product (?checkout_id=N) #
GET /v1/stores List stores (multi-store). Subagents may list even without manage rights #
POST /v1/stores Create a store {label, webhook_url} -> returns its api_key + cloud_token +… #
PUT /v1/stores Update a store (?store_id=N) label/webhook_url/status #
DELETE /v1/stores Delete a store (?store_id=N). Owner-only #
GET /v1/landers List landing pages, fetch one (?lander_id=N), or its inbound offers… #
POST /v1/landers Turn an is_lander=1 checkout into a landing page {checkout_id, tpl?: spotlight}. #
PUT /v1/landers Update a lander (?lander_id=N), or set an offer status… #
DELETE /v1/landers Delete a lander (?lander_id=N); frees its slot #
GET /v1/discount-codes List discount codes (multiplier codes, e.g. 0.8 = 20% off) #
POST /v1/discount-codes Add a code {code, multiplier, ...} #
PUT /v1/discount-codes Bulk-replace codes with an array body (import/export workflow) #
DELETE /v1/discount-codes Remove a code (?code=) #
GET /v1/custom-fields List checkout custom form fields (text/checkbox/textarea/select) #
POST /v1/custom-fields Add a custom field {type, label, options?, required?} #
DELETE /v1/custom-fields Remove a field (?index=N) #

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-storefront-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-storefront-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: agents.u.cash Storefront 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: Storefront
  description: 'Read/edit the agent''s own storefront (Shop Page): chrome, free-canvas layout, custom templates, image assets'
paths:
  /v1/site:
    get:
      tags:
      - Storefront
      summary: 'Read the agent''s storefront (Shop Page): shop-* chrome values, free-canvas…'
      security:
      - ApiKey: []
      parameters:
      - name: resource
        in: query
        schema:
          type: string
      - name: id
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: '{site:{values, template, themes, layouts, layout, style_vars}} | {templates:[...]} | {template:{...}}'
      operationId: getV1Site
      x-operation-id-source: derived
    put:
      tags:
      - Storefront
      summary: Update the storefront chrome (shop-* only, merged) and/or the free-canvas…
      security:
      - ApiKey: []
      parameters:
      - name: resource
        in: query
        schema:
          type: string
      - name: id
        in: query
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                chrome:
                  type: object
                  additionalProperties: true
                layout:
                  type: object
      responses:
        '200':
          description: '{saved:true}'
        '403':
          description: uxc_forbidden (subagent key without design.edit)
      operationId: putV1Site
      x-operation-id-source: derived
    post:
      tags:
      - Storefront
      summary: Create a custom template (?resource=templates {name, base_template?…
      security:
      - ApiKey: []
      parameters:
      - name: resource
        in: query
        schema:
          type: string
      - name: action
        in: query
        schema:
          type: string
      - name: id
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: '{id, saved:true} | {applied:true} | {url}'
        '403':
          description: uxc_forbidden (subagent key without design.edit)
      operationId: postV1Site
      x-operation-id-source: derived
    delete:
      tags:
      - Storefront
      summary: 'Delete a custom template: ?resource=templates&id=N.'
      security:
      - ApiKey: []
      parameters:
      - name: resource
        in: query
        schema:
          type: string
      - name: id
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: '{deleted:true}'
        '403':
          description: uxc_forbidden (subagent key without design.edit)
      operationId: deleteV1Site
      x-operation-id-source: derived
  /v1/checkouts:
    get:
      tags:
      - Storefront
      summary: List shop products (the checkout items a buyer sees), or fetch one…
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{checkouts:[...]} | {checkout:{...}}'
      operationId: getV1Checkouts
      x-operation-id-source: derived
    post:
      tags:
      - Storefront
      summary: 'Create a shop product: title, price, asset, description, etc.'
      security:
      - ApiKey: []
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
          maxLength: 128
        description: 'retry-safe create: the same key + body replays the original response (Idempotency-Replayed: true) instead of duplicating'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - title
              - price
              properties:
                title:
                  type: string
                price:
                  type: number
                currency:
                  type: string
                asset:
                  type: string
                description:
                  type: string
      responses:
        '200':
          description: '{checkout:{...}}'
      operationId: postV1Checkouts
      x-operation-id-source: derived
    put:
      tags:
      - Storefront
      summary: Update a product (?checkout_id=N).
      security:
      - ApiKey: []
      parameters:
      - name: checkout_id
        in: query
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: '{checkout:{...}}'
        '409':
          description: version mismatch
      operationId: putV1Checkouts
      x-operation-id-source: derived
    delete:
      tags:
      - Storefront
      summary: Delete a product (?checkout_id=N)
      security:
      - ApiKey: []
      parameters:
      - name: checkout_id
        in: query
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: '{deleted:true, id}'
      operationId: deleteV1Checkouts
      x-operation-id-source: derived
  /v1/stores:
    get:
      tags:
      - Storefront
      summary: List stores (multi-store). Subagents may list even without manage rights
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{stores:[...]}'
      operationId: getV1Stores
      x-operation-id-source: derived
    post:
      tags:
      - Storefront
      summary: Create a store {label, webhook_url} -> returns its api_key + cloud_token +…
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                label:
                  type: string
                webhook_url:
                  type: string
                  format: uri
      responses:
        '200':
          description: '{store:{...}} | {api_key, cloud_token, webhook_secret} | {test:{...}}'
      operationId: postV1Stores
      x-operation-id-source: derived
    put:
      tags:
      - Storefront
      summary: Update a store (?store_id=N) label/webhook_url/status
      security:
      - ApiKey: []
      parameters:
      - name: store_id
        in: query
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: '{store:{...}}'
      operationId: putV1Stores
      x-operation-id-source: derived
    delete:
      tags:
      - Storefront
      summary: Delete a store (?store_id=N). Owner-only
      security:
      - ApiKey: []
      parameters:
      - name: store_id
        in: query
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: '{deleted:true, id}'
      operationId: deleteV1Stores
      x-operation-id-source: derived
  /v1/landers:
    get:
      tags:
      - Storefront
      summary: List landing pages, fetch one (?lander_id=N), or its inbound offers…
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{landers:[...]} | {lander:{...}} | {offers:[...]}'
      operationId: getV1Landers
      x-operation-id-source: derived
    post:
      tags:
      - Storefront
      summary: 'Turn an is_lander=1 checkout into a landing page {checkout_id, tpl?: spotlight}.'
      security:
      - ApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - checkout_id
              properties:
                checkout_id:
                  type: integer
                  description: a checkout created with is_lander=1 (POST /v1/checkouts)
                tpl:
                  type: string
      responses:
        '200':
          description: '{lander_id}'
        '402':
          description: no-free-lander-slots (buy a pack via /v1/billing)
        '404':
          description: checkout is not a lander
      operationId: postV1Landers
      x-operation-id-source: derived
    put:
      tags:
      - Storefront
      summary: Update a lander (?lander_id=N), or set an offer status…
      security:
      - ApiKey: []
      parameters:
      - name: lander_id
        in: query
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: '{updated:true, id} | {updated:true, offer_id}'
      operationId: putV1Landers
      x-operation-id-source: derived
    delete:
      tags:
      - Storefront
      summary: Delete a lander (?lander_id=N); frees its slot
      security:
      - ApiKey: []
      parameters:
      - name: lander_id
        in: query
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: '{deleted:true, id}'
      operationId: deleteV1Landers
      x-operation-id-source: derived
  /v1/discount-codes:
    get:
      tags:
      - Storefront
      summary: List discount codes (multiplier codes, e.g. 0.8 = 20% off)
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{discount_codes:[...]}'
      operationId: getV1DiscountCodes
      x-operation-id-source: derived
    post:
      tags:
      - Storefront
      summary: Add a code {code, multiplier, ...}
      security:
      - ApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - code
              - multiplier
              properties:
                code:
                  type: string
                multiplier:
                  type: number
                  minimum: 0
                  maximum: 1
      responses:
        '200':
          description: '{discount_codes:[...], added:{code}}'
      operationId: postV1DiscountCodes
      x-operation-id-source: derived
    put:
      tags:
      - Storefront
      summary: Bulk-replace codes with an array body (import/export workflow)
      security:
      - ApiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                codes:
                  type: array
      responses:
        '200':
          description: '{discount_codes:[...], replaced:N}'
      operationId: putV1DiscountCodes
      x-operation-id-source: derived
    delete:
      tags:
      - Storefront
      summary: Remove a code (?code=)
      security:
      - ApiKey: []
      parameters:
      - name: code
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: '{removed, discount_codes}'
      operationId: deleteV1DiscountCodes
      x-operation-id-source: derived
  /v1/custom-fields:
    get:
      tags:
      - Storefront
      summary: List checkout custom form fields (text/checkbox/textarea/select)
      security:
      - ApiKey: []
      responses:
        '200':
          description: '{custom_fields:[...]}'
      operationId: getV1CustomFields
      x-operation-id-source: derived
    post:
      tags:
      - Storefront
      summary: Add a custom field {type, label, options?, required?}
      security:
      - ApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - type
              - label
              properties:
                type:
                  type: string
                  enum:
                  - text
                  - checkbox
                  - textarea
                  - select
                label:
                  type: string
                options:
                  type: array
                  items:
                    type: string
                required:
                  type: boolean
      responses:
        '200':
          description: '{custom_fields:[...], added:true}'
      operationId: postV1CustomFields
      x-operation-id-source: derived
    delete:
      tags:
      - Storefront
      summary: Remove a field (?index=N)
      security:
      - ApiKey: []
      parameters:
      - name: index
        in: query
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: '{custom_fields:[...], removed_index}'
      operationId: deleteV1CustomFields
      x-operation-id-source: derived
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: The api_key from POST /v1/signup.