---
title: "Track User Events"
method: POST
path: "/api/events"
tags: ["events"]
---

# Track User Events

`POST /api/events`

## Request

- Base URL: `https://marketcrew.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://marketcrew.ai/api/events`
- Auth: HTTP bearer

Track server-side user events via PostHog
Frontend $pageview events should be sent directly via PostHog JS SDK

## Request body

- UserEventsRequest: Request to track multiple user events
  - `events` UserEventData[], required
    - `type` string, required
    - `data` object, required
    - `timestamp` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/marketcrew/apis/cappilot.md) · [All operations](https://skmtc.dev/marketcrew/apis/cappilot/llms.txt) · [OpenAPI document](https://skmtc.dev/marketcrew/apis/cappilot/revisions/7036e9c74d40?raw)
