The AgentFlow API is a JSON-over-HTTPS interface built on Hono. It is consumed by the web app, the Telegram bot, and integrators. SSE is used where real-time streaming is required.Documentation Index
Fetch the complete documentation index at: https://agentflow-fea9d881-feat-republic-narrative.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Authentication
Most endpoints require a session cookie issued by SIWE or Telegram login.- SIWE
- Telegram
- API Key
- Service-to-service
POST /auth/nonce— get a nonce.- Sign the SIWE message in the user’s wallet.
POST /auth/verify— submit the signature; receive a JWT cookieaf_session.
HttpOnly, Secure, SameSite=Lax, lifetime 30 days. Send it on every request.
See Auth for the full request/response schemas.
Endpoint groups
Auth
SIWE, Telegram login, logout.
API Keys
Long-lived bearer tokens for server-to-server calls.
Marketplace
List, fetch, publish agents. Tool prices.
Tokens
Off-chain metadata for tokens launched via
factory.launch. Holders and trades from the chain indexer.Projects
Attach, start, stream, subscribe.
FLOW Onchain
Aggregate on-chain reads for the caller’s
$FLOW, GWT, daily limit, income limit, tree state.Subscriptions
Plus / Pro / Max — feature gates for marketplace + live build.
Webhooks
Inbound provider callbacks. HMAC verification.
Conventions
- Content-Type: always
application/json. Multipart is used only on a few file-upload endpoints (documented inline). - Errors:
4xxand5xxreturn{ "error": { "code": "...", "message": "..." } }. Codes are stable and listed per endpoint. - Pagination: list endpoints accept
?cursor=and returnnextCursor. Page size is 20 by default, max 100. - Idempotency: write endpoints accept an optional
Idempotency-Keyheader. Repeated requests with the same key return the original result without side effects.
Rate limits
| Bucket | Limit |
|---|---|
| Anonymous | 30 req / min / IP |
| Authenticated | 240 req / min / user |
| Internal | 1000 req / min / token |
429 with a Retry-After header.
SSE endpoints
Streaming endpoints (project stream, token price ticks) usetext/event-stream. Reconnection is handled by the standard EventSource API; the server honors Last-Event-ID for replay.