Developer API guide · 2026.08.20-COMPLIANT

Build on the x402 payment gateway.

This guide is for external developers, data engineering teams, and autonomous software networks connecting to the WorxAI x402 payment gateway. Approved endpoints are indexed in the core directory so compliance-vetted clients can route paid synthetic transactions through the WorxAI non-custodial gateway layer.

Gateway address
https://worxai.tech

Registry contact
russellrules89@gmail.com

01 / Apply

Submit your node

Provide a stable HTTPS endpoint, capabilities, explicit indexing authorization, and a k-anonymity level of at least 15.

02 / Review

Pass validation

WorxAI validates endpoint security, modality metadata, privacy claims, and provider attribution before activation.

03 / Route

Receive traffic

Opted-in providers receive signed, non-custodial routing packets. Settlement status is reported only after verification.

Featured endpoints

Discovery

GET
https://api.worxai.tech/api/index?q=financial

Search assets and opted-in providers in the core directory.

Catalog

GET
https://api.worxai.tech/api/v1/catalog

List native datasets, schemas, pricing, and quality signals.

Routing

POST
https://api.worxai.tech/api/v1/route

Create a signed, non-custodial routing packet.

MCP

GET
https://api.worxai.tech/api/mcp

Discover agent tools and capabilities.

x402 Data

GET
https://api.worxai.tech/api/v1/data/:dataset/download

Receive a base64 payment-required challenge, settle, and retry with a signed payment.

Full API surface

69 public routes · see /api/openapi.json

Every non-admin route this gateway exposes, grouped by area. This table, the OpenAPI document, and the agent-discovery manifests (worx.json, edge.json) are generated from the same registry, so they never drift out of sync.

Discovery

GET
/.well-known/worx.json

Worx agent-discovery manifest describing the gateway, pricing, and dataset catalog.

GET
/.well-known/mcp.json

MCP server descriptor for agent tool discovery.

GET
/.well-known/ai-plugin.json

Legacy ChatGPT-plugin style manifest.

GET
/.well-known/ai-gateway.json

AI Gateway-flavored discovery manifest.

GET
/.well-known/edge.json

Edge/agent discovery manifest listing every public API route.

GET
/.well-known/gatekeeper

Gatekeeper capability probe.

GET
/.well-known/gp.json

General Protocol (GP) agent-discovery manifest — escrow terms, contract address, and endpoints.

GET
/api/openapi.json

Full OpenAPI 3 specification for the public API surface.

GET
/api/schema

JSON schema describing dataset record shapes.

General Protocol

GET
/api/gp/v1/quote

Escrow terms and fee quote for a given amount, before signing anything.

POST
/api/gp/v1/escrow/open

Pull a signed payment authorization into escrow (funds held, not paid out).

POST
/api/gp/v1/escrow/attest

Seller attests delivery, opening the dispute window.

POST
/api/gp/v1/escrow/dispute

Payer disputes an attested delivery inside the dispute window.

POST
/api/gp/v1/escrow/release

Permissionlessly release escrowed funds to the seller once the dispute window has passed.

POST
/api/gp/v1/escrow/refund

Payer reclaims a full, fee-free refund if the seller never attested delivery.

GET
/api/gp/v1/escrow/status

Read an escrow's current on-chain state.

GET
/api/gp/v1/supported

Machine-discoverable GP capability document.

Gateway

POST
/api/gateway

Primary gateway entrypoint for payment-gated requests.

GET
/api/gateway/status

Gateway operational status.

GET
/api/gateway/health

Gateway health check.

GET
/api/gateway/capabilities

Declared gateway capabilities.

GET
/api/gateway/discovery

Gateway discovery metadata for agents.

GET
/api/gateway/validate

Validates gateway configuration/connectivity.

GET
/api/gateway/fees

Current protocol fee schedule.

POST
/api/gateway/quote

Price quote for a dataset request.

POST
/api/gateway/intents

Submit a purchase intent.

GET
/api/gateway/receipts

Look up a payment receipt.

GET
/api/gateway/providers

List registered data providers.

POST
/api/gateway/providers/submit

Submit a new data provider for review.

POST
/api/gateway/payments/verify

Verify an x402 payment.

POST
/api/gateway/payments/settle

Settle a verified x402 payment.

POST
/api/gateway/x402/verify

x402 protocol payment verification.

POST
/api/gateway/x402/settle

x402 protocol payment settlement.

POST
/api/gateway/x402/relay

Relay an x402 payment to the facilitator.

Facilitator

GET
/api/facilitator/supported

Supported x402 schemes and networks.

POST
/api/facilitator/verify

Facilitator-side payment verification.

POST
/api/facilitator/settle

Facilitator-side payment settlement.

POST
/api/payment/verify

Standalone payment verification endpoint.

POST
/api/quote

General-purpose price quote endpoint.

Datasets

GET
/api/v1/catalog

Public catalog of pre-built dataset categories.

GET
/api/v1/generator/catalog

Catalog of the schema-driven synthetic dataset generator.

GET
/api/v1/generator/preview

Free live preview for any dataset category, including custom ones.

GETPOST
/api/v1/data/[dataset]

Fetch or request a specific dataset by id.

GET
/api/v1/data/[dataset]/download

Download a purchased dataset.

POST
/api/v1/route

Route a data request to the appropriate provider.

POST
/api/v2/procure

Procure a dataset end-to-end (quote + payment + delivery).

POST
/api/datasets/download

Initiate a dataset download after payment.

GET
/api/datasets/file

Stream the purchased CSV file for any category, generated on demand.

GET
/api/x402/v2/datasets

x402 v2 dataset listing.

GET
/api/x402/v2/datasets/detail

x402 v2 payment-gated dataset detail + delivery.

Analytics

GET
/api/x402/v2/analytics

Aggregate marketplace analytics.

GET
/api/x402/v2/ledger

Public transaction ledger.

GET
/api/ledger

General ledger of settled payments.

GET
/api/credit/status

Credit balance / usage status.

POST
/api/analytics/track

Track a custom analytics event.

POST
/api/analytics/visit

Record a page visit.

GET
/api/behavioral

Behavioral signal feed.

Wallet

POST
/api/wallet/assets

Fetch wallet asset balances.

POST
/api/wallet/prices

Fetch live asset prices for a wallet.

Agent Tooling

GETPOST
/api/mcp

MCP server endpoint for tool-calling agents.

GETPOST
/api/index

Provider/dataset index lookup and submission.

GETPOST
/api/index/register

Register a new entry in the provider index.

POST
/api/index/apply

Apply to be listed in the provider index.

Legal

GETPOST
/api/legal/accept

Record acceptance of the platform agreement.

GET
/api/announcements/feed

Public cacheable x402 catalog and discovery announcement feed.

GET
/api/announcements/current

Fetch the current active announcement.

POST
/api/announcements/receipts

Acknowledge receipt of an announcement.

Platform

GET
/api/health

Overall platform health check.

GETPOST
/api/auth/[...all]

Better Auth session/authentication handler.

Gateway strategy

Build preference, not dependency.

WorxAI earns a primary routing position through open standards, measurable performance, and transparent provider choice. It never intercepts traffic or overrides a node's own endpoint.

01 / Registry

Canonical discovery

Publish stable manifests, OpenAPI contracts, MCP metadata, and attribution so clients can integrate without hidden defaults.

02 / Efficiency

Lower friction

Offer predictable latency, transparent capped fees, and verified settlement status so agents can compare routes on evidence.

03 / Trust

Enterprise controls

Give teams one auditable interface for opt-in providers, privacy metadata, rate limits, and non-custodial delivery.

Runtime observability

Measure what actually happened.

Observed events

Settled

Status

Not loaded

MCP adapter

Connect standard clients

The repository includes a minimal newline-delimited JSON adapter blueprint targeting the public WorxAI MCP endpoint. It supports initialize and tools/list discovery without storing credentials.

WORXAI_GATEWAY_URL=https://api.worxai.tech node scripts/worxai-mcp-adapter.mjs

Settlement boundary

Verified, non-custodial rails

Routing packets remain opt-in and auditable. Payment status is never marked complete until the selected on-chain x402 settlement is independently verified.

curl -X POST https://api.worxai.tech/api/v1/route \
  -H 'content-type: application/json' \
  -d '{"clientId":"agent-1","targetNodeId":"worxai","modality":"financial_ledger","tokenVolume":50000,"settlementRail":"base-usdc"}'