xpay-sh Run API

The Run API from xpay-sh — 1 operation(s) for run.

Operations 1

POST /run Run an RDA #

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/xpay-sh:xpay-sh-run-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

xpay-sh-run-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: xpay Hub Run API
  description: REST API for the xpay Hub marketplace. Run AI agents, tools, and prompts (RDAs) with pay-per-use USDC pricing.
  version: 1.0.0
  contact:
    name: xpay Support
    email: support@xpay.sh
    url: https://docs.xpay.sh
  license:
    name: Proprietary
servers:
- url: https://api.xpay.sh/hub
  description: Production
security:
- bearerAuth: []
tags:
- name: Run
paths:
  /run:
    post:
      summary: Run an RDA
      description: Execute an RDA and receive the output. Cost is deducted from your wallet balance.
      operationId: runRda
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - rdaSlug
              - inputs
              properties:
                rdaSlug:
                  type: string
                  description: RDA identifier (slug or ID)
                inputs:
                  type: object
                  description: Input values matching the RDA's input schema
                  additionalProperties: true
                modelId:
                  type: string
                  description: Model ID for prompt RDAs (uses default if omitted)
      responses:
        '200':
          description: Successful execution
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunResult'
        '400':
          description: Invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient balance
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  required:
                    type: number
                  available:
                    type: number
                  runId:
                    type: string
        '404':
          description: RDA not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Run
components:
  schemas:
    RunResult:
      type: object
      properties:
        success:
          type: boolean
        runId:
          type: string
        output:
          type: string
          description: RDA output (format varies by type)
        cost:
          type: number
          description: Amount charged in USDC
        duration:
          type: integer
          description: Execution time in milliseconds
        modelId:
          type: string
        usage:
          type: object
          properties:
            prompt_tokens:
              type: integer
            completion_tokens:
              type: integer
            total_tokens:
              type: integer
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        details:
          type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Privy authentication token