Vercel
v0 Platform APIAPI ReferenceReports

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.

GET/v1/reports/user-activity

Usage

TypeScript Example
import { v0 } from 'v0-sdk'const result = await v0.reports.getUserActivity()console.log(result)

API Signature

Request

Query Parameters

startDate?: string

Start date for the activity period in ISO 8601 format. If not provided, defaults to the beginning of available data.

endDate?: string

End date for the activity period in ISO 8601 format. If not provided, defaults to the current date.

Response

object: 'list'
data: object[]

Array of user activity records

id: string

User ID

object: 'user_activity'
user: object

User information

id: string

User ID

object: 'user'
name?: string

User's display name

email: string

User's email address

avatar: string

URL to user's avatar image

createdAt: string

ISO 8601 timestamp of when the user was created

updatedAt?: string

ISO 8601 timestamp of when the user was last updated

teamV0Role: 'V0Builder' | 'V0Chatter' | 'V0Viewer' | null

The user's v0 role, or null if no role is assigned

chatCount: number

Total number of chats created by the user

messageCount: number

Total number of messages sent by the user

activeDays: number

Number of distinct days the user was active

firstActivity: string | null

ISO 8601 timestamp of the user's first activity, or null if no activity

lastActivity: string | null

ISO 8601 timestamp of the user's last activity, or null if no activity

meta: object

Metadata about the response

totalCount: number

Total number of users in the response

dateRange: object

The date range of the query

start: string | null

ISO 8601 start date, or null if not specified

end: string | null

ISO 8601 end date, or null if not specified

Authorization

This endpoint is only available for:

  • Enterprise teams (v0-enterprise plan)
  • Users with OWNER or BILLING role on the team

Behavior

  • Returns all team members who have v0 access, including those with zero activity
  • The date range cannot exceed 365 days
  • Start date must not be after end date
  • All timestamps are in ISO 8601 format

Notes

This endpoint shows the same data as displayed in the Usage settings for Enterprise teams. It provides a comprehensive view of team member activity, making it useful for team administrators to monitor engagement and usage patterns.

On this page