Export assistant usage data
Usage Export API
Export Agent Usage
API endpoint to export agent usage data including message counts, active users, and trends
POST
Export assistant usage data
This endpoint exports agent usage data including message counts per agent, active user counts, and usage trends over time.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.
Data Included
The agent export contains:- Number of messages per agent
- Active users per agent
- Prompt token consumption per agent (BYOK workspaces only)
- Completion token consumption per agent (BYOK workspaces only)
- Cached token usage per agent (BYOK workspaces only)
Because BYOK workspaces supply their own model keys, Langdock can provide token consumption data 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