REST API
Authenticate requests and automate application secrets, access, rotation, and events.
2 min read
This guide covers application secrets and platform administration. For encrypted personal and shared vaults, use the separate password-manager API.
The API is served by this deployment under /service/public/v1/ (or /v1/ at
the API host). Authenticate with a token in the Authorization header:
http
Authorization: Bearer ServiceAccount pss_service:v2:…
Authorization: Bearer User pss_user:v1:…
Most endpoints need an app and environment: ?app_id=<uuid>&env=<name>.
Responses are JSON; errors are {"error": "…"} with the usual status codes
(400 invalid, 401 not authenticated, 403 not allowed, 404 not found or not
visible to you, 409 conflict, 429 rate limited).
Secrets#
GET /v1/secrets/— List secrets (values for SSE apps if you may reveal them). Filters:key,path,tags.POST /v1/secrets/— Create:{"secrets": [{"key", "value", "path"?, "comment"?, "tags"?, "type"?}]}PUT /v1/secrets/— Update byid: key, value, comment, path, tagsDELETE /v1/secrets/—{"secrets": ["<id>", …]}GET /v1/secrets/export/— Export asdotenvorjson(Secrets: export)GET /v1/secrets/<id>/history/— Versions of a secretPOST /v1/secrets/<id>/restore/— Restore a versionGET/PUT /v1/secrets/<id>/metadata/— Owner, description, rotation schedule
Apps, environments and access#
/v1/apps/,/v1/environments/— Apps and environments/v1/members/,/v1/teams/,/v1/roles/— People and roles/v1/service-accounts/…— Service accounts, their tokens and access/v1/environments/<id>/protection/— Protected environments/v1/environments/<id>/path-grants/— Folder limits/v1/changes/…— Change requests: list, create, approve, reject, cancel/v1/environments/diff/,/v1/environments/promote/— Compare and promote/v1/access/expiry/…— Temporary access/v1/policies/tokens/— Token lifetime policy/v1/identities/oidc/…— Workload identity (OIDC) configuration
Rotation, events and audit#
/v1/rotation/policies/…— Automatic rotation policies, runs, rotate now/v1/dynamic-secrets/…— Dynamic AWS credentials: definitions,…/lease/,…/leases/;POST /v1/dynamic-secrets/lease/?app_id=&env={name, path?, ttlSeconds?}for clients/v1/rotation/?app_id=— Secrets due or overdue for manual rotation/v1/webhooks/…,/v1/events/catalog/— Webhook endpoints and event types/v1/logs/audit/— Audit log (keyset pagination, bounded time range)
Requests are rate limited per token. Use GET sparingly in loops; prefer
webhooks to polling.