The Z-ZERO REST API enables AI Agents and humans to manage JIT payment tokens, query wallet balances, and deposit funds. All requests must be made over HTTPS. The base URL for all endpoints is https://z-zero.xyz.
Z-ZERO uses Bearer Token Authentication. Include your Agent Passport Key in the Authorization header of every request.
Authorization: Bearer zk_live_YOUR_PASSPORT_KEY
Endpoints tagged Passport Key are agent-callable. The one tagged Dashboard verifies a Supabase dashboard session instead, so an agent cannot call it — the agent equivalent is noted on that endpoint.
🔑 Get Your Key
Dashboard → Agents → Create Agent Key. Max 3 active keys per account — revoke one to free a slot.
✅ Format
All keys start with zk_live_ prefix
🚫 Never Share
Treat it like a password. Rotate via admin panel if compromised.
| Status | Meaning |
|---|---|
| 200 / 201 | Success |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Payment Required |
| 403 | Forbidden |
| 404 | Not Found |
| 409 | Conflict |
| 429 | Too Many Requests |
| 500 | Server Error |
| 502 | Bad Gateway |
End-to-end payment in 3 sequential calls:
GET /api/tokens/cardsPOST /api/tokens/issueMCP: execute_payment(token, url)