v2

latestOpenAPI 3.1.02026-08-06276982.8 KB
secrets

Create secret

Create a new secret in this organization.

<Note>Only organization admins can create secrets.</Note>

post/v2/aihub/secrets

Headers

Authorizationstring required

Bearer HTTP authentication.

IB-Contextstring

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

Request body

aliasstring required

Name of the secret.

descriptionstring

Description of the secret.

valuestring required

Content of the secret.

allowed_workspaces_type'ALL' | 'SOME' | 'NONE' required

Which workspaces in this organization are allowed to use this secret in custom functions.

allowed_workspacesstring[]

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.

SecretsCreateSecretResponse200 required

Empty response body