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-Key for 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-mcp

Or 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/mcp

Use 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

On this page