Developer Guide
Integrate your application with the Lateo privacy pool to enable private x402 payments for AI agents.
Integration Options
| Method | Best for | Auth |
|---|---|---|
| Dashboard (Freighter) | Browser-based agents, manual deposits/withdrawals | SEP-53 challenge-response |
| MCP Server | Claude Code, Codex, or any MCP-enabled AI agent | Localhost trust (agent runs locally) |
| Direct API | Custom integrations, automated systems | JWT from SEP-53 auth |
API Base URL
Production: https://api.lateo.network
Local: http://localhost:3002Authentication
For dashboard (Freighter)
GET /api/auth/challenge?publicKey=G...— receive a random challenge- Sign the challenge with Freighter (SEP-53:
SHA256("Stellar Signed Message:\n" + challenge)) POST /api/auth/verifywith{ publicKey, challenge, signature }— receive JWT- Include
Authorization: Bearer <jwt>on all subsequent requests
For MCP (localhost)
MCP agents running locally include agentId in the request body. The proxy trusts requests from 127.0.0.1 only.
Last updated on