PayAI API

PayAI API as documented publicly: 21 operations. Contract generated from the documentation by API Evangelist (2026-11-20); not the provider's own document.

GitHub OpenAPI

Operations 21

GET /api/v1/account GET /api/v1/account #
POST /api/v1/account/keys Create a key from { "name": "…" } #
DELETE /api/v1/account/keys/{id} Revoke another key; the calling key cannot revoke itself #
PUT /api/v1/account/recovery-email Store { "email": "…" }, send a confirmation code #
POST /api/v1/account/recovery-email/confirm Confirm recovery email with code #
GET /api/v1/account/transactions Return 1–100 credit transactions plus total and hasMore #
GET /api/v1/account/usage Return settlements, successes, and per‑network totals for 1–90 days #
POST /api/v1/keys/recover Recover a lost key by signing with the paying wallet #
POST /api/v1/keys/recover/email Request a six‑digit recovery code via email #
POST /api/v1/keys/recover/email/confirm Confirm the recovery code and receive a new key #
GET /api/v1/keys/vend GET /api/v1/keys/vend #
POST /api/v1/keys/vend POST /api/v1/keys/vend #
GET /discovery/resources List discoverable x402 resources from the Bazaar. #
GET /discovery/stats Get aggregate PayAI Bazaar statistics #
GET /health Liveness probe #
GET /premium Protected route GET /premium #
GET /settle Describe the settle endpoint #
POST /settle Settles a payment by broadcasting the transaction to the blockchain. #
GET /supported Returns the list of payment schemes and networks supported by the facilitator. #
GET /verify Describe the verify endpoint #
POST /verify Verifies a payment authorization without executing the transaction on the blockchain. #

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/payai-network:payai-network-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

payai-network-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: PayAI API
  version: '2026-11-20'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-20: 21 operation(s) read from 6 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; PayAI has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 3
    documentation: 18
    pages-with-code: 1
    pages-read: 6
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-20'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.payai.network/x402/reference
  - https://docs.payai.network/v1/x402/reference
  - https://docs.payai.network/x402/reference.md
  - https://payai.network/developers
  - https://docs.payai.network/x402/base-mainnet-express
  - https://docs.payai.network/x402/facilitators/agent-api-keys
servers:
- url: https://merchant.payai.network
paths:
  /api/v1/account:
    get:
      operationId: get_api_v1_account
      tags:
      - Api
      summary: GET /api/v1/account
      x-source: https://docs.payai.network/x402/facilitators/agent-api-keys
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1AccountResponse'
      x-evidence:
        kind: code-example
        language: javascript
        snippet: "fetch ( \"https://merchant.payai.network/api/v1/account\" , { \n headers: { Authorization: `Bearer ${jwt} ` }, \n })"
  /api/v1/account/keys:
    post:
      operationId: post_api_v1_account_keys
      tags:
      - Api
      summary: 'Create a key from { "name": "…" }'
      x-source: https://docs.payai.network/x402/facilitators/agent-api-keys
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1AccountKeysRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1AccountKeysResponse'
      x-evidence:
        kind: documentation
  /api/v1/account/keys/{id}:
    delete:
      operationId: delete_api_v1_account_keys_id
      tags:
      - Api
      summary: Revoke another key; the calling key cannot revoke itself
      x-source: https://docs.payai.network/x402/facilitators/agent-api-keys
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/account/recovery-email:
    put:
      operationId: put_api_v1_account_recovery_email
      tags:
      - Api
      summary: 'Store { "email": "…" }, send a confirmation code'
      x-source: https://docs.payai.network/x402/facilitators/agent-api-keys
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutApiV1AccountRecoveryEmailRequest'
      responses:
        '202':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/account/recovery-email/confirm:
    post:
      operationId: post_api_v1_account_recovery_email_confirm
      tags:
      - Api
      summary: Confirm recovery email with code
      x-source: https://docs.payai.network/x402/facilitators/agent-api-keys
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1AccountRecoveryEmailConfirmRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/account/transactions:
    get:
      operationId: get_api_v1_account_transactions
      tags:
      - Api
      summary: Return 1–100 credit transactions plus total and hasMore
      x-source: https://docs.payai.network/x402/facilitators/agent-api-keys
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: string
        description: Maximum number of transactions to return (1‑100).
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1AccountTransactionsResponse'
      x-evidence:
        kind: documentation
  /api/v1/account/usage:
    get:
      operationId: get_api_v1_account_usage
      tags:
      - Api
      summary: Return settlements, successes, and per‑network totals for 1–90 days
      x-source: https://docs.payai.network/x402/facilitators/agent-api-keys
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: string
        description: Number of days (default 30).
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1AccountUsageResponse'
      x-evidence:
        kind: documentation
  /api/v1/keys/recover:
    post:
      operationId: post_api_v1_keys_recover
      tags:
      - Api
      summary: Recover a lost key by signing with the paying wallet
      x-source: https://docs.payai.network/x402/facilitators/agent-api-keys
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1KeysRecoverResponse'
      x-evidence:
        kind: documentation
  /api/v1/keys/recover/email:
    post:
      operationId: post_api_v1_keys_recover_email
      tags:
      - Api
      summary: Request a six‑digit recovery code via email
      x-source: https://docs.payai.network/x402/facilitators/agent-api-keys
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1KeysRecoverEmailRequest'
      responses:
        '202':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1KeysRecoverEmailResponse'
      x-evidence:
        kind: documentation
  /api/v1/keys/recover/email/confirm:
    post:
      operationId: post_api_v1_keys_recover_email_confirm
      tags:
      - Api
      summary: Confirm the recovery code and receive a new key
      x-source: https://docs.payai.network/x402/facilitators/agent-api-keys
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1KeysRecoverEmailConfirmRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1KeysRecoverEmailConfirmResponse'
      x-evidence:
        kind: documentation
  /api/v1/keys/vend:
    get:
      operationId: get_api_v1_keys_vend
      tags:
      - Api
      summary: GET /api/v1/keys/vend
      x-source: https://docs.payai.network/x402/facilitators/agent-api-keys
      parameters:
      - name: amount
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl — inspect 402 Set EVM_PRIVATE_KEY , then run this file with a TypeScript runner such as tsx . This example deliberately\
          \ selects Base USDC. import { x402Client , x402HTTPClient } from \"@x402/core/client\" ; \n import {registerExactEvmScheme} from \"\
          @x402/evm/exact/client\" ; \n import {privateKeyToAccount} from \"viem/accounts\" ; \n const url = \"https://merchant.payai.network/api/v1/keys/vend?amount="
    post:
      operationId: post_api_v1_keys_vend
      tags:
      - Api
      summary: POST /api/v1/keys/vend
      x-source: https://docs.payai.network/x402/facilitators/agent-api-keys
      parameters:
      - name: amount
        in: query
        required: false
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1KeysVendRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1KeysVendResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl --include  --request POST  --header 'content-type: application/json'  --data '{\"recoveryEmail\":\"ops@example.com\",\"\
          keyName\":\"Production agent\"}'  'https://merchant.payai.network/api/v1/keys/vend?amount=5' \n Vending errors \n Status Error Meaning\
          \ 400 invalid_amount amount is malformed, outside the returned min / max , or has more than two decimals 400 invalid_body The JSON body\
          \ or named field is"
  /discovery/resources:
    get:
      operationId: get_discovery_resources
      tags:
      - Discovery
      summary: List discoverable x402 resources from the Bazaar.
      x-source: https://docs.payai.network/x402/reference
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: number
        description: Maximum number of results to return (1-1000).
      - name: offset
        in: query
        required: false
        schema:
          type: number
        description: Number of results to skip for pagination.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDiscoveryResourcesResponse'
      x-evidence:
        kind: documentation
  /discovery/stats:
    get:
      operationId: get_discovery_stats
      tags:
      - Discovery
      summary: Get aggregate PayAI Bazaar statistics
      x-source: https://payai.network/developers
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /health:
    get:
      operationId: get_health
      tags:
      - Health
      summary: Liveness probe
      x-source: https://payai.network/developers
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /premium:
    get:
      operationId: get_premium
      tags:
      - Premium
      summary: Protected route GET /premium
      x-source: https://docs.payai.network/x402/base-mainnet-express
      parameters:
      - name: accepts
        in: header
        required: true
        schema:
          type: string
        description: Payment acceptance configuration
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPremiumResponse'
      x-evidence:
        kind: documentation
  /settle:
    get:
      operationId: get_settle
      tags:
      - Settle
      summary: Describe the settle endpoint
      x-source: https://payai.network/developers
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_settle
      tags:
      - Settle
      summary: Settles a payment by broadcasting the transaction to the blockchain.
      x-source: https://docs.payai.network/x402/reference
      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: Returns the list of payment schemes and networks supported by the facilitator.
      x-source: https://docs.payai.network/x402/reference
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSupportedResponse'
      x-evidence:
        kind: documentation
  /verify:
    get:
      operationId: get_verify
      tags:
      - Verify
      summary: Describe the verify endpoint
      x-source: https://payai.network/developers
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_verify
      tags:
      - Verify
      summary: Verifies a payment authorization without executing the transaction on the blockchain.
      x-source: https://docs.payai.network/x402/reference
      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:
    GetApiV1AccountResponse:
      type: object
      properties:
        error:
          type: string
    PostApiV1AccountKeysRequest:
      type: object
      properties:
        name:
          type: string
          description: Name for the new key.
      required:
      - name
    PostApiV1AccountKeysResponse:
      type: object
      properties:
        apiKey:
          type: object
          description: Created API key with secret shown once.
    PutApiV1AccountRecoveryEmailRequest:
      type: object
      properties:
        email:
          type: string
          description: Recovery email address.
      required:
      - email
    PostApiV1AccountRecoveryEmailConfirmRequest:
      type: object
      properties:
        code:
          type: string
          description: Confirmation code sent to the email.
      required:
      - code
    GetApiV1AccountTransactionsResponse:
      type: object
      properties:
        transactions:
          type: array
          description: List of credit transactions.
        total:
          type: integer
          description: Total number of transactions.
        hasMore:
          type: boolean
          description: Whether more transactions are available.
    GetApiV1AccountUsageResponse:
      type: object
      properties:
        usage:
          type: object
          description: Usage statistics.
    PostApiV1KeysRecoverResponse:
      type: object
      properties:
        apiKey:
          type: object
          description: New API key.
        account:
          type: object
          description: Associated account information.
    PostApiV1KeysRecoverEmailRequest:
      type: object
      properties:
        email:
          type: string
          description: Recovery email.
        wallet:
          type: string
          description: Wallet address.
        addressType:
          type: string
          description: '"evm" or "svm".'
      required:
      - email
      - wallet
      - addressType
    PostApiV1KeysRecoverEmailResponse:
      type: object
      properties:
        ok:
          type: boolean
          description: Always true.
    PostApiV1KeysRecoverEmailConfirmRequest:
      type: object
      properties:
        email:
          type: string
          description: Recovery email.
        wallet:
          type: string
          description: Wallet address.
        addressType:
          type: string
          description: '"evm" or "svm".'
        code:
          type: string
          description: Six‑digit code.
      required:
      - email
      - wallet
      - addressType
      - code
    PostApiV1KeysRecoverEmailConfirmResponse:
      type: object
      properties:
        apiKey:
          type: object
          description: New API key.
        account:
          type: object
          description: Associated account.
    PostApiV1KeysVendRequest:
      type: object
      properties:
        recoveryEmail:
          type: string
        keyName:
          type: string
    PostApiV1KeysVendResponse:
      type: object
      properties:
        ok:
          type: boolean
    GetDiscoveryResourcesResponse:
      type: object
      properties:
        x402Version:
          type: number
          description: Protocol version.
        items:
          type: array
          description: Array of discovered resource objects.
        pagination:
          type: object
          description: Pagination info with limit, offset, total.
    GetPremiumResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code, e.g., 200 on success
        body:
          type: object
          description: Protected resource payload
        PAYMENT-RESPONSE:
          type: object
          description: Payment verification details returned on successful payment
    PostSettleRequest:
      type: object
      properties:
        paymentPayload:
          type: object
          description: Payment payload containing version, accepted payment details and scheme‑specific payload.
        paymentRequirements:
          type: object
          description: Original payment requirements object.
      required:
      - paymentPayload
      - paymentRequirements
    PostSettleResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Indicates whether settlement succeeded.
        payer:
          type: string
          description: Address of the payer.
        transaction:
          type: string
          description: Transaction identifier (empty on error).
        network:
          type: string
          description: Blockchain network identifier.
        errorReason:
          type: string
          description: Reason for settlement failure (present on error response).
    GetSupportedResponse:
      type: object
      properties:
        kinds:
          type: array
          description: Array of supported scheme/network objects.
        extensions:
          type: array
          description: Optional extensions.
        signers:
          type: object
          description: Signer information.
    PostVerifyRequest:
      type: object
      properties:
        paymentPayload:
          type: object
          description: Payment payload containing version, accepted payment details and scheme‑specific payload.
        paymentRequirements:
          type: object
          description: Original payment requirements object.
      required:
      - paymentPayload
      - paymentRequirements
    PostVerifyResponse:
      type: object
      properties:
        isValid:
          type: boolean
          description: Indicates whether the verification succeeded.
        payer:
          type: string
          description: Address of the payer.
        invalidReason:
          type: string
          description: Reason for verification failure (present on error response).
  securitySchemes:
    PayAI_JWT:
      type: http
      scheme: bearer
      x-source: https://docs.payai.network/x402/facilitators/authentication.md
tags:
- name: Api
- name: Discovery
- name: Health
- name: Premium
- name: Settle
- name: Supported
- name: Verify
security:
- PayAI_JWT: []