:::callout{intent="note" title="Naming your API Key"}
API Key names cannot have spaces.
:::

## Web Platform

1. Sign into your Cohere account.
2. Scroll down to the `API Keys` section of the homepage.
3. Click `Create an API Key`.
4. Create a unique name for your API key, then click `Create an API Key` again to create your API key.
5. Copy your API key.

## CLI

Use the command `co key create [key_name]`.

:::callout{intent="info"}
You must be [signed in](https://dashboard.cohere.com/welcome/login) to use this command.
:::

# Retrieving an API Key

## Web Platform

1. Sign into your Cohere account.
2. Scroll down to the `API Keys` section of the homepage.
3. View the list of API keys attached to your account or organization.

:::callout{intent="info"}
You can not retrieve API Keys on the web platform- make sure you copy and backup your keys when prompted. You will always be able to see the names of the keys you've created, however.
:::

## CLI

Use the command `co key list`.

# Deleting an API Key

## Web Platform

1. Sign into your Cohere account.
2. Scroll down to the `API Keys` section of the homepage.
3. Click `Revoke Key`.

## CLI

Use the command `co key revoke [key_name]`.

## Related pages

- [Changelog](../changelog.md)
- [Cohere](../index.md)
- [Cohere API](./cohere-api-index.md)
- [Cohere Labs](./cohere-labs-index.md)
- [Cohere Platform](./cohere-platform-index.md)
- [Cookbooks](./cookbooks-index.md)
- [Deployment Options](./deployment-options-index.md)
- [Embeddings (Vectors, Search, Retrieval)](./embeddings-vectors-search-retrieval-index.md)
- [Get Started](./get-started-index.md)
- [Going to Production](./going-to-production-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
