Skip to main content
POST
Billing Export

Export Billing Data

Start a new export of billable events or poll the result of a previously started export.

Endpoint

Authentication

[!NOTE] Requires a valid company API key in the Authorization header (format: Api-Key <key>).

Usage

  • Start export: Send company_ids, start_date, end_date, and optional services
  • Poll export: Send only tracker_id

Request Body

Available Services

ApplicationStageTransition, DocumentAgent, BrowserAgent, LMS, and more.

Example Request - Start Export

Example Request - Poll Export

Responses

200: OK

Export complete. Returns export URLs.

202: Accepted

Export started. Use the returned tracker_id to poll for results.

400: Bad Request

Missing required fields or invalid date format.

404: Not Found

Tracker ID not found.

500: Internal Server Error

Unexpected error during export.

Notes

  • Dates are interpreted in the company’s local timezone (midnight of start_date to 23:59:59 of end_date)
  • Use the two-step flow: start the export, then poll with tracker_id until the result is ready