Skip to main content
This endpoint exports API usage grouped by API key for the selected period. Results include workspace and personal API keys.

Before You Start

  • Prerequisites and rate limits: See the Usage Export API overview.
  • Browser requests: Langdock intentionally blocks browser-origin requests to protect your API key. Use API keys server-side and store them securely. See API Key Best Practices.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Data Included

By default, the API key export returns one row per API key.

Additional Columns for BYOK Workspaces

Grouped Export

Use group_by=model to return one row per API key and model.