Skip to main content
POST
Store a workspace secret

Authorizations

Authorization
string
header
required

Obtain a token via the CLI auth flow (POST /v1/auth/sessions) or GitHub OAuth

Path Parameters

workspace_id
string
required

UUIDv7 of the workspace.

Body

application/json

Stores one secret under a name you choose.

agentsfleet ignores fields it does not know, instead of refusing the request.

data
object
required

The object to seal. agentsfleet reads nothing inside it beyond its shape.

Send any well-formed JSON object.

name
string
required

The name a fleet interpolates as ${secrets.<name>.<field>}.

Response

Created

What a create and a replace both answer with.

One shape for both verbs because both say the same thing — which name now holds a secret — and the status code is what distinguishes them.

name
string
required

The name the secret is stored under.