Export user usage data
Usage Export API
Export User Usage
API endpoint to export user activity data including message counts and usage patterns (subject to privacy settings)
POST
Export user usage data
This endpoint exports user activity data including message counts, usage patterns, and feature utilization. The available data depends on your workspace privacy settings.
For details on prerequisites and rate limits, please refer to the main Usage Export API documentation.
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.
Privacy Considerations
The user export data is subject to workspace privacy settings, user-identifying data may be excluded due to privacy settings. As a consequence of this some data may be anonymized based on workspace configuration.Data Included
By default, the user export returns one row per user for the selected period.Additional Columns for BYOK Workspaces
Because BYOK workspaces supply their own model keys, Langdock can provide token consumption and costs directly. This is not possible when obtaining your models directly through Langdock.
Grouped Export
Usegroup_by=model to return one row per user and model.Authorizations
API key as Bearer token. Format "Bearer YOUR_API_KEY"
Body
application/json