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.Documentation Index
Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
Use this file to discover all available pages before exploring further.
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
The user export may contain:- Message count per user
- Activity patterns
- Usage frequency
- Feature utilization
- Time-based usage analytics
- Token consumption and cost per user (BYOK workspaces only)
- Per-model token and cost breakdown (BYOK workspaces only)
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.
For details on prerequisites, rate limits, and export size 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.
Authorizations
API key as Bearer token. Format "Bearer YOUR_API_KEY"
Body
application/json