Skip to main content
Sagepilot MCP supports two authentication modes. For ChatGPT, Claude, Codex, and similar hosted clients, start with Hosted connectors.

API token authentication

Use this only when hosted OAuth is not available.
1

Open Sagepilot

Sign in to the Sagepilot workspace you want to connect.
2

Go to API Details

Open Settings -> API Details -> API client v2.
3

Create an API client

Create a new API client with the access your MCP client needs, then copy the sp_... token. It is shown once.
4

Send the token to MCP

Pass the token as an Authorization header.
Some MCP clients also support X-API-Key: sp_your_token. Prefer the Authorization header unless your client requires a separate API-key header field.
Treat sp_... API client tokens as secrets. Do not commit them to source control or expose them in client-side code.

Analytics and product access

Your connection needs the scope and dataset for each tool it calls. get_connection_info returns the resolved workspace, permissions, and dataset grants so you can check the connection before requesting a report. For API-client analytics access, select analytics.query and the required analytics datasets when configuring your client. Analytics grants cover reports and name lookup; they do not include journey flows or campaign configuration. Use Hosted OAuth for product tools when the API-client setup does not offer the corresponding scopes, subject to your workspace role and permissions. If an existing OAuth connection lacks a required capability, reconnect and approve access again, then check get_connection_info. Reconnecting does not expand your Sagepilot role. If access still fails, ask your workspace administrator to review your permissions. See Journey and campaign tools for examples and Find entity IDs for the equivalent REST lookup.