Vast.ai API
Accounts

Create a new API key

1min
POST
https://console.vast.ai/api/v0/auth/apikeys/

Creates a new API key with specified permissions for the authenticated user.

CLI Usage: vast create api-key --name NAME --permission_file PERMISSIONS [--key_params PARAMS]

Example: vast create api-key --name "read-only" --permission_file permissions.json

Authentication
BearerAuth
Body Parameters
body
*
api_key
name
permissions
key_params
Responses
200
API key created successfully
id
key
permissions
400
Bad Request
success
error
msg
401
Unauthorized
success
msg
429
Too Many Requests
detail