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
- Open the agent from the breadcrumb at the top of the Console.
- 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
-
On the API Keys page, click Create API key. The Create API Key panel opens.
-
Enter the following:
Field Description Example Display name A name for the API key. production keyExpires The date on which the key expires. The key expires at the end of the selected day. 12/20/2026 -
Click Create.
The API key is shown at the top of the page. Click the copy icon to copy it.
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:
| Column | Description |
|---|---|
| Name | The display name of the key. |
| Key | The last characters of the key, for example ****f520. |
| Status | The status of the key, for example Active. |
| Expires | The 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?