cURL
curl --request GET \ --url https://console.vast.ai/api/v0/secrets/ \ --header 'Authorization: Bearer <token>'
{ "success": true, "secrets": {} }
Retrieve a list of environment variables (secrets) for the authenticated user.
CLI Usage: vastai show env-vars [-s]
vastai show env-vars [-s]
API key must be provided in the Authorization header
Success response with user secrets
true
Show child attributes