Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/vnd.api+json
Response
secret created
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": {
"kind": "built_in",
"name": "<string>",
"secret": "<string>",
"hashicorp_vault_mount": "secret",
"hashicorp_vault_path": "<string>",
"hashicorp_vault_version": 0
}
}
}'
{
"data": {
"id": "1a3566ef-844a-4a7e-9e4f-fdd9dc631279",
"type": "secrets",
"attributes": {
"kind": "built_in",
"name": "yewiwnmpzj",
"secret": "[REDACTED]",
"hashicorp_vault_mount": "secret",
"hashicorp_vault_path": null,
"hashicorp_vault_version": 0,
"created_at": "2025-09-17T17:51:18.754-07:00",
"updated_at": "2025-09-17T17:51:18.754-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Show child attributes
secret created
Show child attributes
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": {
"kind": "built_in",
"name": "<string>",
"secret": "<string>",
"hashicorp_vault_mount": "secret",
"hashicorp_vault_path": "<string>",
"hashicorp_vault_version": 0
}
}
}'
{
"data": {
"id": "1a3566ef-844a-4a7e-9e4f-fdd9dc631279",
"type": "secrets",
"attributes": {
"kind": "built_in",
"name": "yewiwnmpzj",
"secret": "[REDACTED]",
"hashicorp_vault_mount": "secret",
"hashicorp_vault_path": null,
"hashicorp_vault_version": 0,
"created_at": "2025-09-17T17:51:18.754-07:00",
"updated_at": "2025-09-17T17:51:18.754-07:00"
}
}
}