Documentation

Everything you need to start tracking events in your app. Native SDKs for every platform, or use our simple REST API.

Quick Start

Copy-paste examples to get started quickly. Replace your_api_key_here with your actual API key.

curl -X POST https://mostlygoodmetrics.com/v1/events \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key_here" \
  -d '{
    "name": "test_event",
    "user_id": "user_123",
    "properties": {
      "button": "signup",
      "screen": "home"
    }
  }'

A successful request returns HTTP 204 (no content).

REST API

POST https://mostlygoodmetrics.com/v1/events

Headers

Authorization: Bearer your_api_key_here
Content-Type: application/json

Request Body

{
  "events": [
    {
      "name": "button_clicked",
      "user_id": "user_123",
      "properties": {
        "button": "signup",
        "page": "/pricing"
      }
    }
  ]
}

Fields

events
required Array of event objects to track
name
required Event name (e.g., "button_clicked", "purchase_completed")
user_id
optional Unique identifier for the user
properties
optional Object with custom properties for the event
timestamp
optional ISO 8601 timestamp (defaults to server time)

Response

Returns 204 No Content on success.

Ready to get started?

Create a free account and start tracking events in minutes.

Get started for free