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

# Secrets

> Store an API key or token once and let your tools send it as a header, without anyone reading it back. Rotate it in one place.

A secret is a named credential, such as an API key, that your workspace's
tools send as a request header. You type the value once; after that nobody can
read it back, you included. Tools keep only the secret's name, so a new value
reaches every tool that uses it on its next call, with nothing to republish.

Open **Workspace settings → General** and find **Secrets**. Owners and
Members can add, update and delete secrets. Viewers see the names and where
each one is used, never the values.

![Secrets section of Workspace settings General with Add secret, a search box and two secrets: JOTFORM\_API\_KEY used by five Jotform tools, and ORDERS\_API\_KEY marked Unused](https://mintcdn.com/centillion/N4uSPACxOe7yqp8V/images/workspaces/secrets-01-list.webp?fit=max\&auto=format\&n=N4uSPACxOe7yqp8V\&q=85\&s=b26428b368c99fa5c2ba3beac23facb2)

Secrets lists each secret's name and the tools and published agents that send it.

## Add a secret

Choose **Add secret**, give it a name and paste the value, then choose
**Add secret** again.

* **Name**: up to 100 characters, starting with a letter or digit, using
  letters, digits, spaces, dots, dashes and underscores. Names are unique in
  the workspace, ignoring case. A workspace keeps up to 100 secrets.
* **Value**: up to 8,192 characters. Spaces and a line break at either end are
  dropped, since a pasted key often ends with one. A line break inside the
  value is refused, because tools send it as a header.

![Add secret panel open beside Workspace settings General, with the name SHIPPING\_API\_KEY typed and an empty Value box](https://mintcdn.com/centillion/N4uSPACxOe7yqp8V/images/workspaces/secrets-02-add.webp?fit=max\&auto=format\&n=N4uSPACxOe7yqp8V\&q=85\&s=5661a63bf26382507ddb6c3db14c7d14)

Add secret: the value is encrypted when you save it and never shown again.

## Send a secret from a tool

In a webhook tool or an MCP server, under **Headers**, choose **Add header**,
set **Type** to **Secret**, type the header's name and pick the secret. Choose
**Create new secret** in the list to add one without leaving the tool.

![Tool settings showing Response fields with wildcard paths, and a Headers row with Type Secret, Name APIKEY and the secret JOTFORM\_API\_KEY](https://mintcdn.com/centillion/dlkH4zCWhrb5ysXa/images/workspaces/secrets-03-tool-header.webp?fit=max\&auto=format\&n=dlkH4zCWhrb5ysXa\&q=85\&s=4236c5301b5704c13f376d67f3f16ed2)

A header whose value is a secret: the tool sends JOTFORM\_API\_KEY's value as its APIKEY header.

A header is either a typed value or a secret, not both. A tool that signs in
with an [auth connection](https://cntillion.com/docs/workspaces/auth-connections.md) can't also send an
`Authorization` secret. For OAuth 2.0, Basic or a Bearer token, use an auth
connection rather than a secret. It renews OAuth tokens and builds the header
for you.

That goes for MCP servers too. A secret suits a key that never changes, such
as an `x-api-key` header. A server that wants a token from an OAuth 2.0 client
credentials grant, which expires after an hour or so, needs a connection
under **Authentication** instead. A secret would hold one token, and the
server would refuse it once it expired. The server can still send secrets as
its other headers beside the connection.

The secret's value is read when the tool runs. If an API repeats the value
back in its response, the tool masks it as `••••••••` before the agent or the
Tool Logs see it.

## Change or rotate a secret

Open the secret's **⋮** menu and choose **Update secret**. Rename it, paste a
new value, or both; leave **Value** empty to keep the current one. Tools and
published agents that send the secret use the new value from their next call.

## Delete a secret

Open the secret's **⋮** menu and choose **Delete secret**. A secret can't be
deleted while it's in use: remove it from every tool that sends it, and publish
the agents whose live version still sends it. Deleting can't be undone.

If a tool runs after its secret is gone, the call stops and its error names the
header, never a value.

## Who can use a secret

Anyone who can edit a tool can pick any of the workspace's secrets for it, and
so can send that secret to the server the tool calls. Secrets keep values out
of the dashboard, the API and the logs; they don't limit which editors can use
them.

## From the API and AI assistants

The Developer API manages secrets under `/secrets`, and a tool names a secret
in its `secretHeaders`. See [Workspace secrets](https://cntillion.com/docs/api-reference/developer-api.md#workspace-secrets).
AI assistants list secrets with `list_secrets`; see
[AI assistants (MCP)](https://cntillion.com/docs/developer-guides/mcp.md).


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