Skip to main content
POST
/
v1
/
secrets
Creates a secret
curl --request POST \
  --url https://api.rootly.com/v1/secrets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "type": "secrets",
    "attributes": {
      "name": "<string>",
      "secret": "<string>",
      "kind": "built_in",
      "hashicorp_vault_mount": "secret",
      "hashicorp_vault_path": "<string>",
      "hashicorp_vault_version": 0
    }
  }
}
'
{
  "data": {
    "id": "7a7629ea-d2cb-41f0-b506-8c82c8f5d7ec",
    "type": "secrets",
    "attributes": {
      "kind": "built_in",
      "name": "kdhqkubgmr",
      "secret": "[REDACTED]",
      "hashicorp_vault_mount": "secret",
      "hashicorp_vault_path": null,
      "hashicorp_vault_version": 0,
      "created_at": "2026-01-22T19:24:53.321-08:00",
      "updated_at": "2026-01-22T19:24:53.321-08:00"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/vnd.api+json
data
object
required

Response

secret created

data
object
required