Overview
Reference
- AlertEvents
- AlertGroups
- AlertUrgencies
- AlertSources
- Alerts
- Audits
- Authorizations
- CatalogEntities
- CatalogEntityProperties
- CatalogFields
- Catalogs
- Causes
- [DEPRECATED] CustomFieldOptions
- [DEPRECATED] CustomFields
- CustomForms
- DashboardPanels
- Dashboards
- Environments
- EscalationPolicies
- EscalationLevelsPolicies
- EscalationLevelsPath
- EscalationLevels
- EscalationPaths
- FormFieldOptions
- FormFieldPlacementConditions
- FormFieldPlacements
- FormFieldPositions
- FormFields
- FormSetConditions
- FormSets
- Functionalities
- WorkflowTasks
- [DEPRECATED] WorkflowCustomFieldSelections
- WorkflowFormFieldConditions
- WorkflowGroups
- WorkflowRuns
- Workflows
- Heartbeats
- IncidentActionItems
- [DEPRECATED] IncidentCustomFieldSelections
- IncidentEventFunctionalities
- IncidentEventServices
- IncidentEvents
- IncidentFeedbacks
- IncidentFormFieldSelections
- IncidentPermissionSetBooleans
- IncidentPermissionSetResources
- IncidentPermissionSets
- IncidentRetrospectives
- IncidentRetrospectiveSteps
- IncidentRoleTasks
- IncidentRoles
- IncidentStatusPageEvents
- IncidentSubStatuses
- IncidentTypes
- Incidents
- IpRanges
- LiveCallRouters
- OnCallRoles
- OnCallShadows
- OverrideShifts
- PlaybookTasks
- Playbooks
- RetrospectiveTemplates
- Pulses
- RetrospectiveConfigurations
- RetrospectiveProcessGroupSteps
- RetrospectiveProcessGroups
- RetrospectiveProcesses
- RetrospectiveSteps
- Roles
- ScheduleRotationActiveDays
- ScheduleRotationUsers
- ScheduleRotations
- Schedules
- Shifts
- Secrets
- Services
- Severities
- StatusPageTemplates
- StatusPages
- SubStatuses
- Teams
- UserNotificationRules
- Users
- WebhooksDeliveries
- WebhooksEndpoints
Secrets
Creates a secret
Secrets
Creates a secret
Creates a new secret from provided data
POST
/
v1
/
secrets
curl --request POST \
--url https://api.rootly.com/v1/secrets \
--header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/vnd.api+json'
{
"data": {
"id": "249707cb-ed39-45c8-a3f7-a900c4eab4ee",
"type": "secrets",
"attributes": {
"kind": "built_in",
"name": "ysifcjmhvu",
"secret": "[REDACTED]",
"hashicorp_vault_mount": "secret",
"hashicorp_vault_path": null,
"hashicorp_vault_version": 0,
"created_at": "2025-03-07T00:08:59.914-08:00",
"updated_at": "2025-03-07T00:08:59.914-08:00"
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/vnd.api+json
Available options:
secrets
The name of the secret
The secret
The kind of the secret
Available options:
built_in
, hashicorp_vault
The HashiCorp Vault secret mount path
The HashiCorp Vault secret path
The HashiCorp Vault secret version
Response
201
application/vnd.api+json
secret created
Unique ID of the secret
Available options:
secrets
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 REPLACE_BEARER_TOKEN' \
--header 'content-type: application/vnd.api+json'
{
"data": {
"id": "249707cb-ed39-45c8-a3f7-a900c4eab4ee",
"type": "secrets",
"attributes": {
"kind": "built_in",
"name": "ysifcjmhvu",
"secret": "[REDACTED]",
"hashicorp_vault_mount": "secret",
"hashicorp_vault_path": null,
"hashicorp_vault_version": 0,
"created_at": "2025-03-07T00:08:59.914-08:00",
"updated_at": "2025-03-07T00:08:59.914-08:00"
}
}
}