@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Event Export API
@version 1.0.0
@endpoints 1
@toc export(1)

@endpoint GET /export
@desc Download Data
@required {from_date: str # The date in yyyy-mm-dd format to begin querying from. This date is inclusive and interpreted as UTC timezone for projects created after 1 January 2023 and current project timezone for projects created before 11 January 2023., to_date: str # The date in yyyy-mm-dd format to query to. This date is inclusive and interpreted as UTC timezone for projects created after 1 January 2023 and current project timezone for projects created before 11 January 2023.}
@optional {project_id: int # Required if using service account to authenticate request., limit: int # Use this parameter if you want to limit the max number of events to be returned. Value cannot be over 100000., event: str # The event or events that you wish to get data for, encoded as a JSON array., where: str # An expression to filter events by. More info on expression sequence structure can be found [here](ref:segmentation-expressions), time_in_ms: bool # Defaults to `false` which will export event timestamps with second-precision. Set to `true` to export event timestamps with millisecond-precision., Accept-Encoding: str # If set to `gzip` and the response body is > 1400 bytes, the response will be compressed with gzip, and `Content-Encoding` will be set to `gzip`.}
@returns(200) Success. The returned format is one event per line where each line is a valid JSON object, but the full return itself is JSONL.

@end
