dnsofmoney-com Xapp API

The xapp API from dnsofmoney-com — 4 operation(s) for xapp.

GitHub OpenAPI

Operations 4

POST /xapp/ott Exchange a Xaman OTT for a backend JWT + session context #
GET /xapp/me Return the JWT-bound session (smoke-test for the Bearer round-trip) #
POST /xapp/event Record one client-side xApp sign-funnel event (best-effort telemetry) #
GET /xapp/events Admin-only: recent xApp sign-funnel events (X-Admin-Key = live API key) #

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/dnsofmoney-com:dnsofmoney-com-xapp-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

dnsofmoney-com-xapp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DNS://Money Xapp API
  description: 'DNS://Money resolves a human-readable `pay:` name into the payment instructions for the rail it settles on, the way DNS resolves a domain into an IP address.


    - **Free reads:** resolve a name without a key at the anonymous rate limit.

    - **API key:** send `X-API-Key` for a higher rate limit. Get a free key at https://dnsofmoney.com/#request.

    - **x402:** paid routes answer `402` with a challenge. Pay from your own wallet and retry with `X-PAYMENT` or `PAYMENT-SIGNATURE`.


    DNS://Money is not a bank. The payer signs from their own wallet and the resolver never holds funds. Guides: https://dnsofmoney.com/docs/.


    **OAuth 2.0:** an agent registers itself at `POST /oauth/register`, sends the key holder through the authorization code flow with PKCE S256, and calls `/resolve` and `/mcp` with a Bearer token. A token is read-only and short lived. It never reaches a route that moves money.'
  termsOfService: https://dnsofmoney.com/terms.html
  contact:
    name: DNS://Money support
    url: https://dnsofmoney.com/docs/
    email: support@dnsofmoney.com
  version: 0.3.0
servers:
- url: https://api.dnsofmoney.com
  description: Production
tags:
- name: xapp
  description: The backend for the Xaman xApp.
paths:
  /xapp/ott:
    post:
      tags:
      - xapp
      summary: Exchange a Xaman OTT for a backend JWT + session context
      description: 'Frontend posts {ott} → we call Xaman''s /platform/xapp/ott/{token} with the

        API secret, then return {jwt, context}. The Xaman API secret NEVER leaves

        this backend.'
      operationId: ott_exchange_xapp_ott_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OttExchangeRequest'
            example:
              ott: 00000000-0000-4000-8000-000000000000
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      security: []
  /xapp/me:
    get:
      tags:
      - xapp
      summary: Return the JWT-bound session (smoke-test for the Bearer round-trip)
      description: 'JWT-protected echo. Returns the account, network, and token lifetime —

        useful for confirming the frontend→backend Bearer round-trip works.'
      operationId: xapp_me_xapp_me_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
      - XappBearer: []
  /xapp/event:
    post:
      tags:
      - xapp
      summary: Record one client-side xApp sign-funnel event (best-effort telemetry)
      description: 'The xApp posts funnel events the backend/Xaman can''t observe (did the sign

        request surface? rejected? timed out? deeplink fallback used?). Identity

        (account, network) is taken from the verified JWT, never the body. Unknown

        flow/event strings are kept (truncated) rather than rejected — a telemetry

        write must never become a client-facing error.


        Terminal outcomes (signed / rejected / timeout) also push a one-line

        Telegram alert via ALERT_WEBHOOK_URL, queued post-response so it never

        adds latency to the client.'
      operationId: record_xapp_event_xapp_event_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/XappEventIn'
            example:
              flow: register
              event: opened
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
      - XappBearer: []
  /xapp/events:
    get:
      tags:
      - xapp
      summary: 'Admin-only: recent xApp sign-funnel events (X-Admin-Key = live API key)'
      description: Read the client telemetry funnel, newest first. Read-only, off the money path.
      operationId: list_xapp_events_xapp_events_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 100
          title: Limit
      - name: flow
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Flow
        example: register
      - name: account
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Account
      - name: x-admin-key
        in: header
        required: false
        schema:
          type: string
          default: ''
          title: X-Admin-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
      - AdminKey: []
components:
  headers:
    Retry-After:
      description: Seconds to wait before the next request.
      schema:
        type: integer
    X-RateLimit-Reset:
      description: Unix time when the window resets.
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: Requests left in the current window.
      schema:
        type: integer
    X-RateLimit-Limit:
      description: Requests allowed in the current window.
      schema:
        type: integer
  responses:
    Forbidden:
      description: This key cannot use this route.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorDetail'
    RateLimited:
      description: Rate limit exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitError'
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OttExchangeRequest:
      properties:
        ott:
          type: string
          maxLength: 128
          minLength: 10
          title: Ott
          description: Raw xAppToken from Xaman boot query string.
      type: object
      required:
      - ott
      title: OttExchangeRequest
    ErrorDetail:
      type: object
      required:
      - detail
      properties:
        detail:
          type: string
      example:
        detail: Invalid or missing API key
    RateLimitError:
      type: object
      required:
      - error
      - limit
      - reset_at
      properties:
        error:
          type: string
          const: rate_limit_exceeded
        limit:
          type: integer
        reset_at:
          type: string
          format: date-time
      example:
        error: rate_limit_exceeded
        limit: 60
        reset_at: '2026-11-04T00:01:00+00:00'
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    XappEventIn:
      properties:
        flow:
          type: string
          maxLength: 32
          title: Flow
        event:
          type: string
          maxLength: 48
          title: Event
        alias:
          anyOf:
          - type: string
            maxLength: 128
          - type: 'null'
          title: Alias
        payload_uuid:
          anyOf:
          - type: string
            maxLength: 64
          - type: 'null'
          title: Payload Uuid
        detail:
          anyOf:
          - type: string
            maxLength: 512
          - type: 'null'
          title: Detail
      type: object
      required:
      - flow
      - event
      title: XappEventIn
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key.
    X402Payment:
      type: apiKey
      in: header
      name: X-PAYMENT
      description: x402 v1 payment payload. Answer the 402 challenge with this header.
    X402PaymentSignature:
      type: apiKey
      in: header
      name: PAYMENT-SIGNATURE
      description: x402 v2 payment payload. Answer the 402 challenge with this header.
    XappBearer:
      type: http
      scheme: bearer
      description: Session JWT from POST /xapp/ott.
    AdminKey:
      type: apiKey
      in: header
      name: x-admin-key
      description: Operator key.
    OAuth2:
      type: oauth2
      description: Read-only delegated access. PKCE S256 is required.
      flows:
        authorizationCode:
          authorizationUrl: https://api.dnsofmoney.com/oauth/authorize
          tokenUrl: https://api.dnsofmoney.com/oauth/token
          scopes:
            resolve:read: 'Resolve pay: names and call the read-only MCP tools.'
x-provenance:
  method: harvested
  publisher: DNS://Money
  source: https://api.dnsofmoney.com/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)