Skip to main content
POST
Create an org-level secret

Permissions

Requires a service user with the ManageOrgSecrets permission at the organization level.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

org_id
string
required

Organization ID (prefix: org-)

Example:

"org-abc123def456"

Body

application/json
key
string
required
type
enum<string>
required
Available options:
cookie,
key-value,
totp
value
string
required
is_sensitive
boolean
default:true
note
string | null

Response

Successful Response

access_type
enum<string>
required
Available options:
org,
personal
created_at
integer
required
created_by
string
required
is_sensitive
boolean
required
key
string | null
required
note
string | null
required
secret_id
string
required
secret_type
enum<string>
required
Available options:
cookie,
key-value,
totp
updated_at
integer | null
updated_by
string | null