Swop API

Swop API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-26); not the provider's own document.

GitHub OpenAPI

Operations 21

GET /api/v5/identity/lookup GET /api/v5/identity/lookup #
GET /api/v5/identity/resolve GET /api/v5/identity/resolve #
POST /api/v5/merchant/embed-token POST /api/v5/merchant/embed-token #
GET /api/v5/merchant/locations GET /api/v5/merchant/locations #
GET /api/v5/merchant/locations/{id} Read your physical locations and the tap-to-pay terminals at each one. #
GET /api/v5/merchant/locations/{id}/terminals Read your physical locations and the tap-to-pay terminals at each one. #
GET /api/v5/merchant/me GET /api/v5/merchant/me #
GET /api/v5/merchant/orders GET /api/v5/merchant/orders #
GET /api/v5/merchant/products GET /api/v5/merchant/products #
POST /checkout-intents Create a checkout from a cart #
GET /checkout-intents/{intentid} Read a checkout and its status #
POST /embed-token Mint a token to frame checkout on a registered site #
GET /healthz Health #
GET /locations List your physical locations #
GET /locations/{id} Read one location #
GET /locations/{id}/terminals List tap-to-pay terminals at a location #
GET /lookup Look up an exact swop.id #
GET /me Check a key and see what it can do right now #
GET /orders List your sales #
GET /products List your products #
GET /resolve Search by handle or name #

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/swopme-co:swopme-co-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

swopme-co-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Swop API
  version: '2026-11-26'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-26: 21 operation(s) read from 10 public documentation page(s) (each
    operation names its page in x-source). This is not the provider''s published contract; Swop has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 9
    documentation: 12
    pages-with-code: 6
    pages-read: 10
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-26'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.swopme.co/mcp/endpoints
  - https://docs.swopme.co/identity/identity-api
  - https://docs.swopme.co/api-reference
  - https://docs.swopme.co/api-reference/me
  - https://docs.swopme.co/docs/api-reference
  - https://docs.swopme.co/api-reference/embed
  - https://docs.swopme.co/api-reference/errors
  - https://docs.swopme.co/api-reference/orders
  - https://docs.swopme.co/api-reference/products
  - https://docs.swopme.co/api-reference/locations
servers:
- url: https://mcp.swopme.co
paths:
  /api/v5/identity/lookup:
    get:
      operationId: get_api_v5_identity_lookup
      tags:
      - Api
      summary: GET /api/v5/identity/lookup
      x-source: https://docs.swopme.co/identity/identity-api
      parameters:
      - name: handle
        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/GetApiV5IdentityLookupResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl Node Python Copy Text curl \"https://apps.apiswop.co/api/v5/identity/lookup?handle=maya.swop.id\" \n Response 200 OK \n\
          \ Copy Text { \n \"state\" : \"success\" , \n \"data\" : { \n \"handle\" : \"maya.swop.id\" , \n \"name\" : \"Maya Chen\" , \n \"avatar\"\
          \ : \"https://res.cloudinary.com/.../avatar.jpg\" , \n \"primary\" : true , \n \"evmAddress\" : \"0x1111111111111111111111111111111111111111\"\
          \ , \n \"solanaAddress\" : \"7xKXtg2CW8"
  /api/v5/identity/resolve:
    get:
      operationId: get_api_v5_identity_resolve
      tags:
      - Api
      summary: GET /api/v5/identity/resolve
      x-source: https://docs.swopme.co/identity/identity-api
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: string
      - name: q
        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/GetApiV5IdentityResolveResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl Node Python Copy Text curl \"https://apps.apiswop.co/api/v5/identity/resolve?q=maya&limit=5\" \n Response 200 OK : data\
          \ is an array of the same objects /lookup returns. An empty array means no match. \n The identity object Copy Anchor Link \n Field Type\
          \ Description handle string The full swop.id, for example maya.swop.id . name string Display name. May be empty. avatar string Avatar\
          \ image URL. May"
  /api/v5/merchant/embed-token:
    post:
      operationId: post_api_v5_merchant_embed_token
      tags:
      - Api
      summary: POST /api/v5/merchant/embed-token
      x-source: https://docs.swopme.co/api-reference/embed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV5MerchantEmbedTokenRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV5MerchantEmbedTokenResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl Node Python Copy Text curl -X POST https://apps.apiswop.co/api/v5/merchant/embed-token  -H \"Authorization: Bearer $SWOP_MERCHANT_KEY\
          \ \"  -H \"Content-Type: application/json\"  -d '{ \"scope\": \"intent\", \"intentId\": \"co_7Hk2mPq9xR4s\", \"origin\": \"https://shop.acme.com\"\
          \ }' \n Response Copy Anchor Link \n Copy Text { \n \"state\" : \"success\" , \n \"data\" : { \n \"token\" : \"eyJzYyI6ImludGVudCIs….Q2x…\"\
          \ , \n \"scop"
  /api/v5/merchant/locations:
    get:
      operationId: get_api_v5_merchant_locations
      tags:
      - Api
      summary: GET /api/v5/merchant/locations
      x-source: https://docs.swopme.co/api-reference/locations
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV5MerchantLocationsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl Node Python Copy Text curl https://apps.apiswop.co/api/v5/merchant/locations  -H \"Authorization: Bearer $SWOP_MERCHANT_KEY\
          \ \" \n Response Copy Anchor Link \n Copy Text { \n \"success\" : true , \n \"data\" : [ \n { \n \"locationId\" : \"6701a2b3c4d5e6f7a8b9c0d1\"\
          \ , \n \"merchantId\" : \"65f0c1a2b3c4d5e6f7a8b9c0\" , \n \"micrositeId\" : null , \n \"name\" : \"Ember Coffee, Main St\" , \n \"address\"\
          \ : \"12 Main St, Austin, T"
  /api/v5/merchant/locations/{id}:
    get:
      operationId: get_api_v5_merchant_locations_id
      tags:
      - Api
      summary: Read your physical locations and the tap-to-pay terminals at each one.
      x-source: https://docs.swopme.co/api-reference/locations
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV5MerchantLocationsIdResponse'
      x-evidence:
        kind: documentation
  /api/v5/merchant/locations/{id}/terminals:
    get:
      operationId: get_api_v5_merchant_locations_id_terminals
      tags:
      - Api
      summary: Read your physical locations and the tap-to-pay terminals at each one.
      x-source: https://docs.swopme.co/api-reference/locations
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV5MerchantLocationsIdTerminalsResponse'
      x-evidence:
        kind: documentation
  /api/v5/merchant/me:
    get:
      operationId: get_api_v5_merchant_me
      tags:
      - Api
      summary: GET /api/v5/merchant/me
      x-source: https://docs.swopme.co/api-reference/me
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV5MerchantMeResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl Node Python Copy Text curl https://apps.apiswop.co/api/v5/merchant/me  -H \"Authorization: Bearer $SWOP_MERCHANT_KEY \"\
          \ \n Response Copy Anchor Link \n Copy Text { \n \"state\" : \"success\" , \n \"data\" : { \n \"merchant\" : { \"id\" : \"65f0c1a2b3c4d5e6f7a8b9c0\"\
          \ , \"name\" : \"Acme\" , \"ens\" : \"acme.swop.id\" }, \n \"keyId\" : \"mk_Q3xY7…\" , \n \"effectiveScopes\" : [ \"commerce.read\"\
          \ , \"commerce.checkout\" ], \n \"cardEna"
  /api/v5/merchant/orders:
    get:
      operationId: get_api_v5_merchant_orders
      tags:
      - Api
      summary: GET /api/v5/merchant/orders
      x-source: https://docs.swopme.co/api-reference/orders
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl Node Python Copy Text curl \"https://apps.apiswop.co/api/v5/merchant/orders?limit=25\"  -H \"Authorization: Bearer $SWOP_MERCHANT_KEY\
          \ \" \n Response Copy Anchor Link \n Copy Text { \n \"state\" : \"success\" , \n \"data\" : { \n \"orders\" : [ \n { \n \"orderId\"\
          \ : \"ORD-…\" , \n \"status\" : \"paid\" , \n \"orderType\" : \"physical\" , \n \"lineItems\" : [ { \"productId\" : \"66a1…\" , \"name\"\
          \ : \"Swop Classic Card\" , \"quantity\" : 1"
  /api/v5/merchant/products:
    get:
      operationId: get_api_v5_merchant_products
      tags:
      - Api
      summary: GET /api/v5/merchant/products
      x-source: https://docs.swopme.co/api-reference/products
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl Node Python Copy Text curl \"https://apps.apiswop.co/api/v5/merchant/products?limit=20\"  -H \"Authorization: Bearer $SWOP_MERCHANT_KEY\
          \ \" \n Response Copy Anchor Link \n Copy Text { \n \"state\" : \"success\" , \n \"success\" : true , \n \"message\" : \"Products fetched\"\
          \ , \n \"data\" : { \n \"items\" : [ \n { \n \"_id\" : \"66a1b2c3d4e5f6a7b8c9d0e1\" , \n \"status\" : \"live\" , \n \"productType\"\
          \ : \"physical\" , \n \"title\" : \"Sw"
  /checkout-intents:
    post:
      operationId: post_checkout_intents
      tags:
      - Checkout Intents
      summary: Create a checkout from a cart
      x-source: https://docs.swopme.co/api-reference
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /checkout-intents/{intentid}:
    get:
      operationId: get_checkout_intents_intentid
      tags:
      - Checkout Intents
      summary: Read a checkout and its status
      x-source: https://docs.swopme.co/api-reference
      parameters:
      - name: intentid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /embed-token:
    post:
      operationId: post_embed_token
      tags:
      - Embed Token
      summary: Mint a token to frame checkout on a registered site
      x-source: https://docs.swopme.co/api-reference
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /healthz:
    get:
      operationId: get_healthz
      tags:
      - Healthz
      summary: Health
      x-source: https://docs.swopme.co/mcp/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /locations:
    get:
      operationId: get_locations
      tags:
      - Locations
      summary: List your physical locations
      x-source: https://docs.swopme.co/api-reference
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /locations/{id}:
    get:
      operationId: get_locations_id
      tags:
      - Locations
      summary: Read one location
      x-source: https://docs.swopme.co/api-reference
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /locations/{id}/terminals:
    get:
      operationId: get_locations_id_terminals
      tags:
      - Locations
      summary: List tap-to-pay terminals at a location
      x-source: https://docs.swopme.co/api-reference
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /lookup:
    get:
      operationId: get_lookup
      tags:
      - Lookup
      summary: Look up an exact swop.id
      x-source: https://docs.swopme.co/identity/identity-api
      parameters:
      - name: handle
        in: query
        required: true
        schema:
          type: string
        description: The full swop.id, including .swop.id (for example maya.swop.id). Case‑insensitive. maya on its own won't match.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetLookupResponse'
      x-evidence:
        kind: documentation
  /me:
    get:
      operationId: get_me
      tags:
      - Me
      summary: Check a key and see what it can do right now
      x-source: https://docs.swopme.co/api-reference
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /orders:
    get:
      operationId: get_orders
      tags:
      - Orders
      summary: List your sales
      x-source: https://docs.swopme.co/api-reference
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /products:
    get:
      operationId: get_products
      tags:
      - Products
      summary: List your products
      x-source: https://docs.swopme.co/api-reference
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /resolve:
    get:
      operationId: get_resolve
      tags:
      - Resolve
      summary: Search by handle or name
      x-source: https://docs.swopme.co/identity/identity-api
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
        description: At least 2 characters.
      - name: limit
        in: query
        required: false
        schema:
          type: string
        description: 1 to 20. Defaults to 8.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetResolveResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetApiV5IdentityLookupResponse:
      type: object
      properties:
        state:
          type: string
        data:
          type: object
          properties:
            handle:
              type: string
            name:
              type: string
            avatar:
              type: string
            primary:
              type: boolean
            evmAddress:
              type: string
            solanaAddress:
              type: string
    GetApiV5IdentityResolveResponse:
      type: object
      properties:
        success:
          type: boolean
        status:
          type: string
        message:
          type: string
        correlationId:
          type: string
    PostApiV5MerchantEmbedTokenRequest:
      type: object
      properties:
        scope:
          type: string
        intentId:
          type: string
        origin:
          type: string
    PostApiV5MerchantEmbedTokenResponse:
      type: object
      properties:
        state:
          type: string
        data:
          type: object
          properties:
            token:
              type: string
            scope:
              type: string
            origin:
              type: string
            expiresIn:
              type: integer
    GetApiV5MerchantLocationsResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: array
          items:
            type: object
            properties:
              locationId:
                type: string
              merchantId:
                type: string
              micrositeId:
                type:
                - string
                - 'null'
              name:
                type: string
              address:
                type: string
              location:
                type: object
                properties:
                  lat:
                    type: number
                  lng:
                    type: number
              radiusMeters:
                type: integer
              status:
                type: string
              viewerIsMerchant:
                type: boolean
              createdAt:
                type: string
                format: date-time
              updatedAt:
                type: string
                format: date-time
    GetApiV5MerchantLocationsIdResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Indicates request success
        data:
          type: object
          description: Location object (same shape as list)
    GetApiV5MerchantLocationsIdTerminalsResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Indicates request success
        data:
          type: array
          description: List of terminal objects
        terminalId:
          type: string
          description: The terminal's ID
        label:
          type: string
          description: Your name for it
        status:
          type: string
          description: active or disabled
        programmed:
          type: boolean
          description: Whether a physical NFC tag has been written for it
    GetApiV5MerchantMeResponse:
      type: object
      properties:
        state:
          type: string
        data:
          type: object
          properties:
            merchant:
              type: object
              properties:
                id:
                  type: string
                name:
                  type: string
                ens:
                  type: string
            keyId:
              type: string
            effectiveScopes:
              type: array
              items:
                type: string
            cardEnabled:
              type: boolean
    GetLookupResponse:
      type: object
      properties:
        state:
          type: string
          description: success
        data:
          type: object
          description: Identity object
        data.handle:
          type: string
          description: The full swop.id, for example maya.swop.id
        data.name:
          type: string
          description: Display name
        data.avatar:
          type: string
          description: Avatar image URL
        data.primary:
          type: boolean
          description: true if this is the account's primary swop.id
        data.evmAddress:
          type: string
          description: The EVM address
        data.solanaAddress:
          type: string
          description: The Solana address
    GetResolveResponse:
      type: object
      properties:
        data:
          type: array
          description: Array of identity objects (same shape as /lookup). Empty array means no match.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api
- name: Checkout Intents
- name: Embed Token
- name: Healthz
- name: Locations
- name: Lookup
- name: Me
- name: Orders
- name: Products
- name: Resolve