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). Sets the start of the time range used for activeDays and promptCreditsUsed. If not provided, defaults to 1 year ago.
string
End time in RFC 3339 format (e.g., 2023-12-31T23:59:59Z). Sets the end of the time range used for activeDays and promptCreditsUsed. If not provided, defaults to the current time.

Example Request

Response

For non-Devin teams, apiKey contains a raw user API key, not a hash. Treat it as a secret: remove or redact it before logging, exporting, or sharing analytics. If you must retain unredacted responses, restrict access and store them securely.
array
Array of user statistics objects
string
The start of the team’s current billing cycle in RFC 3339 format. This field is independent of the requested time range and does not bound the promptCreditsUsed values in userTableStats.
string
The end of the team’s current billing cycle in RFC 3339 format. This field is independent of the requested time range and does not bound the promptCreditsUsed values in userTableStats.

Example Response

The apiKey values below are example placeholders, not real credentials.

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