---
title: "POST /api/analytics/internal"
method: POST
path: "/api/analytics/internal"
tags: ["/api/analytics"]
---

# POST /api/analytics/internal

`POST /api/analytics/internal`

Receive a batch of internal analytics events from the frontend and record them as Prometheus metrics.

## Request body

- object
  - `events` object[], required
    - `amount` number, nullable
    - `labels` object, nullable
    - `metric` string, required
    - `op` 'inc' | 'dec' | 'set' | 'observe' | 'clear', required

## Response `2XX`

Successful response

- unknown

## Other responses

- `4XX` — Client error response
- `5XX` — Server error response

## Changes

- **2026-05-22** `b1dc4ea67567` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/analytics/internal/post.md)

---

[API](https://skmtc.dev/metabase/apis/metabase-api.md) · [All operations](https://skmtc.dev/metabase/apis/metabase-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/metabase/metabase-api/revisions/e879e0319b12/schema)
