v0 Platform API/API Reference/User

Get User

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

GET/v1/user

Usage

TypeScript Example
import { v0 } from 'v0-sdk'

const result = await v0.user.get()

console.log(result)

Response

id: string

A unique identifier for the user.

object: 'user'

Fixed value identifying this object as a user.

name?: string

Optional full name of the user.

email: string

The user’s email address.

avatar: string

URL to the user’s avatar image.