Creates a new secret from provided data
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": "ded6b858-87ba-40b4-8dba-f0462f8de0ff",
"type": "secrets",
"attributes": {
"kind": "built_in",
"name": "gcjqgpfxxk",
"secret": "[REDACTED]",
"hashicorp_vault_mount": "secret",
"hashicorp_vault_path": null,
"hashicorp_vault_version": 0,
"created_at": "2025-12-15T13:48:45.533-08:00",
"updated_at": "2025-12-15T13:48:45.533-08:00"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
secrets Show child attributes
The name of the secret
The secret
The kind of the secret
built_in, hashicorp_vault The HashiCorp Vault secret mount path
The HashiCorp Vault secret path
The HashiCorp Vault secret version
secret created
Show child attributes
Unique ID of the secret
secrets Show child attributes
The name of the secret
Date of creation
Date of last update
The redacted secret
The HashiCorp Vault secret mount path
The HashiCorp Vault secret path
The HashiCorp Vault secret version
Was this page helpful?
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": "ded6b858-87ba-40b4-8dba-f0462f8de0ff",
"type": "secrets",
"attributes": {
"kind": "built_in",
"name": "gcjqgpfxxk",
"secret": "[REDACTED]",
"hashicorp_vault_mount": "secret",
"hashicorp_vault_path": null,
"hashicorp_vault_version": 0,
"created_at": "2025-12-15T13:48:45.533-08:00",
"updated_at": "2025-12-15T13:48:45.533-08:00"
}
}
}