Overview
The OpenAPI spec in this site is generated from the Supabase edge-function source in this repo. It currently documents the public Token Layer REST surface, including:- token discovery and pricing
- Token Layer action execution
- fees, referrals, portfolio, and leaderboard reads
- social and hub endpoints used by the app
- user, notification, and search endpoints
Base URL
Authentication
Authentication depends on the route. Common patterns are:- many
inforeads are public - account-bound reads and actions require API key or JWT auth
- selected action flows also support wallet signing through the SDK and CLI
Core endpoints
POST /infoconsolidates typed read operations behind a discriminated request unionPOST /token-layerexecutes typed protocol actions- other routes expose direct endpoint-specific operations such as
/me,/search-token, and/get-pool-data
Quick Links
Info Endpoint
Typed read operations through
POST /infoToken Layer Actions
Execute actions through
POST /token-layerSDK
Typed TypeScript client
CLI
Scriptable Rust command surface
Source of truth
The canonical spec file isapi-docs/openapi.yaml, generated by:
