Read a secret (`read`).
GET
/v1/secrets/{path}
const url = 'https://ferritor.example.internal:7070/v1/secrets/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://ferritor.example.internal:7070/v1/secrets/exampleThe latest version, or the one asked for. Deleted versions aren’t readable: restore one first.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”path
required
string
A canonical secret path, slashes included (billing/db); its first segment is its namespace.
Query Parameters
Section titled “Query Parameters”version
integer format: int32
A specific version (from 1); leave it out for the latest.
Responses
Section titled “Responses”The secret.
Media typeapplication/json
object
created_at
required
string format: date-time
path
required
string
version
required
integer format: int32
value
required
The value, standard base64 with padding.
string
Example generated
{ "created_at": "2026-04-15T12:00:00Z", "path": "example", "version": 1, "value": "example"}default
Section titled “default”An error: see error.code.
Media typeapplication/json
Every error’s body.
object
error
required
object
code
required
Match on this, never on the message.
string
message
required
For people; may change.
string
Example
{ "error": { "code": "invalid_argument" }}