Skip to Content

Secrets

Store the API tokens your tools need. Write-only, referenced by name, never readable back.

A secret is a named credential your tools and MCP servers use to authenticate against your systems. You write the value once. The API returns metadata, never the value, including in the create response. Tools can use the stored credential without exposing it to the agent.

{
  "name": "crm_token",
  "description": "CRM API token",
  "value": "sk-live-example-not-a-real-token"
}

Over the API: POST /v1/secrets.

What you get back is metadata: the name, the description, when it was last used, and the last few characters so you can tell which value is stored. No endpoint returns the value.

Names use 2–64 letters, digits or underscores. Values can be up to 16 KiB.

Using a secret

Reference it by name:

  • In a tool header or body — "Authorization": "Bearer {{secrets.crm_token}}", or a secret parameter with an optional literal prefix.
  • For MCP authentication — auth_secret_ref and the OAuth equivalents.

Secrets can only be used over HTTPS, and only where the agent can't see them: never in a URL, never in anything the agent might say. Test results, error messages, and logs are redacted before they leave the platform.

Rotating

Because tools reference secrets by name, rotating a credential never touches your tool configuration:

  1. Issue the new credential in your own system.
  2. PATCH /v1/secrets/{id} with the new value. It takes effect on the next tool call.
  3. Revoke the old one.

Removing

A secret still referenced by an active tool or MCP server can't be archived; the error lists what's using it. Once archived, the name is free for a new secret.

See also

Tools · MCP servers

On this page