Endpoint
Overview
This endpoint allows you to submit arbitrary metric data for a project.Use it to track analytics, counters, or any structured data you want tied to your project.
Authentication
This endpoint requires an API key. You can retrieve an API key from your dashboard. Include it in theX-API-KEY header:
Request Body
Send a JSON payload with the following structure:| Field | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | ID of the project to associate the metric with. |
payload | object | Yes | Arbitrary JSON object representing the metric data. |
Responses
β 200 OK
Metric successfully ingested:β οΈ 400 Bad Request
IfprojectId or payload is missing or invalid:
π 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 submit metrics for projects tied to your API key.