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

# 创建 Secret

> 在你的组织中创建一个新的 Secret

创建一个新的加密 Secret，可在 Devin 会话中使用。该 Secret 添加后，将在之后创建的所有会话中可用。

<div id="request-body">
  ## 请求体
</div>

<ParamField body="type" type="string" required>
  机密类型。必须为以下之一：`cookie`、`key-value`、`totp`
</ParamField>

<ParamField body="key" type="string" required>
  机密的用户自定义名称。在组织内必须唯一。
</ParamField>

<ParamField body="value" type="string" required>
  要存储的机密值。将会以静态加密方式保存。
</ParamField>

<ParamField body="sensitive" type="boolean" required>
  是否将该机密视为敏感信息，并在日志中进行脱敏处理。
</ParamField>

<ParamField body="note" type="string" required>
  可选备注，用于说明该机密的用途。
</ParamField>

<div id="response">
  ## 响应
</div>

<ResponseField name="id" type="string">
  所创建机密的唯一标识符
</ResponseField>
