---
title: "Create Analytics Event"
method: POST
path: "/v1/marketing/events"
tags: ["marketing"]
---

# Create Analytics Event

`POST /v1/marketing/events`

## Request

- Base URL: `https://api.claims.zicron.ai`
- URL: `https://api.claims.zicron.ai/v1/marketing/events`
- Auth: none declared

Store an analytics event in the database.

## Request body

- CreateAnalyticsEventRequest
  - `event_name` string, required
  - `properties` object
  - `url` string, nullable
  - `referrer` string, nullable
  - `ip_address` string, nullable
  - `user_agent` string, nullable
  - `utm_source` string, nullable
  - `utm_medium` string, nullable
  - `utm_campaign` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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