Read a secret at the specified path. The encrypted data is fetched from the Seal network and decrypted client-side.
Path Parameters
The path of the secret (e.g., production/database).
Query Parameters
Specific version to retrieve. Defaults to the latest.
Response
Key-value pairs containing the secret data.
true for Tusky-managed secrets (e.g., environment encryption keys), false for user-created.
Example
cURL — user secret
cURL — managed encryption key
curl https://api.tusky.io/v2/secrets/production/database \
-H "Api-Key: YOUR_API_KEY"
Response
{
"path" : "production/database" ,
"data" : {
"host" : "db.example.com" ,
"port" : "5432" ,
"username" : "app_user" ,
"password" : "s3cur3_p4ssw0rd"
},
"version" : 1 ,
"managed" : false ,
"createdAt" : "2026-03-06T14:00:00Z"
}
Managed secrets at tusky/environments/{envId}/encryption contain encryption keys for private environments. These are created automatically when an encrypted environment is created and cannot be deleted .