Skip to content
GenerateDocs
What's new
APIAPI keys
On this page

Create and manage Generate API keys

Create an API key in Settings, limit it to chat agents or workflows, store its token safely, and revoke it when an external system no longer needs it.

EditionsEnterprise: availableConsumer: availableStorage: availableHealthcare: availableAirgapped: available
Who can do thisAnyone whose team grants the API keys privilege, which teams hold by default.
WhereThe account menu, then Settings, then API Keys.

Short answer: the overview on docs.iterate.ai

This page shows you how to create the API keys that let a system outside Generate call your agents and workflows over HTTPS.

Each key belongs to the person who created it, and calls made with it run as that person.

Make a key for one external system and keep its token safe.

  1. Open API Keys

    Open your account menu, select Settings, then API Keys.

    The API Keys tab in Settings, listing one active key with its name, prefix, scope, last use and statusOpen full size
    Shown in the enterprise edition.
  2. Select Create key

    The Create API key window opens.

  3. Name the key

    Enter a Name that says which system uses it, such as “Production CRM bot”.

  4. Choose its capabilities

    Under Capabilities, keep Chat agents, Workflows or both. Both are ticked to start with, and a key can only call what it is scoped for.

    The Create API key window with a name entered and both the Chat agents and Workflows capabilities tickedOpen full size
    Shown in the enterprise edition.
  5. Select Create key

    Save your API key shows the token.

  6. Store the token

    Copy the token and store it in your secret manager, then select I’ve saved it. The token is shown once and Generate cannot show it to you again, so a lost token means creating a new key.

A key is authorized on every workflow you own and every workflow shared with you. You do not attach it to workflows one at a time.

Rename a key, change what it may call, or turn it off for good.

  1. Open the key’s menu

    On API Keys, open the menu on the key’s row.

  2. Select Edit or Revoke

    Edit changes its name or capabilities. Revoke disables it for every caller at once; Generate asks you to confirm, because a revoked key cannot be restored.

Column What it shows
Name The name you gave the key
Prefix The start of the token, to tell keys apart without exposing them
Scope Chat agents, Workflows or both
Last used When a call last arrived with the key
Status Active, or Revoked

Use Search keys to find a key by name, and Sort by to order the list by Date created, by name or by Status.

You do not always need to create a key yourself. Turning on API Access for an agent, or adding an HTTP Trigger node to a workflow, provisions a key for you the first time, and it appears in this list like any other. See Call an agent over HTTP and Trigger a workflow over HTTP.

Status Meaning
401 “Missing X-API-Key header” The request carried no key.
401 “Invalid API key” The key is wrong, revoked, or its owner’s account is no longer active.
403 “This API key is not scoped to trigger chat agents.” Edit the key and add Chat agents.
403 “This API key is not scoped to trigger workflows.” Edit the key and add Workflows.
404 The agent or workflow does not exist, or the key’s owner cannot reach it.

Last updated on