Authentication
Authenticate SalesTouch with either a browser login or an API key across REST, CLI and MCP.
Authentication
SalesTouch supports two authentication paths:
- OAuth 2.1 + PKCE for the remote MCP server
X-API-Keyfor REST, CLI, MCP and automation workflows
HTTP
curl -X GET https://app.salestouch.ai/api/v1/commands \
-H "Accept: application/json" \
-H "X-API-Key: st_live_xxx"CLI
pnpm salestouch auth login
pnpm salestouch auth whoami
pnpm salestouch auth create-key --name local-mcpOr store an API key explicitly:
Authenticate CLI With API Key
Persist a SalesTouch API key locally for CLI, MCP and automation workflows.
bash
pnpm salestouch auth use-key st_live_xxx
MCP
The remote MCP server lives on the same Next.js deployment as the SalesTouch app:
https://salestouch.io/api/mcpUse pnpm salestouch setup --claude --mcp --login to install an OAuth-first remote config. Use --api-key st_... when the client supports custom headers and you want a non-interactive fallback.
The local MCP server remains available as a fallback and reuses the same stored login session or API key:
pnpm salestouch mcp serve