v54

latestSwagger 2.0AGPL-3.0raw.githubusercontent.com2026-08-03397565628.8 KB
Secrets

Import user secrets from a file

post/api/v2/users/{user}/secrets/batch

Path parameters

userstring required

User ID, username, or me

Request body

contentstring required
format'env' | 'json' | 'yaml' required

Response

Created

created_atstring date-time
descriptionstring
enabledboolean

Enabled controls whether the secret is injected into workspaces. Disabled secrets remain visible and editable, but are not added to the agent manifest, so they are not exposed as environment variables or written to secret files.

env_namestring
file_pathstring
idstring uuid
namestring
updated_atstring date-time