Endpoint
Overview
This endpoint retrieves all event records for a given project, ordered by most recent first.Use it to fetch analytics or event tracking data tied to your projects.
Authentication
This endpoint requires an API key. You can retrieve an API key from your dashboard. Include it in theX-API-KEY header:
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | The ID of the project to fetch events for. |
Responses
β 200 OK
Returns a JSON object containing the list of events:β οΈ 400 Bad Request
IfprojectId is missing:
π 401 Unauthorized
If authentication fails (invalid or missing API key):π« 403 Forbidden
If the project does not belong to the authenticated user:π₯ 500 Internal Server Error
For unexpected server errors:Examples
CURL
Python (requests)
JavaScript (fetch)
Notes
- This endpoint enforces ownership checks, meaning you can only fetch events for projects tied to your API key.
- Results are ordered by
occurred_atdescending (most recent first).