跳转到主要内容
POST
创建组织级别密钥

权限

需要具有组织层级 ManageOrgSecrets 权限的服务用户。

授权

Authorization
string
header
必填

服务用户凭据(前缀:cog_)

路径参数

org_id
string
必填

组织 ID(前缀:org-)

示例:

"org-abc123def456"

请求体

application/json
key
string
必填
type
enum<string>
必填
可用选项:
cookie,
key-value,
totp
value
string
必填
is_sensitive
boolean
默认值:true
note
string | null

响应

成功响应

access_type
enum<string>
必填
可用选项:
org,
personal
created_at
integer
必填
created_by
string
必填
is_sensitive
boolean
必填
key
string | null
必填
note
string | null
必填
secret_id
string
必填
secret_type
enum<string>
必填
可用选项:
cookie,
key-value,
totp
updated_at
integer | null
updated_by
string | null