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 calls | How it signs in | Acts as |
|---|---|---|
| Software on its own — an n8n workflow, a shop sync, an AI agent your company runs | A service account: an API key or OAuth client credentials | The service account, with its own permissions |
| An AI client a person uses — Claude, ChatGPT, Copilot | OAuth in the browser; the client registers itself | The person, in the workspaces they choose |
| A platform acting for each person — HubSpot, Salesforce per user | OAuth with an app registered by hand | The person who signs in and consents |
| A person in the app | Their sign-in to heycreo | Themselves |
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
| Method | How it is sent | Applies to | Default | Use it for |
|---|---|---|---|---|
| API key in a header | Authorization: Bearer heycreo_… or X-API-Key: heycreo_… | REST · MCP | On | n8n, LangGraph, CrewAI, your own code, the Claude API's MCP connector |
| OAuth client credentials | Client ID and secret at the token endpoint, then Authorization: Bearer <access token> | REST · MCP | On | Salesforce Agentforce, enterprise integration platforms |
| API key as a URL parameter (not recommended) | ?api_key=heycreo_… | REST · MCP | Off | Tools 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 only | Off | MCP 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
| Platform | What it can send | What to choose in heycreo |
|---|---|---|
| Claude, ChatGPT (custom connector) | OAuth 2.1 with dynamic client registration | Nothing to set up: add https://app.heycreo.io/api/mcp as a connector. Acts as the person who connects. |
| Claude API, MCP connector | authorization_token (Bearer) only, no custom headers | A service account key, passed as authorization_token. No X-heycreo-Org needed. |
| Microsoft Copilot Studio | An API key in one header (name configurable) or a query parameter; OAuth 2.0 with dynamic discovery or a manual client | API 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 keys | OAuth client credentials on a service account for the agent itself; an app to act per user. |
| HubSpot MCP connector | Authorization code with PKCE S256, pre-registered client, refresh tokens, redirect https://oauth-redirect.hubspot.com/callback/mcp_server, discovery at the domain root | An app with exactly that redirect URI. |
| HubSpot workflows, "Send a webhook" | An API key in one header or a query parameter | API key in a header, header name X-API-Key. |
| Zapier and tools that take a "connection URL" | A URL with the secret in it | Secret MCP connection URL (MCP). For the REST API: API key as a URL parameter. |
| n8n, LangGraph, CrewAI, your own code | Any header | API key in a header, or client credentials for short-lived tokens. |
Errors
| Status | Meaning |
|---|---|
401 | No 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 |
403 | Authenticated, 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": "…"}.