PUT
/
api
/
v0
/
commands
/
reset_apikey
/
reset api key
curl --request PUT \
  --url https://console.vast.ai/api/v0/commands/reset_apikey/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "me"
}'
{
  "sent": true,
  "key": "new_api_key_value"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
client_id
string
required

The ID of the client whose API key is being reset.

Example:

"me"

Response

Success response

sent
boolean
Example:

true

key
string

The new API key.

Example:

"new_api_key_value"