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.
Usage
import { v0 } from 'v0-sdk'const result = await v0.reports.getUsage()console.log(result)API Signature
Request
Query Parameters
Query parameter "startDate"
Query parameter "endDate"
Query parameter "chatId"
Query parameter "messageId"
Query parameter "userId"
Query parameter "limit"
Base64 encoded cursor containing pagination data
Response
Deprecated - use user object instead
The ISO timestamp representing when the usage event was created.
Delete MCP Server
Deletes an MCP server and removes any associated OAuth tokens. This action is irreversible.
Get User Activity Report
Retrieves aggregated user activity data for team members, including chat counts, message counts, and activity timestamps. Shows the same data as displayed in the Usage settings for Enterprise teams. Only available for Enterprise teams with OWNER or BILLING role.