Authentication
Every request must include anAuthorization header containing your Appstack API key. You can find your API key in the Appstack dashboard under your app settings.
API keys are scoped to a single app. The response will only include events for
the app associated with the key.
Endpoint
Request
Query Parameters
Unix timestamp (seconds) defining the start of the export window. Returns all
events from this timestamp up to the current time.Example:
1700000000Output format for the response. Accepted values:
| Value | Description |
|---|---|
json | Structured JSON object (default) |
ndjson | Newline-delimited JSON — one event per line |
csv | Comma-separated values, returned as a file download |
tsv | Tab-separated values, returned as a file download |
xml | XML document, returned as a file download |
xlsx | Excel workbook (.xlsx), returned as a file download |
parquet | Apache Parquet binary, returned as a file download |
Example request
Response
Forformat=json, the endpoint returns a JSON object. For all other formats, the response is streamed as a file download with the appropriate Content-Disposition header.
JSON response
Response fields
Array of attributed events.
Total number of events returned.
Errors
| Status | Code | Description |
|---|---|---|
401 | Unauthorized | Missing or invalid Authorization header. |
422 | Unprocessable Entity | timestamp is missing, or format is not a valid value. |
500 | Internal Server Error | Unexpected error while fetching or building the export. |