You don't need WebMCP to use the API. Any HTTP client can call the endpoints directly.
Free Endpoint
curl https://agent.gexlog.com/agent/current
Returns today's morning briefing as JSON — no authentication, no payment.
Paid Endpoint (Without Payment)
curl -v https://agent.gexlog.com/agent/historical?date=2026-05-09
# Response: HTTP 402
# Header: PAYMENT-REQUIRED: (base64 JSON with price, seller address, network)
The 402 response includes everything a wallet needs to sign and submit payment.
Receipt Tokens and Retries
After a successful payment, the response includes an X-Access-Token header. You can pass this token back in the X-Access-Token request header to re-fetch the exact same resource within 15 minutes without paying again.
Additionally, if a request carrying a valid X-PAYMENT signature fails due to a network drop or server error (e.g., 502), you can safely retry the exact same request with the exact same X-PAYMENT header within 15 minutes. The server will not settle a second time.
Partner API Keys
Selected partners can bypass x402 payments with an API key:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://agent.gexlog.com/agent/historical?date=2026-05-09
OpenAPI Discovery
curl https://agent.gexlog.com/openapi.json
Machine-readable API spec for automated agent discovery. Includes endpoint schemas, pricing, and x402 payment metadata.
For developers
Interested in partner API access? Contact us via gexlog.com.