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

# Overview

> Store API keys and credentials securely in the Secrets Vault.

Store API keys, tokens, and credentials securely. Your agent's [tools](https://docs.poly.ai/tools/introduction.md) retrieve them at runtime – no hardcoded secrets in code, logs, or version history.

> [!NOTE]
>
> Secrets are managed at the **account level**, not inside individual agents. Access the Secrets Vault from the **Secrets** tab in the workspace top bar (**Agents / Users / Usage / API Keys / Secrets**) — separate from the per-agent sidebar.

> [!NOTE]
>
> The Secrets tab is only visible to **workspace admins** on supported workspaces. If you are an admin and the tab is not visible in your workspace, the Secrets Vault may not be enabled for your account yet — [contact PolyAI support](https://docs.poly.ai/learn/maintain/common-issues.md) to request access.

![Secrets Vault overview](https://mintcdn.com/polyai/mC-hBNxhbQLRsMMg/images/secrets/secrets-vault-overview.png?fit=max\&auto=format\&n=mC-hBNxhbQLRsMMg\&q=85\&s=e157ee18d01dab48c854cbce79a8c9d7)

## How it works

1. You [create a secret](https://docs.poly.ai/secrets/how-to-setup.md) in the Secrets Vault with a name, optional description, and value.
2. You [grant access](https://docs.poly.ai/secrets/how-to-access-control.md) to specific agents.
3. Functions retrieve the secret at runtime using `conv.utils.get_secret("secret_name")`.

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
api_key = conv.utils.get_secret("stripe_api_key")
response = requests.get(url, headers={"Authorization": f"Bearer {api_key}"})
```

## Storage formats

Secrets can be stored as:

* **Single value** – A plain string (e.g., an API key).
* **Key/value pairs** – A dictionary of related credentials (e.g., `client_id` and `client_secret`).

## Next steps

> [card] [Create a secret](https://docs.poly.ai/secrets/how-to-setup.md)
>
> Add a new secret to the Secrets Vault.

> [card] [Manage access control](https://docs.poly.ai/secrets/how-to-access-control.md)
>
> Grant secrets to specific agents.

> [card] [Use in functions](https://docs.poly.ai/secrets/how-to-setup.md#using-secrets-in-functions)
>
> Retrieve secrets at runtime in your code.
