Skip to content

API keys

An API key is a long-lived credential for connecting something to Kreel that isn’t a person clicking through a login screen: the kreel CLI, a script, an automation tool like n8n, or an MCP client that doesn’t support OAuth yet. If you’re connecting Claude or ChatGPT as a remote MCP connector, you don’t need a key at all - see Connect an AI agent for the OAuth path. Use a key when you need one.

  1. Sign in to Kreel at app.kreel.ai.
  2. In the left navigation, click API keys.
  3. Click + Create key.
  4. Fill in the form:
    • Label - a name to remember it by, for example “Claude Desktop - Paul”.
    • Surface - what will use the key: Claude Desktop, Claude Code, ChatGPT, Kreel CLI, or Other.
    • Scopes - Read and Write are on by default; PII access is off by default (see Scopes below).
  5. Click Create →.

A Kreel API key looks like this:

kreel_live_8f3e12a9c47b0d5e2f6a1c8b3d9e0f4a7b2c5d8e1f0a3b6c9d2e5f8a1b4c7d0e

The full key is shown to you once, right after you click Create. Copy it immediately and store it somewhere safe. After that, Kreel only shows a shortened form (the prefix plus the last few characters) and stores a hash of the full key, not the key itself. If you lose the key, you cannot recover it - you have to rotate it for a new one.

Each key carries one or more scopes that control what it can do:

  • Read - view brand performance data. On by default.
  • Write - update Brand Knowledge Base content (profile, sections, competitors, learnings) and create drafts or uploads. On by default.
  • PII access - required for data that includes customer-level personal information. Off by default.

A key can never carry more access than your own role in the workspace currently allows. If you ask for a scope your role doesn’t permit, key creation is rejected; if you don’t specify scopes at all, Kreel quietly limits the key to what your role allows.

A key is scoped to one workspace, and owned by the person who created it. It reaches every brand in that workspace that its owner can currently access, checked live on every call, not a fixed list saved at creation time.

This matters in practice:

  • If your role or brand access changes later (for example, you’re removed from a brand), any key you created loses that access immediately, without anyone touching the key.
  • A key never reaches your other workspaces, even if you have access to brands there.
  • To see exactly which brands a key can reach right now, open the key on the API keys page and use its Brands toggle.

A key can reach multiple brands, so each call still has to say which brand it means:

  • REST calls pass ?client_id=<brand id> on the request.
  • MCP tools take a brand argument.
  • The CLI uses the --brand flag, or the KREEL_BRAND environment variable as a default.

If a key only reaches one brand, you can usually omit this and Kreel uses that single brand automatically. See Connect an AI agent and The Kreel CLI for the full setup on each surface.

Rotating replaces a key’s secret value while keeping its scopes and brand access. Use it when a key needs a fresh secret but you don’t want to reconfigure everything that uses it.

On the API keys page, find the key and click Rotate. Kreel creates a new key (named after the old one, with ” (rotated)” appended) and immediately deactivates the old one. The new key’s full value is shown once, the same as at creation - copy it and update wherever the old key was in use.

Only an active key can be rotated. A revoked key can’t be rotated back to life - create a new key instead.

On the API keys page, find the key, click Revoke, and confirm. The key stops working immediately. This cannot be undone; if you need access again, create a new key.

Revoke a key whenever it’s no longer needed, or right away if it may have leaked.

A key can be managed (rotated or revoked) by the person who created it, or by an owner or admin of its workspace.

For background on how workspaces, brands, and seats relate to each other, see Workspaces, brands, and seats.

Email support@kreel.ai and we will help you sort it out.