API keys

User keys and app keys: how they differ, how to create, disable and store them securely.

On this page

An API key is an ID and secret pair that you use to authenticate requests in an HTTP Basic header. There are two kinds of keys, and they differ in on whose behalf they act.

API keys in account settingsAPI keys in account settings
You create a user key in /settings/api-keys. The secret is shown only once.
User keyApp key
Acts asYouThe app
PermissionsAll permissions of your accountOnly the permissions granted to the app
ScopeAll workspaces you belong toWorkspaces where the app has access
Where to create itAccount settings, API keysApp page, API keys
What it's forYour own scripts and quick testsIntegrations, automations, shared configurations

User key

  1. Open account settings / API keys.

  2. Create a new key and give it a name you'll recognize in six months, for example “Sales report in cron”.

  3. Optionally set an expiry date.

  4. Copy the ID and secret to a password manager or environment variables. The secret is shown only once, when you create the key. If you lose it, create a new key.

App key

An app key authenticates the app itself. Only the permissions granted to the app count, without combining them with any particular person's permissions. It's the best choice for server-to-server integrations, n8n workflows or MCP configurations shared by the whole team.

You create app keys on the app page, in the API keys tab. When the app lacks access, the administrator grants it in the workspace settings, and the app can request it itself, as described in the Permissions and access guide.

Disabling, expiry and deletion

You can disable any key at any time and enable it again later. A key with an expiry date stops working on its own. Requests with a disabled, expired or deleted key end with a 401 error.

Managing keys through the API

You can also handle user keys from code. These endpoints aren't available through MCP.

MethodPathWhat it does
GET/me/api-keysList of your keys, without secrets
POST/api-keyNew key. Body: name, isEnabled, optionally expiresAt. Only this response contains the secret
PATCH/api-key/:apiKeyIdRename, enable or disable
DELETE/api-key/:apiKeyIdDelete the key

For app keys, the same operations are under /app/:appId/api-keys.

POST /api-key, response
{
  "success": true,
  "data": {
    "apiKey": {
      "id": "65a1f0c2b3d4e5f601234567",
      "name": "Sales report in cron",
      "secret": "…",
      "isEnabled": true
    }
  }
}

Good practices

  • One key per integration. If something leaks, you disable one key, not everything at once.

  • Keep the secret in environment variables or a secrets manager, never in the repository.

  • Set an expiry date for test keys.

  • In apps that other users sign in to, use OAuth 2.1 instead of keys.