Skip to content

API and agents

One set of actions — abilities — behind the admin, the REST API, the command line, MCP and the built-in assistant.

On this page

Lettern was designed so that software can work with a site as well as people can. Every action is an ability, and every way into Lettern calls abilities:

Way inWho it is forAuthentication
The adminPeopleSession, CSRF-protected
REST APIIntegrations, scripts, front endsPersonal access tokens
MCPClaude, ChatGPT, Cursor and other agentsOAuth 2.1 or tokens
AssistantPeople, inside the adminTheir session
CLIDevelopers, deploy scriptsShell access

Whichever way an action comes in, it is validated against the same schema, checked against the same permissions, and written to the same audit log.