DOCS

API Reference

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.

Authentication

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.

Error Codes

StatusMeaning
200 / 201Success
400Bad Request
401Unauthorized
402Payment Required
403Forbidden
404Not Found
409Conflict
429Too Many Requests
500Server Error
502Bad Gateway

Endpoints

Click any endpoint to expand details + code examples

Quick Start Flow (3 API calls)

End-to-end payment in 3 sequential calls:

1
Verify balanceGET /api/tokens/cards
2
Issue JIT tokenPOST /api/tokens/issue
3
Execute payment (Playwright)MCP: execute_payment(token, url)