v49

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01151216390.1 KB
secrets

Create a Secret.

Create a new Secret with a globally unique name and value. The Secret will be encrypted at rest and made available as an environment variable in Devboxes.

post/v1/secrets

Request body

namestring required

The globally unique name for the Secret. Must be a valid environment variable name (alphanumeric and underscores only). Example: 'DATABASE_PASSWORD'

valuestring required

The value to store for this Secret. This will be encrypted at rest and made available as an environment variable in Devboxes. Example: 'my-secure-password'

Response

Secret created successfully. Returns the Secret with its value included.

idstring required

The unique identifier of the Secret.

namestring required

The globally unique name of the Secret. Used as the environment variable name in Devboxes.

create_time_msinteger required

Creation time of the Secret (Unix timestamp in milliseconds).

update_time_msinteger required

Last update time of the Secret (Unix timestamp in milliseconds).