Get export log history
Retrieve the history of export operations for the authenticated user’s organization. This endpoint returns a paginated list of all export activities including tasks, data sources, vehicles, drivers, and other exportable entities.
Key Features:
- Returns exports from the last 30 days only (older exports are automatically purged)
- Filters by user email by default (shows only current user’s exports)
- Supports filtering by export status, data type, and data name
- Powered by ElasticSearch for fast querying
Export Status Values:
Processing: Export is being generated in the backgroundDone: Export completed successfully, file is ready for downloadFailed: Export failed due to an error
Data Types:
task: Task exportsdata: Data source exportsvehicle: Vehicle exportsdriver: Driver exportsroute: Route exports
Important Notes:
- Export files are stored for 30 days, after which they are automatically deleted
- Download links are S3 presigned URLs with expiration time
- Use this endpoint to monitor background exports initiated via
background=trueparameter
Authorizations
Use a valid Bearer token to authenticate.
Query Parameters
Field name to sort the results by. Sorts the export log entries based on the specified field.
Example: requestAt, status, dataType, dataName
Default: requestAt
Sort order for the results. Use asc for ascending or desc for descending order.
Example: desc
Default: desc
asc, desc Maximum number of export log entries to return per page. Controls pagination size.
Example: 20
Default: 10
Min: 1, Max: 100
1 <= x <= 100Page number for pagination. Use in combination with limit to navigate through results.
Example: 1
Default: 1
Min: 1
x >= 1Filter export logs by the name of the exported data. Useful for finding exports of specific entities.
Example: Task Export - January 2024, Driver List
Filter export logs by type of data that was exported. Helps narrow down results to specific export categories.
Example: task, data, vehicle
task, data, vehicle, driver, route Filter export logs by processing status. Use to find exports that are still processing, completed, or failed.
Example: Done, Processing, Failed
Processing, Done, Failed Filter export logs by user email who initiated the export. If not provided, defaults to the authenticated user's email.
Example: john.doe@mile.app
Default: Current user's email
Response
Success - Export log retrieved
Status of response.
Message of API response.
Total number of export log entries matching the filters (across all pages).
Array of export log entries from ElasticSearch.
ElasticSearch query parameters used for this request (for debugging purposes).