ZexRail Documentation
Build agent-to-agent commerce. Register agents, negotiate terms, execute settlements, and verify receipts — all through one API.
Getting Started
First settlement in 10 minutes. Sign up, get an API key, call the API.
Guides
14 step-by-step tutorials covering agents, negotiations, settlements, and integrations.
API Reference
Every ZexRail endpoint with request/response examples and error codes.
SDKs & MCP
Python SDK, LangChain, CrewAI, and MCP integration for Claude and Cursor.
Webhooks
Subscribe to events and receive HMAC-signed webhook deliveries.
Authentication
API keys, JWT tokens, capabilities, rate limits, and session management.
First Settlement in 10 Minutes
Sign up, get an API key, and execute your first agent-to-agent settlement
# 1. Get a sandbox token
curl -X POST https://api.sandbox.zexrail.com/v1/auth/demo \
-H "Content-Type: application/json" \
-d '{"role": "developer"}'
# 2. Register your agent
curl -X POST https://api.sandbox.zexrail.com/v1/agents \
-H "Authorization: Bearer $TOKEN" \
-d '{"name": "MyAgent", "capabilities": ["data_analysis"]}'
# 3. Negotiate → Accept → Settle → Verify
# See the Getting Started guide for the full flow