> ## Documentation Index
> Fetch the complete documentation index at: https://developers.argosidentity.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API key (Omni v1)

> How to view, copy, and regenerate your key on Project Management → API Key.

> [!WARNING]
>
> This page describes **Omni v1** (`https://omni-v1.argosidentity.com`). Omni v1 stays available until December 31, 2026. For the new dashboard that opens at `omni.argosidentity.com` on November 30, 2026, see [Moving to the new dashboard](https://developers.argosidentity.com/en/omni/getting-started/new-dashboard.md).

**Where:** sidebar **Project Management** → **API Key** tab

One API key is issued automatically when you create a project. There is one key per project, and you view and regenerate it here.

![API Key tab](https://mintcdn.com/argosidentity/OPYUfjaSdQpOBnpM/images/omni/en/project-api-key.png?fit=max\&auto=format\&n=OPYUfjaSdQpOBnpM\&q=85\&s=1734055700199e2e67a2968d10b7e8b9)

The API Key tab — the key is masked, with view, copy, and regenerate controls.

## What is on the screen

| Element | Description |
| - | - |
| API key | Starts with `sk_live_…`, with the rest masked |
| 👁 (eye icon) | Reveals the full value, or masks it again |
| 📋 (copy icon) | Copies it to the clipboard. Briefly changes to "Copied!" on success |
| Created | Shown under the field as `Created: 2026-09-10 13:23:56` |
| Regenerate | Revokes the current key and issues a new one |

**The last-used time is not on this screen.** Only the creation time is shown.

Below that, the screen shows a **Keep your API key safe** notice — "Do not share your API key anywhere publicly accessible", "Regenerate immediately if you suspect the key has been exposed".

## Regenerating

Selecting **Regenerate** opens a confirmation dialog. Confirming **invalidates the current key** immediately and replaces it with a new one, and it cannot be undone. Requests sent with the old key receive `401` `OMNI_4005`.

Because there is only one key per project, **there is no window where the new key and the old key are both valid.** API calls fail from the moment you regenerate until you finish the rollout, so plan the order before you start.

**1. List what needs the new key first**

Write down every server, batch job, and CI pipeline that uses this key. Anything you miss becomes an outage the moment you regenerate.

**2. Regenerate and copy the new key**

Confirming in the dialog switches to the new key immediately. Copy it before you leave the screen.

**3. Update your secrets and redeploy**

Replace the value in your environment variables or secret manager and redeploy everything. Until this step is done, calls receive `401`.

> [!WARNING]
>
> If you suspect the key has been exposed in a public repository, a log, or client-side code, **regenerate it immediately.** A single leaked key can read and write every profile, document, and analysis result in that project. There is no narrower, read-only key.

## Handling the key

| Do not | Instead |
| - | - |
| Hardcode the key in your code | Use environment variables or a secret manager |
| Commit the key to a repository, public or private | Exclude it with `.gitignore` and inject it into CI as a secret |
| Call the API directly from a browser or mobile app | Call through your own server. Never ship the key to a client |
| Log whole request headers in logs or error reports | Mask the `x-api-key` header |
| Share the key over chat, email, or a document | Share access through your secret manager instead |

## Related pages

* [Authentication](https://developers.argosidentity.com/en/omni/getting-started/authentication.md) — using the `x-api-key` header and authentication errors
* [Admin settings](https://developers.argosidentity.com/en/omni/v1/dashboard/project/members.md) — adding, inviting, and removing administrators
* [API overview](https://developers.argosidentity.com/en/omni/api-reference/overview.md) — base URL and shared conventions


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.