メインコンテンツへスキップ
POST
/
v3beta1
/
organizations
/
{org_id}
/
secrets
組織レベルのシークレットを作成する
curl --request POST \
  --url https://api.devin.ai/v3beta1/organizations/{org_id}/secrets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "type": "cookie",
  "value": "<string>",
  "is_sensitive": true,
  "note": "<string>"
}
'
{
  "access_type": "org",
  "created_at": 123,
  "created_by": "<string>",
  "is_sensitive": true,
  "key": "<string>",
  "note": "<string>",
  "secret_id": "<string>",
  "secret_type": "cookie"
}

権限

組織レベルで ManageOrgSecrets 権限が付与されたサービスユーザーが必要です。

承認

Authorization
string
header
必須

サービスユーザーの認証情報(接頭辞: cog_)

ボディ

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