Skip to main content

Authentication

Every request to the REST API and the MCP server is made by someone heycreo knows. Who that is decides how it signs in:

Who callsHow it signs inActs as
Software on its own — an n8n workflow, a shop sync, an AI agent your company runsA service account: an API key or OAuth client credentialsThe service account, with its own permissions
An AI client a person uses — Claude, ChatGPT, CopilotOAuth in the browser; the client registers itselfThe person, in the workspaces they choose
A platform acting for each person — HubSpot, Salesforce per userOAuth with an app registered by handThe person who signs in and consents
A person in the appTheir sign-in to heycreoThemselves

API keys always belong to a service account. There are no personal API keys: a person uses heycreo through the app, or connects an AI client to their own account with OAuth (Claude, ChatGPT: add the MCP URL, sign in, consent). A personal key created before is refused with 401 and the message Personal API keys are no longer supported. Create a service account under Settings → Service accounts.

Ways a service account signs in​

MethodHow it is sentApplies toDefaultUse it for
API key in a headerAuthorization: Bearer heycreo_… or X-API-Key: heycreo_…REST · MCPOnn8n, LangGraph, CrewAI, your own code, the Claude API's MCP connector
OAuth client credentialsClient ID and secret at the token endpoint, then Authorization: Bearer <access token>REST · MCPOnSalesforce Agentforce, enterprise integration platforms
API key as a URL parameter (not recommended)?api_key=heycreo_…REST · MCPOffTools that can send a key only in the URL (webhook senders, some low-code tools)
Secret MCP connection URL (not recommended)https://app.heycreo.io/api/mcp/c/<secret>MCP onlyOffMCP clients that accept only a URL

Which of these a service account may use, and how keys, client credentials and the URL-borne methods work, is on Service accounts.

No organization header is needed with any of them. A key, a client and a connection URL belong to exactly one workspace, and every request acts there. If you send X-heycreo-Org anyway, it must name that same workspace.

Platform compatibility​

PlatformWhat it can sendWhat to choose in heycreo
Claude, ChatGPT (custom connector)OAuth 2.1 with dynamic client registrationNothing to set up: add https://app.heycreo.io/api/mcp as a connector. Acts as the person who connects.
Claude API, MCP connectorauthorization_token (Bearer) only, no custom headersA service account key, passed as authorization_token. No X-heycreo-Org needed.
Microsoft Copilot StudioAn API key in one header (name configurable) or a query parameter; OAuth 2.0 with dynamic discovery or a manual clientAPI key in a header, header name X-API-Key. To act per person: Dynamic discovery, or an app with Copilot Studio's redirect URI.
Salesforce Agentforce (MCP)OAuth client credentials, or per-user OAuth with a manually entered client; no static keysOAuth client credentials on a service account for the agent itself; an app to act per user.
HubSpot MCP connectorAuthorization code with PKCE S256, pre-registered client, refresh tokens, redirect https://oauth-redirect.hubspot.com/callback/mcp_server, discovery at the domain rootAn app with exactly that redirect URI.
HubSpot workflows, "Send a webhook"An API key in one header or a query parameterAPI key in a header, header name X-API-Key.
Zapier and tools that take a "connection URL"A URL with the secret in itSecret MCP connection URL (MCP). For the REST API: API key as a URL parameter.
n8n, LangGraph, CrewAI, your own codeAny headerAPI key in a header, or client credentials for short-lived tokens.

Errors​

StatusMeaning
401No credential, or it is invalid, expired, revoked, disabled, a personal key, from an address outside the service account's IP ranges, or sent in a way the service account does not allow
403Authenticated, but its permissions do not allow it (or the area is not open to it), the route is for signed-in people only, or the workspace named in the URL or header is not the credential's

The token endpoint answers in the OAuth format: {"error": "invalid_client", "error_description": "…"}.