Create secret

Create a new secret in this organization. <Note>Only organization admins can create secrets.</Note>

Authentication

AuthorizationBearer
Bearer HTTP authentication.

Headers

IB-ContextstringOptional

Typically your organization ID. See Authorization and context identification for details.

Request

This endpoint expects an object.
aliasstringRequired
Name of the secret.
valuestringRequired
Content of the secret.
allowed_workspaces_typeenumRequired
Which workspaces in this organization are allowed to use this secret in custom functions.
Allowed values:
descriptionstringOptional
Description of the secret.
allowed_workspaceslist of stringsOptional

Which workspaces are allowed to use this secret, if only some are allowed. Required when allowed_workspaces_type is SOME, otherwise ignored.

Response

Secret created successfully.