Skip to content

Secrets Manager API reference

The Secrets Manager API is part of the Thalassa Cloud platform API. Full OpenAPI definitions are available in the API reference.

Base path

/v1/secrets

Required headers

HeaderRequiredDescription
AuthorizationYesBearer token or equivalent credential
X-Organisation-IdentityYesOrganisation identifier
X-Project-IdentityNoProject identifier for project-scoped secrets

Endpoints

MethodEndpointDescription
GET/v1/secrets/{region}/secrets?path=/Browse one directory level
GET/v1/secrets/{region}/secrets?pathPrefix=/app/Flat list under prefix
POST/v1/secrets/{region}/secretsCreate secret + version 1
GET/v1/secrets/{region}/secret{path}Get metadata (?includeVersions=true)
PUT/v1/secrets/{region}/secret{path}/policySet or clear access policy
POST/v1/secrets/{region}/secret{path}/versionsAdd new version
POST/v1/secrets/{region}/secret{path}/valueReveal value
DELETE/v1/secrets/{region}/secret{path}/versions?version=NDestroy version
DELETE/v1/secrets/{region}/secret{path}Delete secret

Replace {region} with the target cloud region (for example, nl-01). Embed the secret path directly in the URL after /secret.

Path-in-URL examples

GET  /v1/secrets/nl-01/secret/app/production/db/password
POST /v1/secrets/nl-01/secret/app/production/db/password/value
PUT  /v1/secrets/nl-01/secret/app/production/db/password/policy
POST /v1/secrets/nl-01/secret/app/production/db/password/versions
DELETE /v1/secrets/nl-01/secret/app/production/db/password/versions?version=2
DELETE /v1/secrets/nl-01/secret/app/production/db/password

Alternatively, pass the path as a query parameter: ?path=/app/production/db/password.

Regional paths

All secret operations require a region in the path. Secrets exist in exactly one region; cross-region access is not supported.

Common response codes

HTTP statusMeaning
403secrets or kms feature gate disabled; IAM denied; access policy denied
404Secret, version, or KMS key not found; wrong project scope
400Invalid path; validation error; KMS key disabled; version destroyed; invalid base64 or size limits
409Secret path already exists in org/region/project scope
503KMS not available in the region

See FAQ for troubleshooting.

Documentation by topic

TopicGuide
Create secretsCreating secrets
Reveal and rotateReading and updating values
VersionsVersion management
Access policiesAccess policies
IAMAccess control
KMSKMS integration

Full specification

For request and response schemas, error models, and authentication details, refer to the platform OpenAPI specification in the API reference.