SBC

SBC API

SBC API as documented publicly: 28 operations. Contract generated from the documentation by API Evangelist (2026-10-26); not the provider's own document.

Operations 28

POST / POST / #
POST /api/agents/{id}/swap sbc swap calls Agent Payments ( POST /api/agents/:id/swap ) and settles via Better Intents RFQ. #
GET /api/agents/me Agent login resolves the agent ID, chain, wallet, and token from the API key via GET /api/agents/me. #
GET /api/base/balance Authentication #
GET /api/base/confirm Authentication #
GET /api/base/info Authentication #
POST /api/base/redeem Authentication #
GET /api/base/redeem/quote GET /api/base/redeem/quote #
POST /api/base/swap Authentication #
GET /api/capabilities Authentication #
GET /api/config Authentication #
GET /api/health Authentication #
GET /api/readiness Authentication #
GET /api/sol/balance GET /api/sol/balance #
GET /api/sol/confirm GET /api/sol/confirm #
GET /api/sol/info GET /api/sol/info #
GET /api/sol/recent GET /api/sol/recent #
POST /api/sol/redeem Authentication #
GET /api/sol/redeem/quote GET /api/sol/redeem/quote #
POST /api/sol/swap Authentication #
POST /api/xchain/evm-origin/open/build POST /api/xchain/evm-origin/open/build #
POST /api/xchain/sol-origin/open/build POST /api/xchain/sol-origin/open/build #
GET /api/xchain/status/{orderid} GET /api/xchain/status/:orderId #
GET /health GET /health #
GET /premium GET /premium #
POST /settle Executes the on-chain transfer. #
GET /supported GET /supported #
POST /verify Verifies a payment payload without executing it on-chain. #

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/sbc:sbc-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

sbc-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: SBC API
  version: '2026-10-26'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-26: 28 operation(s) read from 8 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; SBC has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 5
    documentation: 23
    pages-with-code: 5
    pages-read: 8
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-26'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.stablecoin.xyz/x402/sdk
  - https://docs.stablecoin.xyz/x402/facilitator
  - https://docs.stablecoin.xyz/cli/overview
  - https://docs.stablecoin.xyz/x402/overview
  - https://docs.stablecoin.xyz/swap/authentication
  - https://docs.stablecoin.xyz/swap/quotes
  - https://docs.stablecoin.xyz/swap/same-chain
  - https://docs.stablecoin.xyz/swap/cross-chain
servers:
- url: https://swap.stablecoin.xyz
paths:
  /:
    post:
      operationId: post
      tags:
      - Api
      summary: POST /
      x-source: https://docs.stablecoin.xyz/swap/authentication
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST .../api/base/swap  -H 'content-type: application/json'  -H \"x-api-key: $SBC_API_KEY \"  -d '{ \"user\": \"0xYourAddress\"\
          , \"uiAmount\": \"25\", ... }' \n const SWAP_API = 'https://swap.stablecoin.xyz' \n const res = await fetch ( `${SWAP_API}/api/base/swap`\
          \ , { \n method: 'POST' , \n headers: { \n 'content-type' : 'application/json' , \n 'x-api-key' : process.env. SBC_API_KEY ! , \n },\
          \ \n body: JSON "
  /api/agents/{id}/swap:
    post:
      operationId: post_api_agents_id_swap
      tags:
      - Api
      summary: sbc swap calls Agent Payments ( POST /api/agents/:id/swap ) and settles via Better Intents RFQ.
      x-source: https://docs.stablecoin.xyz/cli/overview
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/agents/me:
    get:
      operationId: get_api_agents_me
      tags:
      - Api
      summary: Agent login resolves the agent ID, chain, wallet, and token from the API key via GET /api/agents/me.
      x-source: https://docs.stablecoin.xyz/cli/overview
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/base/balance:
    get:
      operationId: get_api_base_balance
      tags:
      - Api
      summary: Authentication
      description: Read‑only balance endpoint; no authentication required.
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/base/confirm:
    get:
      operationId: get_api_base_confirm
      tags:
      - Api
      summary: Authentication
      description: Read‑only confirmation endpoint; no authentication required.
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/base/info:
    get:
      operationId: get_api_base_info
      tags:
      - Api
      summary: Authentication
      description: Read‑only base info endpoint; no authentication required.
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/base/redeem:
    post:
      operationId: post_api_base_redeem
      tags:
      - Api
      summary: Authentication
      description: Authenticated redeem request; requires x-api-key header.
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/base/redeem/quote:
    get:
      operationId: get_api_base_redeem_quote
      tags:
      - Api
      summary: GET /api/base/redeem/quote
      x-source: https://docs.stablecoin.xyz/swap/authentication
      parameters:
      - name: amount
        in: query
        required: false
        schema:
          type: string
      - name: in
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiBaseRedeemQuoteResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -H \"x-api-key: $SBC_API_KEY \"  \"https://swap.stablecoin.xyz/api/base/redeem/quote?in=SBC&amount=1\" \n A 200 with a\
          \ quote body means the key is live. Under enforcement, a bad key returns: \n { \"error\" : \"missing or invalid x-api-key\" , \"code\"\
          \ : \"UNAUTHORIZED\" } \n with HTTP 401 . During the soft launch you'll get the quote either way, so this check confirms the route,\
          \ not yet the key. \n Which rou"
  /api/base/swap:
    post:
      operationId: post_api_base_swap
      tags:
      - Api
      summary: Authentication
      description: Authenticated swap request; requires x-api-key header.
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/capabilities:
    get:
      operationId: get_api_capabilities
      tags:
      - Api
      summary: Authentication
      description: Read‑only discovery of API capabilities; no authentication required.
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/config:
    get:
      operationId: get_api_config
      tags:
      - Api
      summary: Authentication
      description: Read‑only configuration endpoint; no authentication required.
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/health:
    get:
      operationId: get_api_health
      tags:
      - Api
      summary: Authentication
      description: Read‑only health check; no authentication required.
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/readiness:
    get:
      operationId: get_api_readiness
      tags:
      - Api
      summary: Authentication
      description: Read‑only readiness probe; no authentication required.
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/sol/balance:
    get:
      operationId: get_api_sol_balance
      tags:
      - Api
      summary: GET /api/sol/balance
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/sol/confirm:
    get:
      operationId: get_api_sol_confirm
      tags:
      - Api
      summary: GET /api/sol/confirm
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/sol/info:
    get:
      operationId: get_api_sol_info
      tags:
      - Api
      summary: GET /api/sol/info
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/sol/recent:
    get:
      operationId: get_api_sol_recent
      tags:
      - Api
      summary: GET /api/sol/recent
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/sol/redeem:
    post:
      operationId: post_api_sol_redeem
      tags:
      - Api
      summary: Authentication
      description: Authenticated Solana redeem request; requires x-api-key header.
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/sol/redeem/quote:
    get:
      operationId: get_api_sol_redeem_quote
      tags:
      - Api
      summary: GET /api/sol/redeem/quote
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/sol/swap:
    post:
      operationId: post_api_sol_swap
      tags:
      - Api
      summary: Authentication
      description: Authenticated Solana swap request; requires x-api-key header.
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/xchain/evm-origin/open/build:
    post:
      operationId: post_api_xchain_evm_origin_open_build
      tags:
      - Api
      summary: POST /api/xchain/evm-origin/open/build
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/xchain/sol-origin/open/build:
    post:
      operationId: post_api_xchain_sol_origin_open_build
      tags:
      - Api
      summary: POST /api/xchain/sol-origin/open/build
      x-source: https://docs.stablecoin.xyz/swap/authentication
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/xchain/status/{orderid}:
    get:
      operationId: get_api_xchain_status_orderid
      tags:
      - Api
      summary: GET /api/xchain/status/:orderId
      x-source: https://docs.stablecoin.xyz/swap/authentication
      parameters:
      - name: orderid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /health:
    get:
      operationId: get_health
      tags:
      - Health
      summary: GET /health
      x-source: https://docs.stablecoin.xyz/x402/facilitator
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl https://x402.stablecoin.xyz/health '
  /premium:
    get:
      operationId: get_premium
      tags:
      - Premium
      summary: GET /premium
      x-source: https://docs.stablecoin.xyz/x402/sdk
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: javascript
        snippet: fetch ( 'https://api.example.com/premium' )
  /settle:
    post:
      operationId: post_settle
      tags:
      - Settle
      summary: Executes the on-chain transfer.
      x-source: https://docs.stablecoin.xyz/x402/facilitator
      parameters:
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
        description: API key for mainnet.
      - name: Content-Type
        in: header
        required: true
        schema:
          type: string
        description: application/json
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostSettleRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostSettleResponse'
      x-evidence:
        kind: documentation
  /supported:
    get:
      operationId: get_supported
      tags:
      - Supported
      summary: GET /supported
      x-source: https://docs.stablecoin.xyz/x402/facilitator
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSupportedResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://x402.stablecoin.xyz/supported \n kinds is an array of objects — one entry per network, asset, and x402 version.\
          \ Both x402 v1 and v2 are advertised: v2 entries carry a CAIP-2 network , v1 entries carry the legacy network name. \n { \n \"kinds\"\
          \ : [ \n { \n \"x402Version\" : 2 , \n \"scheme\" : \"exact\" , \n \"network\" : \"eip155:8453\" , \n \"extra\" : { \n \"assetTransferMethod\"\
          \ : \"erc2612\" , \n \"name\" : \"S"
  /verify:
    post:
      operationId: post_verify
      tags:
      - Verify
      summary: Verifies a payment payload without executing it on-chain.
      x-source: https://docs.stablecoin.xyz/x402/facilitator
      parameters:
      - name: X-API-Key
        in: header
        required: false
        schema:
          type: string
        description: API key for mainnet.
      - name: Content-Type
        in: header
        required: true
        schema:
          type: string
        description: application/json
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostVerifyRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostVerifyResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    PostRequest:
      type: object
      properties:
        user:
          type: string
        uiAmount:
          type: string
    PostResponse:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
    GetApiBaseRedeemQuoteResponse:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
    PostSettleRequest:
      type: object
      properties:
        paymentPayload:
          type: object
          description: The x402 payment payload.
        paymentRequirements:
          type: object
          description: Requirements the payment must satisfy.
      required:
      - paymentPayload
      - paymentRequirements
    PostSettleResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the settlement succeeded.
        transaction:
          type: string
          description: Transaction hash of the on-chain transfer.
        network:
          type: string
          description: Network identifier.
        payer:
          type: string
          description: Address of the payer.
    GetSupportedResponse:
      type: object
      properties:
        isValid:
          type: boolean
        payer:
          type: string
        invalidReason:
          type:
          - string
          - 'null'
    PostVerifyRequest:
      type: object
      properties:
        paymentPayload:
          type: object
          description: The x402 payment payload.
        paymentRequirements:
          type: object
          description: Requirements the payment must satisfy.
      required:
      - paymentPayload
      - paymentRequirements
    PostVerifyResponse:
      type: object
      properties:
        isValid:
          type: boolean
          description: Whether the payment is valid.
        payer:
          type: string
          description: Address of the payer.
        invalidReason:
          type: string
          description: Reason for invalidity, if any.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
security:
- apiKey: []
tags:
- name: Api
- name: Health
- name: Premium
- name: Settle
- name: Supported
- name: Verify