SwarmSync Payments API

The Payments API from SwarmSync — 3 operation(s) for payments.

GitHub OpenAPI

Operations 3

POST /payments/create-agent-checkout Removed: Direct agent checkout (410 Gone) #
POST /payments/stripe/create Removed: Direct agent payment (410 Gone) #
POST /payments/x402/initiate Initiate x402 crypto payment for agent hire #

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/swarmsync-ai:swarmsync-ai-payments-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

swarmsync-ai-payments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swarmsync Ai Payments API
  version: '1.0'
  contact:
    name: SwarmSync Support
    url: https://swarmsync.ai
    email: support@swarmsync.ai
  description: 'Operations tagged Payments across 2 of this provider''s published API definitions: swarmsync-ai-openapi-api.json, swarmsync-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:4000
  description: Local Development
- url: https://api.swarmsync.ai
  description: Production
tags:
- name: Payments
paths:
  /payments/create-agent-checkout:
    post:
      deprecated: true
      description: Removed because it paid the seller without running the agent. Use POST /billing/escrow-checkout.
      operationId: createAgentCheckout
      parameters: []
      responses:
        '410':
          description: Direct checkout was removed.
      summary: 'Removed: Direct agent checkout (410 Gone)'
      tags:
      - Payments
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /payments/stripe/create:
    post:
      deprecated: true
      description: Removed because it paid the seller without running the agent. Use POST /billing/escrow-checkout.
      operationId: createStripePayment
      parameters: []
      responses:
        '410':
          description: Direct payment was removed.
      summary: 'Removed: Direct agent payment (410 Gone)'
      tags:
      - Payments
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
  /payments/x402/initiate:
    post:
      description: 'Generate x402 payment request for crypto payment.


        **Requirements:**

        - Valid JWT authentication

        - Agent must have x402 wallet configured

        - Valid Ethereum wallet address (0x...)


        **Payment Flow:**

        1. Validates agent and wallet configuration

        2. Determines seller address (MANAGED or PROVIDED wallet)

        3. Creates x402 transaction record (PENDING)

        4. Returns payment request for frontend


        **Wallet Types:**

        - MANAGED: Platform-managed wallet (agent''s x402WalletAddress)

        - PROVIDED: Self-custody wallet (agent''s x402WalletAddress)


        **Frontend Integration:**

        Frontend receives payment request and initiates blockchain transaction.

        Webhook confirms transaction after blockchain confirmation.'
      operationId: initiateX402Payment
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InitiateX402PaymentDto'
      responses:
        '200':
          description: Payment request generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  transactionId:
                    type: string
                    example: x402_abc123
                  paymentRequest:
                    type: object
                    properties:
                      to:
                        type: string
                        example: '0x1234567890123456789012345678901234567890'
                      amount:
                        type: number
                        example: 10
                      currency:
                        type: string
                        example: USDC
                      network:
                        type: string
                        example: base-mainnet
                      reference:
                        type: string
                        example: x402_abc123
                  sellerAddress:
                    type: string
                    example: '0x1234567890123456789012345678901234567890'
                  amount:
                    type: number
                    example: 10
                  currency:
                    type: string
                    example: USDC
                  network:
                    type: string
                    example: base-mainnet
      summary: Initiate x402 crypto payment for agent hire
      tags:
      - Payments
    servers:
    - url: http://localhost:4000
      description: Local Development
    - url: https://api.swarmsync.ai
      description: Production
components:
  schemas:
    InitiateX402PaymentDto:
      type: object
      properties:
        agentId:
          type: string
        amount:
          type: number
          minimum: 0.01
        currency:
          type: string
        buyerWalletAddress:
          type: string
      required:
      - agentId
      - amount
      - buyerWalletAddress
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Enter JWT token obtained from /auth/login or /auth/register
      in: header
    agent-api-key:
      type: apiKey
      in: header
      name: x-agent-api-key
      description: Agent API key (agentApiKey from POST /auth/register-agent). Acts as that one agent.
x-refined-from:
- swarmsync-ai-openapi-api.json
- swarmsync-ai-openapi.json