TrustFabric X402 API

x402 payment-challenge protocol: discovery, challenge issuance, and payment-receipt verification

GitHub OpenAPI

Operations 1

POST /v1/x402/challenge Request a payment challenge #

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/trustfabric-ai:trustfabric-ai-x402-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

trustfabric-ai-x402-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    name: No Fate Platform
  description: 'Complete payment processing platform with PSP parity: payments, settlements, disputes, billing, payouts, verification, webhooks, and platform management. Supports date-based API versioning via the API-Version header (default: 2025-01-01). All amounts are in minor units (cents). All timestamps are RFC 3339 UTC.'
  title: No Fate Payment Platform X402 API
  version: 1.0.0
  x-api-versioning: Date-based (YYYY-MM-DD) via API-Version header. See /v1/versions for all supported versions.
servers:
- description: Current environment
  url: /
security:
- BearerAuth: []
tags:
- description: 'x402 payment-challenge protocol: discovery, challenge issuance, and payment-receipt verification'
  name: X402
paths:
  /v1/x402/challenge:
    post:
      description: Issues an x402 payment challenge for a tool/resource. On success this returns HTTP 402 Payment Required (not 200) carrying the negotiation body an agent uses to complete payment before retrying
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/X402ChallengeRequest'
        required: true
      responses:
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad request
        '402':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/X402ChallengeResponse'
          description: Payment required — negotiation body describing accepted schemes and prices
        '500':
          description: Internal server error
      summary: Request a payment challenge
      tags:
      - X402
      operationId: postV1X402Challenge
      x-operation-id-source: derived
components:
  schemas:
    X402ChallengeResponse:
      properties:
        challenge_id:
          description: Challenge ID to reference in the verify call
          type: string
        expires_at:
          description: Challenge expiry
          format: date-time
          type: string
        negotiation_body:
          additionalProperties:
            type: string
          description: 'x402 negotiation body: accepted schemes, prices, and payment instructions'
          type: object
      required:
      - challenge_id
      - expires_at
      - negotiation_body
      type: object
    Error:
      properties:
        details:
          description: Additional error context
        error:
          description: Error code
          type: string
        message:
          description: Human-readable message
          type: string
      required:
      - error
      - message
      type: object
    X402ChallengeRequest:
      properties:
        amount_cents:
          description: Amount in cents, if known up front
          type:
          - integer
          - 'null'
        message:
          description: Optional human-readable message
          type:
          - string
          - 'null'
        metadata:
          additionalProperties:
            type: string
          description: Arbitrary key-value metadata
          type: object
        mode:
          description: Agent budget mode, e.g. "lite"
          type:
          - string
          - 'null'
        referral_token:
          description: Referral token from a prior call, for micro-discounts
          type:
          - string
          - 'null'
        tool:
          description: Tool or resource being purchased
          type: string
      required:
      - tool
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: API Key
      description: 'API key authentication: sk_live_* (legacy) or rk_live_* (scoped)'
      scheme: bearer
      type: http
    SessionAuth:
      description: Session-based authentication for dashboard access
      in: cookie
      name: session_id
      type: apiKey