Skip to main content
GET
/
api
/
v0
/
users
/
current
/
show user
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>"
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Response

Success response with user information

id
integer

The unique identifier of the user.

key_id
integer

The API key ID associated with the user.

email
string

The email address of the user.

balance
number

The current balance of the user.

ssh_key
string

The SSH key associated with the user.

sid
string

Server ID.