Skip to main content
POST
Create secret

Authorizations

Authorization
string
header
required

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Body

application/json
name
string
required

Human-readable name for the secret

Example:

"My Secret"

secret
string
required

Value of the secret

Example:

"my-secret-password"

tag
string
required

Unique identifier for the secret

Example:

"my-secret"

Response

Successfully created secret

id
string
required

Unique, immutable, 18-character auto-generated identifier for the secret

Example:

"se2da8159dbeefb974"

tag
string
required

Unique identifier for the secret

Example:

"my-secret"

name
string

Human-readable name for the secret

Example:

"My Secret"

Last modified on September 24, 2026