Skip to main content
POST
Get User Page Analytics

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

string
required
Your service key with “Teams Read-only” permissions
string
Filter results to users in a specific group (optional)
string
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.
string
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
Array of user statistics objects
string
The start of the current billing cycle in RFC 3339 format. The promptCreditsUsed values in userTableStats correspond to usage within this billing cycle.
string
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

string
Error message describing what went wrong
Common error scenarios:
  • Invalid service key or insufficient permissions
  • Invalid timestamp format
  • Group not found
  • Rate limit exceeded