Secrets

post/settings/secrets

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/settings/secrets
  • Auth: HTTP bearer

Request body

descriptionstring nullable
mount_pathstring nullable

Required for "file" type secrets — absolute path inside the sandbox

namestring required
secret_typestring

"env" (environment variable) or "file" (written to mount_path)

valuestring required

Response

Secret created/updated

created_atstring required
descriptionstring nullable
idinteger required
mount_pathstring nullable
namestring required
secret_typestring required
updated_atstring required
valuestring required

Always masked in responses

Changes

No recorded changes to this operation across all 50 revisions of this API.