Billing Export
Billing Export
Export billable events to S3 and fetch export URLs
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 theAuthorizationheader (format:Api-Key <key>).
Usage
- Start export: Send
company_ids,start_date,end_date, and optionalservices - 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 returnedtracker_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_dateto 23:59:59 ofend_date) - Use the two-step flow: start the export, then poll with
tracker_iduntil the result is ready