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
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.
Get Plan
Returns the current subscription plan for the authenticated user, including tier details and feature limits.
Get Usage Report
Retrieves detailed usage events for the authenticated user or team, including costs, event types, models used, and metadata. Shows the same data as displayed in the usage dashboard. Can be filtered by chatId to show usage for a specific chat, or by userId to show usage for a specific user.