Secrets

API key must have the Create secrets permission.

post/api/v1/secrets

Request

  • Base URL
    https://api.getcortexapp.com
  • URL
    https://api.getcortexapp.com/api/v1/secrets
  • Auth
    HTTP bearer

Request body

namestring required

Human-readable name for the secret

secretstring required

Value of the secret

tagstring required

Unique identifier for the secret

Example request

{
  "name": "My Secret",
  "secret": "my-secret-password",
  "tag": "my-secret"
}

Response

Successfully created secret

idstring required

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

namestring

Human-readable name for the secret

tagstring required

Unique identifier for the secret

Example response

{
  "id": "se2da8159dbeefb974",
  "name": "My Secret",
  "tag": "my-secret"
}

Changes