API groups
Trevi exposes a few distinct API surfaces. Each group has different authentication and use cases.MCP server APIs
Use/api/servers/{server}/mcp/* to list and call tools, resources, and prompts on a server.
SDK runtime APIs
Use/api/sdk/* from the @trevi/sdk package to list tools, resources, prompts, and workflows for an app.
CLI APIs
Use/api/cli/* with the Trevi CLI for device login and app management.
Public endpoints
Some endpoints are public, including/api/health, /api/oauth/token, /api/oauth/register, and /api/apps/{app}/resolve.
