WORXAI / API DOCS

Buy data and pipeline access with x402

Every paid request returns a JSON payment challenge first. Sign that challenge with a Base wallet, retry with PAYMENT-SIGNATURE, and receive verified records after settlement.

Quick start

curl "https://worxai.tech/api/x402/v2/datasets/detail?id=financial-markets&rows=5"
# 402 response includes payment-required and x-payment-required headers
# Sign the challenge, then retry with PAYMENT-SIGNATURE: <base64-payload>

Use the included buyer example with npm run buyer:x402. Never send duplicate payments while a settlement is pending.

Published datasets

Pipeline access

The pipeline endpoint requires a verified capability issued after settlement. Without one it returns a JSON 402 challenge explaining the required header and next step.

GET /api/pipeline/<dataset>