Get end user usage history
Retrieve recent usage records for a specific end user. Shows individual chat request details.
Authorizations
WorkOS JWT token. Obtain via WorkOS AuthKit authentication flow. The token must include organization_id claim for organization-scoped endpoints.
Path Parameters
End user ID to get history for
Query Parameters
Maximum number of records to return
1 <= x <= 100Response
OK
Internal usage record ID (UUID).
WorkOS organization ID that owns the usage record.
Internal end user ID associated with the usage record.
Number of prompt (input) tokens for the request.
-9007199254740991 <= x <= 9007199254740991Number of completion (output) tokens for the request.
-9007199254740991 <= x <= 9007199254740991Total tokens used (prompt plus completion).
-9007199254740991 <= x <= 9007199254740991Model identifier used to generate the response.
Reason the generation finished (stop, length, tool-calls, etc.).
Timestamp when the usage record was created.

