---
title: "Closed first-party analytics event"
method: POST
path: "/v1/events"
---

# Closed first-party analytics event

`POST /v1/events`

## Request

- Base URL: `https://api.specstream.ai`
- URL: `https://api.specstream.ai/v1/events`
- Auth: one of:
  - API key in header `Authorization`
  - none

## Request body

- AnalyticsEvent
  - `name` 'page_viewed' | 'query_started' | 'support_opened', required
  - `props` object
  - `occurred_at` string, date-time, nullable

## Response `200`

Accepted

- object
  - `data` object, required

## Other responses

- `default`: Error envelope

---

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