Skip to Content
GuidesFor DevelopersOverview

Developer Guide

Integrate your application with the Lateo privacy pool to enable private x402 payments for AI agents.

Integration Options

MethodBest forAuth
Dashboard (Freighter)Browser-based agents, manual deposits/withdrawalsSEP-53 challenge-response
MCP ServerClaude Code, Codex, or any MCP-enabled AI agentLocalhost trust (agent runs locally)
Direct APICustom integrations, automated systemsJWT from SEP-53 auth

API Base URL

Production: https://api.lateo.network Local: http://localhost:3002

Authentication

For dashboard (Freighter)

  1. GET /api/auth/challenge?publicKey=G... — receive a random challenge
  2. Sign the challenge with Freighter (SEP-53: SHA256("Stellar Signed Message:\n" + challenge))
  3. POST /api/auth/verify with { publicKey, challenge, signature } — receive JWT
  4. 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