---
title: "Take Mrr Snapshot Endpoint"
method: POST
path: "/v1/admin_console/analytics/mrr/snapshot"
tags: ["admin_console", "analytics"]
---

# Take Mrr Snapshot Endpoint

`POST /v1/admin_console/analytics/mrr/snapshot`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/admin_console/analytics/mrr/snapshot`
- Auth: none declared

Compute today's MRR and write a row to mrr_snapshot.

Authenticates with EITHER `x-admin-api-key` (cron) or admin Firebase
(manual trigger from UI). VIEWER role is rejected — the combined
dependency only returns when an active admin is on the request.
Idempotent on date — same-day re-runs overwrite.

## Headers

- `x-admin-api-key` string, nullable

## Response `200`

Successful Response

- AdminMRRSnapshotResponse: Returned by POST /mrr/snapshot — the row that was just inserted/updated.
  - `snapshot_date` string, date, required
  - `total_inr` number, required
  - `razorpay_inr` number, required
  - `lemon_inr` number, required
  - `dodo_inr` number
  - `active_count` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
