---
title: "Get Product Event Summary"
method: GET
path: "/api/admin/product-events/summary"
tags: ["admin", "product-events"]
---

# Get Product Event Summary

`GET /api/admin/product-events/summary`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/admin/product-events/summary`
- Auth: none declared

Daily event counts for one event_key over the trailing `days`.

Uses the `idx_product_events_key_time (event_key, created_at DESC)`
index (migration 463). Days with zero events are omitted - the caller
sums/charts what is present; a missing day is a real zero, not an error.

## Query parameters

- `event_key` string, required
- `days` integer

## Response `200`

Successful Response

- ProductEventSummary
  - `event_key` string, required
  - `days` integer, required
  - `total` integer, required
  - `daily` ProductEventDailyCount[], required
    - `day` string, required
    - `count` integer, required

## Other responses

- `422`: Validation Error

---

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