Overview
Secrets store sensitive values like API keys, passwords, database credentials, and certificates.List Secrets
Retrieve all secrets in an organization.string
required
Organization ID
Response
Returns all secrets accessible to the current user or service account.string
required
Secret unique identifier
string
required
Parent organization ID
string
required
Secret name/key
string
required
Secret value (encrypted)
string
Optional notes about the secret
string
required
When secret was created
string
required
Last modification date
array
Projects containing this secret
boolean
required
Whether user has read access
boolean
required
Whether user has write access
Get Secret
Retrieve a specific secret by ID.string
required
Secret ID
List Secrets by Project
Retrieve all secrets in a specific project.string
required
Project ID
Create Secret
Create a new secret.Request Body
string
required
Secret name/key (e.g., “API_KEY”, “DATABASE_PASSWORD”)
string
required
Secret value
string
Optional description or notes
array
Projects to add secret to
Secret values are encrypted by the SDK/client before sending to the server.
Update Secret
Update an existing secret.string
required
Secret ID
Request Body
string
required
Secret name/key
string
required
New secret value
string
Notes about the secret
array
Projects containing this secret
When the value changes, a new version is automatically created for audit purposes.
Delete Secrets
Delete one or more secrets.array
required
Array of secret IDs to delete
Response
Returns results for each deletion attempt:Get Secrets by IDs
Retrieve multiple secrets by their IDs.array
required
Array of secret IDs to retrieve
Secret Versioning
Secrets Manager automatically tracks version history when secret values change.Version Information
Each version records:- Secret value at that point in time
- Who made the change (user or service account)
- When the change was made
Accessing Versions
Use the Secret Versions API to:- List all versions of a secret
- View historical values
- Restore previous versions
Access Policies
Control who can access secrets using access policies.User Access
Grant users direct access to secrets:Group Access
Grant groups access to secrets:Service Account Access
Grant service accounts access:Best Practices
Naming Conventions
Use clear, consistent naming:Organization
- Group by Environment: Separate prod, staging, dev
- Use Projects: Group related secrets
- Add Notes: Document what secrets are for
- Rotate Regularly: Update secrets periodically
Security
- Least Privilege: Grant minimum required access
- Use Service Accounts: For automation, not user tokens
- Monitor Access: Review audit logs
- Rotate Keys: Update secrets when team members leave