Skip to main content

API Keys

API keys authenticate requests to an agent. They are issued for a running agent, in the environment that it runs in. For information on how API keys secure the endpoints of an agent, see Secure Agent Endpoints with API Keys.

Open the API Keys page​

  1. Open the agent from the breadcrumb at the top of the Console.
  2. In the left navigation, under Security, click Credentials. The API Keys page opens.

If the agent is not deployed in the environment yet, the page shows Deploy your agent to manage its keys. Click Go to Deploy to deploy the agent first. For more information, see Deploy an Agent.

Create an API key​

  1. On the API Keys page, click Create API key. The Create API Key panel opens.

  2. Enter the following:

    FieldDescriptionExample
    Display nameA name for the API key.production key
    ExpiresThe date on which the key expires. The key expires at the end of the selected day.12/20/2026
  3. Click Create.

The API key is shown at the top of the page. Click the copy icon to copy it.

caution

The API key is shown only once. Copy it and store it securely before you close the message.

View API keys​

The API Keys page lists the agent's API keys with the following:

ColumnDescription
NameThe display name of the key.
KeyThe last characters of the key, for example ****f520.
StatusThe status of the key, for example Active.
ExpiresThe date and time when the key expires.

Delete an API key​

On the API Keys page, click the delete icon of the key.

Next steps​

  • To chat with the deployed agent or call its API, see Try Your Agent.

Was this page helpful?