ScaiVault Documentation
ScaiVault is the ScaiLabs secrets and certificate management platform. It stores, versions, rotates, and distributes credentials, issues X.509 certificates from an internal CA or ACME, and generates short-lived dynamic credentials for databases and cloud providers — all behind a single multi-tenant API.
These docs are for developers integrating with the ScaiVault API. Code examples appear in curl, Python, and JavaScript / TypeScript.
Where to start#
- New to ScaiVault? Read What is ScaiVault, then Quickstart.
- Following a scenario end-to-end? Pick a Tutorial.
- Migrating from another secret store? See Migrations.
- Wiring into your stack? See Integrations (Kubernetes, Terraform, GitHub Actions, Docker Compose).
- Issuing certificates? Jump to PKI Certificates or ACME.
- Looking for an endpoint? Go straight to the API Reference.
- Using a client? Pick your interface: Python, JavaScript, .NET, CLI, MCP.
- Quick recipe needed? Check the Cookbook.
Table of contents#
1. Introduction#
2. Getting Started#
3. Core Concepts#
- Multi-tenancy
- Secrets
- Policies and Permissions
- Rotation
- PKI
- Dynamic Secrets
- Events and Webhooks
- Errors
4. API Guides#
- Managing Secrets
- Batch Operations
- Policies
- Rotation Policies
- PKI Certificates
- ACME (Let's Encrypt)
- Dynamic Secrets
- Audit Logs
- Cookbook
5. Clients#
6. API Reference#
- Authentication
- Secrets
- Policies
- Rotation
- PKI
- Dynamic Secrets
- Audit Logs
- Webhooks
- Subscriptions
- Federation
- Identity
- System
- Error Codes
- Secret Policies
- DNS Providers
- Webhook Events
7. Advanced#
8. Operations#
9. Tutorials#
- Rotate an OAuth Credential End-to-End
- Build an mTLS Service Mesh
- Dynamic Postgres Credentials in Production
- Migrate from .env Files
- Issue an ACME Wildcard Certificate
10. Migrations#
11. Integrations#
Changelog#
Conventions used in these docs#
Base URL. All examples assume https://scaivault.scailabs.ai as the base. Replace with your own ScaiVault instance URL when self-hosting.
Authentication. Every request (except /health and /health/ready) requires a ScaiKey-issued bearer token. See Authentication.
API path prefix. The ScaiVault API lives under /v1/. Future breaking changes will introduce new versions (/v2/) without breaking /v1/.
Secret paths. Secrets are identified by a /-separated path, e.g. environments/production/salesforce/api-credentials. Paths are tenant-scoped unless prefixed with /partner/ or /t/{tenant_id}/.
Tenant context. Tenant is determined from the token's tenant_id claim. Partner admins can act on other tenants via the /t/{tenant_id}/ prefix. See Multi-tenancy.
Pagination. List endpoints use cursor-based pagination. Pass cursor from a previous response to get the next page. has_more: false means you've reached the end.
Timestamps. All timestamps are ISO 8601 in UTC (2026-04-23T14:30:00.123456Z).