---
title: "Record shown/dismissed/clicked. `shown` drives the cooldown and impression cap."
method: POST
path: "/api/campaigns/{id}/events"
tags: ["Campaigns"]
---

# Record shown/dismissed/clicked. \`shown\` drives the cooldown and impression cap.

`POST /api/campaigns/{id}/events`

## Request

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

## Path parameters

- `id` number, required

## Request body

- RecordCampaignEventDto
  - `type` 'shown' | 'dismissed' | 'clicked', required
  - `variant_id` number: Variant the user actually saw
  - `metadata` object

## Response `204`

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
