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

# Create Secret

> Create a new secret in your organization

Create a new encrypted secret that can be used in Devin sessions. The secret will be available to all sessions created after the secret is added.

## Request Body

<ParamField body="type" type="string" required>
  Type of secret. Must be one of: `cookie`, `key-value`, `totp`
</ParamField>

<ParamField body="key" type="string" required>
  User-defined name for the secret. Must be unique within the organization.
</ParamField>

<ParamField body="value" type="string" required>
  The secret value to store. Will be encrypted at rest.
</ParamField>

<ParamField body="sensitive" type="boolean" required>
  Whether the secret should be treated as sensitive and redacted in logs.
</ParamField>

<ParamField body="note" type="string" required>
  Optional note describing the secret's purpose.
</ParamField>

## Response

<ResponseField name="id" type="string">
  The unique identifier of the created secret
</ResponseField>
