Zum Hauptinhalt springen

Service accounts

Software that works with heycreo on its own — an n8n workflow, a shop sync, an AI agent your company runs — connects as a service account: an actor of its own, with a name, its own permissions, a contact person if there is one, and its own credentials. It keeps working when the person who set it up leaves, and the audit log and the designs it makes name the service account, not a person.

Create service accounts in the app under Settings → Developers → Service accounts (workspace administrators). Each one chooses the ways it may sign in; the safe ones are on by default, the weaker ones are off until you switch them on. A platform that acts for the person who signs in is an app, not a service account.

Interfaces and toolsets​

REST, MCP or both. Each service account says which interfaces its credentials may use; both are allowed by default. A credential used on an interface that is switched off is refused with 401. The Access tab lists the addresses to enter in your tool: the REST base URL (https://app.heycreo.io/api/organizations/<organization id>), the MCP server (https://app.heycreo.io/api/mcp) and, for OAuth, the token endpoint.

MCP toolsets. On MCP, a service account sees only the toolsets chosen on its Permissions tab (all by default) — for example an agent that fills templates: Lesen, Designs aus Vorlagen, Export. Read only hides every tool that changes data. Toolsets and read-only narrow MCP only, on top of the service account's permissions: on the REST API it may do what its permissions allow. The presets for agents (Copilot Studio, Salesforce Agentforce) therefore start with REST switched off. See MCP tools.

What a service account may do​

A service account takes no role. Its Permissions say, per area — designs (with their exports), templates, publications, media, datasets, brand kit — whether it may read the area and which of the area's permissions it holds (media, for example: upload, delete, folders, tags, custom fields, generate images and videos). A permission includes reading its area and what its work needs — creating designs reads templates and the brand kit. The same applies to the REST API and to MCP; a route or tool of an area it may not read answers 403 naming the area. Presets by purpose fill the permissions when you create one: export designs, external reviewer, upload media, read only. You can only grant permissions you hold yourself and open only areas you may read yourself — temporary access does not count — and changing them asks for MFA step-up. Creating a service account and every key or secret need two-factor authentication set up on your account. A service account never holds administration rights: members, roles, settings and service accounts themselves are managed by people only, and so are the workspaces below a Brand Central: creating and administering them is done in the app.

Keys​

  • A new key expires after one year unless you choose otherwise — at most two years, or explicitly never.
  • A service account holds up to two active keys, so you can put a new key in place before you revoke the old one.
  • Keys are shown once. heycreo stores only a hash.

Client credentials​

curl https://app.heycreo.io/oauth/token \
-u "hcsa_…:hcsec_…" \
-d grant_type=client_credentials
{ "access_token": "eyJ…", "token_type": "bearer", "expires_in": 3600, "scope": "" }

Both client_secret_basic (as above) and client_secret_post (client_id and client_secret in the form body) are accepted. The token is valid for 60 minutes, for the REST API and for MCP; there is no refresh token — ask for a new one. Renewing or revoking the client secret ends every token issued with the old secret at once; disabling the service account ends them too.

A secret in a URL ends up in places a header does not: browser histories, proxies, the logs of the platform that calls heycreo. heycreo removes it from the URL before anything on its side logs or reports the request, and its edge proxy does not log these requests — but it cannot clean up logs elsewhere. Switch these methods on only when the platform offers nothing better (the app asks you to confirm), and fence the service account to the platform's IP ranges if you can.

  • A key in the URL works for the REST API and for MCP, and only for keys of a service account that allows it.
  • A connection URL works for MCP only. It is revoked and renewed independently of the service account's keys.

Webhooks​

Webhook endpoints belong to a service account: open it under Settings → Developers → Service accounts and add them on its Webhooks tab. Settings → Developers → Webhooks lists the endpoints of all service accounts. An endpoint receives only what the service account may read — a design someone keeps private never reaches it — and nothing while the service account is switched off. You can narrow an endpoint further to events the service account caused itself. See Webhooks.

Recipes​

In the app, Settings → Developers → Service accounts → New service account asks what you connect heycreo to and switches on the matching sign-in methods. Each choice links here. Platforms that act per person are registered as an app under Settings → Developers → Apps.

n8n​

  1. Create the service account with n8n. Its last step makes the key and shows it once, with every value below ready to copy.
  2. In n8n, add a Header Auth credential: name X-API-Key, value the key.
  3. Use it in the HTTP Request node against https://app.heycreo.io/api/…, or in the MCP Client node with https://app.heycreo.io/api/mcp.

Zapier and similar tools​

  1. Create the service account with Zapier & co.; its last step makes the key and shows it once.
  2. Send the key as X-API-Key wherever the tool lets you set a header.
  3. Only if the tool takes nothing but a URL: add Connection URL (MCP) or API key as a URL parameter (REST) on the Access tab. Both are not recommended; read the warning there first.

Microsoft Copilot Studio​

Nothing to create for people: add https://app.heycreo.io/api/mcp as an MCP server with Dynamic discovery; each person signs in to heycreo and consents, within the workspace's maximum for AI clients. If your tenant requires a manual client, register an app with Copilot Studio's redirect URI instead. Create a service account only if the agent should act as itself: choose Microsoft Copilot Studio (Autonomous agent); its last step makes a key and shows the server URL and the header X-API-Key to enter in the agent. In the tool's Additional details, choose Maker-provided credentials: by default Copilot Studio asks every user for the key, and an agent started by a trigger has no user to ask.

HubSpot​

  1. Under Settings → Developers → Apps, register an app named HubSpot with the redirect URI https://oauth-redirect.hubspot.com/callback/mcp_server, and choose at most which areas people may allow it.
  2. Enter client ID, secret and the endpoints from Apps in HubSpot.
  3. Each person who connects signs in to heycreo and consents.

Salesforce​

  • Per person: register an app with Salesforce's callback URL as its redirect URI and enter the values in Salesforce, as for HubSpot.
  • Agentforce agent acting as itself: create it with Salesforce Agentforce (Autonomous agent) — its last step makes the client secret and shows it once — and configure client credentials in Salesforce with the token endpoint https://app.heycreo.io/oauth/token.

Your own code or agent​

Create the service account with Your own code / agent (its last step makes a key and shows it once), and send it as Authorization: Bearer heycreo_… or X-API-Key. For short-lived tokens instead of a long-lived key, add OAuth client credentials on Access and fetch a token as shown under Client credentials.

An agent or a system of your own can also be an external reviewer — see the next recipes. A service account does not read the approvals of the workspace: it reaches the requests it is listed on, and their webhooks.

Decide approvals from another system​

A customer portal, a ticket tool or a legal team's workflow shows the request to its own people, and one of them approves or rejects it there.

  1. Create the service account with the preset External reviewer: it reads designs and media. Add a key.
  2. In Settings → Approvals, open the target and, on its Reviewers tab, set the service account to Decides under External reviewers. Its vote counts by the rule, like a person's.
  3. Subscribe its webhook to approval.requested; show the request in your system.
  4. When someone decides there, report it — naming them in onBehalfOf, shown with the decision and kept in the audit log:
POST https://app.heycreo.io/api/organizations/<organization id>/approvals/<id>/decide
X-API-Key: heycreo_…
Content-Type: application/json

{ "decision": "approved", "comment": "Looks good", "onBehalfOf": "Anna Schmidt" }

heycreo records the name your system sends; it cannot verify it. On MCP the tool is decide-approval.

Automatic check with n8n​

An n8n workflow checks every design before a person approves it — brand rules, mandatory texts, spelling — and reports what it found. It can hold an approval back; it can never approve. The full recipe, with an AI model that reads the design's preview: Check designs with n8n before approval.

  1. Create the service account with the preset External reviewer for approvals. Add a key. For MCP, its toolsets are Read and Approvals, read-only off.
  2. In Settings → Approvals, open the target (e.g. Design export approval) and, on its Reviewers tab, set the service account to Only checks under External reviewers; someone else must decide. Optionally set how long to wait for the check on the Decision tab (default 30 minutes).
  3. On the service account's Webhooks tab, subscribe an n8n Webhook node's URL to approval.requested. The event carries data.approval.id, entityType, entityId and round.
  4. In the workflow, load the request (GET …/approvals/{id}): it names the design in subjectTitle and links its preview in thumbnailUrl. Check it, and report — with the round from the event:
POST https://app.heycreo.io/api/organizations/<organization id>/approvals/<id>/checks
X-API-Key: heycreo_…
Content-Type: application/json

{ "result": "failed", "summary": "Mandatory text missing in the footer", "details": "https://n8n.example.com/run/42", "round": 0 }

passed lets the people's decision through; failed holds the approval until a reviewer approves anyway, with a reason. Report once per round: the same result again is answered as it stands, a different one is refused with 409. When the request is resubmitted or the design changes, the checks start a new round and approval.requested comes again with the new round. Always echo the round you checked (or send contentVersion, the entityContentVersion you checked): a report for an earlier round is refused with 409, so a slow check of the old design can never pass the new one. details must be an http or https link. An agent on MCP does the same with the tool submit-approval-check.