Get User

Retrieves information about the authenticated user, including their ID, name, email, and account metadata.

GET /user
import { v0 } from 'v0-sdk'

const result = await v0.user.get()

console.log(result)
GET /user
curl -X GET https://api.v0.dev/user \
  -H "Authorization: Bearer $V0_API_KEY" \
  -H "Content-Type: application/json"

Response

Response Body

id string Required

A unique identifier for the user.


object string Required

Fixed value identifying this object as a user.


name string

Optional full name of the user.


email string Required

The user’s email address.


avatar string Required

URL to the user’s avatar image.