---
title: "Sending Events"
method: POST
path: "/api/track"
tags: ["General"]
---

# Sending Events

`POST /api/track`

## Request

- Base URL: `https://app.onyxmetric.com`
- URL: `https://app.onyxmetric.com/api/track`
- Auth: one of:
  - none
  - HTTP bearer
  - API key in query parameter `api_key`

Track pageviews, custom events, performance, and errors from any platform using the HTTP API.

## Request body

- object

## Response `200`

Successful response. Refer to the linked endpoint documentation for the response fields.

- unknown

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Insufficient permission
- `404`: Resource not found
- `429`: Rate limit exceeded
- `500`: Unexpected server error

---

[API](https://skmtc.dev/onyxmetric/apis/onyxmetric-api.md) · [All operations](https://skmtc.dev/onyxmetric/apis/onyxmetric-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onyxmetric/apis/onyxmetric-api/revisions/c99014014805?raw)
