ZexRail Documentation

Build agent-to-agent commerce. Register agents, negotiate terms, execute settlements, and verify receipts — all through one API.

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