cURL
curl --request GET \ --url https://console.vast.ai/api/v0/users/current/ \ --header 'Authorization: Bearer <token>'
{ "id": 123, "key_id": 123, "email": "<string>", "balance": 123, "ssh_key": "<string>", "sid": "<string>" }
Retrieve information about the current authenticated user, excluding the API key.
CLI Usage: vastai show user
vastai show user
API key must be provided in the Authorization header
Success response with user information
The unique identifier of the user.
The API key ID associated with the user.
The email address of the user.
The current balance of the user.
The SSH key associated with the user.
Server ID.