Skip to main content
PUT
Set an app secret

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Path Parameters

name
string
required

Secret name: letters, digits, _, . and -, starting with a letter or digit, at most 100 characters.

Pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$

Query Parameters

appId
string
required

The app the secrets belong to.

Maximum string length: 63
Pattern: ^app-[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

Body

application/json

Routes, and a write-only value or the secretId of a workspace secret you may use. Omit both to keep the current value and change only the routes; a null secretId clears it.

routes
object[]
required

HTTPS injection destinations. A reference cannot widen the credential’s destinations.

Required array length: 1 - 50 elements
value
string

Write-only replacement value. Mutually exclusive with secretId.

Required string length: 1 - 16000
secretId
string<uuid> | null

Authorized app/shared network secret. Null clears the default; omit both value and secretId to preserve it.

Response

The secret, without its value.

name
string
required

Secret name, unique within the app.

Pattern: ^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$
routes
object[]
required

Where the app’s outbound HTTPS requests carry the value.

configured
boolean
required

True when the app has a value for the secret.

secretId
string<uuid> | null
required

The workspace secret the value comes from, or null for a value set here.

updatedAt
string<date-time>
required

When the secret last changed.