Add User Environment Variable ...

Add new environment variable

1min
POST
https://console.vast.ai/api/v0/secrets/
Production server

Creates a new encrypted environment variable for the authenticated user. Keys are automatically converted to uppercase. Values are encrypted before storage. There is a limit on the total number of environment variables per user.

CLI Usage: vast create env-var KEY VALUE

Authentication
BearerAuth
Body Parameters
body
*
key
*
value
*
Responses
200
Environment variable created successfully
success
msg
400
Bad Request
success
error
msg
401
Unauthorized - Invalid or missing API key
success
error
msg
403
Forbidden - User is blacklisted
success
error
msg
429
Too Many Requests
detail