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": "ed9c1560-f36a-4825-a38f-dc074d5fcb25",
"type": "secrets",
"attributes": {
"kind": "built_in",
"name": "fzngrnjdel",
"secret": "[REDACTED]",
"hashicorp_vault_mount": "secret",
"hashicorp_vault_path": null,
"hashicorp_vault_version": 0,
"created_at": "2025-12-24T09:28:12.764-08:00",
"updated_at": "2025-12-24T09:28:12.764-08:00"
}
}
}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": "ed9c1560-f36a-4825-a38f-dc074d5fcb25",
"type": "secrets",
"attributes": {
"kind": "built_in",
"name": "fzngrnjdel",
"secret": "[REDACTED]",
"hashicorp_vault_mount": "secret",
"hashicorp_vault_path": null,
"hashicorp_vault_version": 0,
"created_at": "2025-12-24T09:28:12.764-08:00",
"updated_at": "2025-12-24T09:28:12.764-08:00"
}
}
}