Bring a deleted version back (`write`).
POST
/v1/restore/{path}
const url = 'https://ferritor.example.internal:7070/v1/restore/example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://ferritor.example.internal:7070/v1/restore/example \ --header 'Content-Type: application/json' \ --data '{ "version": 1 }'{} undoes a delete (the newest deleted version, only while none is
live; 409 live_version otherwise); {"version": N} restores that one.
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.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Which deleted version to bring back.
object
version
That version, alongside any live one. Left out ({}): undo a delete,
restoring the newest deleted version, only while none is live.
integer | null format: int32
Example generated
{ "version": 1}Responses
Section titled “Responses”The version restored.
Media typeapplication/json
One version of a secret, without its value.
object
created_at
required
string format: date-time
path
required
string
version
required
integer format: int32
Example generated
{ "created_at": "2026-04-15T12:00:00Z", "path": "example", "version": 1}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" }}