v0 Platform API/API Reference/User

Get User Scopes

Retrieves all accessible scopes for the authenticated user, such as personal workspaces or shared teams.

GET/v1/user/scopes

Usage

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

const result = await v0.user.getScopes()

console.log(result)

Response

object: 'list'
data: object[]
id?: string

A unique identifier for the scope (e.g., user or team workspace).

object?: 'scope'

Fixed value identifying this object as a scope.

name?: string

An optional human-readable name for the scope.