Skip to main content
Usage exports are available to workspace administrators and provide up to 12 months of historical data across users, agents, API keys, projects, models, and workflows.

Accessing Usage Exports

You can export usage in the Langdock UI or programmatically with the Usage Export API. To export from the UI, navigate to your workspace analytics page and click the Export button in the top right corner.
1

Open Analytics

Go to your workspace analytics page in workspace settings.
2

Click Export

Select the Export button located in the top right corner
3

Configure Export

Choose your data type and date range in the export dialog
4

Generate CSV

Click Generate CSV. The button shows Preparing…. You can close the dialog.
5

Download the file

When the export is ready, you get a Usage export ready inbox notification. On Analytics, Recent exports lists Queued, Preparing, Ready, and Failed. Click Download when the status is Ready.
Only one Analytics export can run at a time in a workspace. If you click Generate CSV while another export is queued or preparing, you see An export is already running. Wait for it to finish or check Recent exports.

Export Configuration

Data Types

Select which type of usage data to export:
  • Users - Individual user activity, message counts, and feature usage across the selected time period
  • Agents - Agent usage statistics, interaction counts, and performance metrics
  • API keys - API usage and cost grouped by API key, including personal API keys
  • Projects - Project-level usage data
  • Models - Model usage statistics, request counts, and BYOK token consumption data
  • Workflows - Workflow cost, run counts, and monthly cap utilization

Date Range Options

Choose from predefined ranges or select a custom period:
  • This month (e.g., July 2025)
  • Last month (e.g., June 2025)
  • This week (e.g., July 30 - August 2)
  • Last week (e.g., July 20 - July 26)
  • Choose custom range - Select specific start and end dates

Export Limits

Usage exports include up to 12 months of historical data. In Analytics, each export can include up to 1,000,000 CSV rows and must finish within 15 minutes. If an export has too many rows or takes too long, choose a shorter date range and combine the CSV files. The Usage Export API can scan up to 1,000,000 usage rows per request.

Export Data Structure

Each export generates a CSV file with one row per entity for the selected time period.
Some columns are only available for workspaces using Bring Your Own Key (BYOK). These are marked as BYOK workspaces only.

Usage Exports

The Users export provides individual user activity across the selected period.
The User-level data setting controls whether user detail columns are included. When disabled, the columns marked below are omitted, including name and email. API rows grouped by department or company name still include that grouping key.

Column Definitions

payg_limit_current is the extra usage limit in effect when you run the export, in EUR for Langdock Cloud workspaces without BYOK and in USD for BYOK and dedicated deployments. An unlimited limit is an empty cell. payg_consumption_in_period is spend in the selected period, rounded to two decimal places. Without BYOK, that spend is extra usage in EUR. Spend charged to an agent’s own usage limit is left out of that figure. On BYOK and dedicated deployments it is the USD cost of every row that counts against usage limits, including spend charged to an agent’s own usage limit.payg_utilization_pct_current is that consumption divided by the current limit, rounded to four decimal places. It is a ratio, not a percentage from 0 to 100, and it can be greater than 1. The cell is empty when the limit is unlimited, 0, or negative. A positive limit with no consumption in the period is 0.payg_limit_source is plan, user, group, or workspace. On Usage and spend they appear as Individual, Workspace, and Plan or Group followed by the plan or group name. Without BYOK, and with extra usage on, the highest applicable plan or group limit is used by default. Unlimited counts as the highest. On a tie, including two unlimited limits, a group wins over the plan, and the group whose name comes first alphabetically wins over other groups. An individual Custom or Unlimited limit overrides it, even a Custom amount of 0. payg_limit_group_name is the name of the group whose limit applies, and empty otherwise. There is one consumption figure per user, not one per group.When extra usage is off in Langdock Cloud workspaces without BYOK, payg_limit_current is 0 and payg_limit_source is workspace. On BYOK and dedicated deployments the limit comes only from the individual extra usage setting. With neither Custom nor Unlimited selected, the amount is 0 and the source is user.

Additional Columns for BYOK Workspaces

Subgroup Rows

In the export dialog, use Subgroup rows to split each user into one row per model they used. Choose No grouping to keep one row per user.When subgrouped by Model, ranking, JSON breakdown, and action columns are omitted, as is projects_messaged. payg_consumption_in_period and payg_utilization_pct_current are for that model only. payg_limit_current, payg_limit_source, and payg_limit_group_name repeat the user’s current limit on every model row, so do not add the limit across those rows.The export dialog offers No grouping and Model only. Group by department or company name with the Usage Export API. Each usage event uses the department or company recorded at the user’s latest workspace sign-in at or before that event.

Actions Referenced in User Export

The following actions may appear in the action_to_messages column of the Users export:
Used to edit documents and code in a structured interface. Messages represent user prompts that trigger Canvas interactions (creation, querying, deletion).
Used to search external web sources for real-time information. Messages represent user prompts that trigger web search functionality.
Used to analyze uploaded documents, spreadsheets, and other file types. Messages represent user prompts that trigger file processing and analysis.
Used to run and test code in various programming languages. Messages represent user prompts that trigger code execution requests.
Actions from connected integrations (e.g., Hubspot_create_contact, Slack_send_message). Messages represent user prompts that trigger API calls to external services through Langdock integrations.

Data Handling and Privacy

Null Values

Empty or unavailable data fields are handled as follows:
  • Numeric fields: Display as 0 or empty
  • Text fields: Display as empty strings
  • JSON objects: Display as empty objects {}

Data Retention

  • Historical data is available for up to 12 months
  • Export data reflects the state at the time of export
  • User roles, names, departments, and other attributes show current values at the time of export. Department and company grouping on the Usage Export API uses the value recorded at the user’s latest sign-in at or before each usage event.