Get User Page Analytics
Analytics API
Get User Page Analytics
Retrieve user activity statistics including names, emails, last activity times, active days, and prompt credits used from the teams page.
POST
Get User Page Analytics
Documentation Index
Fetch the complete documentation index at: https://docs.windsurf.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Get user activity statistics that appear on the teams page, including user names, emails, last activity times, active days, and prompt credits used.Request
Your service key with “Teams Read-only” permissions
Filter results to users in a specific group (optional)
Start time in RFC 3339 format (e.g.,
2023-01-01T00:00:00Z). Only affects the activeDays calculation. If not provided, defaults to 1 year ago.End time in RFC 3339 format (e.g.,
2023-12-31T23:59:59Z). Only affects the activeDays calculation. If not provided, defaults to the current time.Example Request
Response
Array of user statistics objects
The start of the current billing cycle in RFC 3339 format. The
promptCreditsUsed values in userTableStats correspond to usage within this billing cycle.The end of the current billing cycle in RFC 3339 format. The
promptCreditsUsed values in userTableStats correspond to usage within this billing cycle.Example Response
Error Responses
Error message describing what went wrong
- Invalid service key or insufficient permissions
- Invalid timestamp format
- Group not found
- Rate limit exceeded