Generate a secret's value (`write`).
const url = 'https://ferritor.example.internal:7070/v1/generate/example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"expected_version":1,"labels":{"additionalProperty":"example"},"profile":"example"}'};
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/generate/example \ --header 'Content-Type: application/json' \ --data '{ "expected_version": 1, "labels": { "additionalProperty": "example" }, "profile": "example" }'Stores a new version whose value the server made up from a generate
profile, as a put would store it (label too with labels). Never returns the value: read it. 409 unknown_profile if
this server has no such profile.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A canonical secret path, slashes included (billing/db); its first segment is its namespace.
Request Bodyrequired
Section titled “Request Bodyrequired”How to generate a secret’s value: a put’s options, but no value.
object
Check-and-set: store only if the latest version is still this one; 0: only if the secret doesn’t exist yet.
Labels to set with it (needs the label action too): plain
metadata, not encrypted.
object
A generate profile of the server’s config; absent or empty: default.
Example generated
{ "expected_version": 1, "labels": { "additionalProperty": "example" }, "profile": "example"}Responses
Section titled “Responses”The version generated.
One version of a secret, without its value.
object
Example generated
{ "created_at": "2026-04-15T12:00:00Z", "path": "example", "version": 1}default
Section titled “default”An error: see error.code.
Every error’s body.
object
object
Match on this, never on the message.
For people; may change.
Example
{ "error": { "code": "invalid_argument" }}