Vast.ai API
Accounts

delete api key

1min
DELETE
https://console.vast.ai/api/v0/auth/apikeys/{id}/
Production server

Deletes an existing API key belonging to the authenticated user. The API key is soft-deleted by setting a deleted_at timestamp.

CLI Usage: vastai delete api-key ID

Authentication
BearerAuth
Path Parameters
id
*
Responses
200
API key successfully deleted
Example
Successfully Deleted API Key
400
Bad Request - API key ID not provided
msg
401
Unauthorized - Invalid or missing authentication
success
error
msg
403
Forbidden - API key belongs to a different user
msg
404
Not Found - API key does not exist
msg
429
Too Many Requests
detail




Updated 14 Feb 2025
Did this page help you?