---
title: "Get Analytics"
method: GET
path: "/admin/analytics"
tags: ["Admin Analytics"]
---

# Get Analytics

`GET /admin/analytics`

Start analytics generation in background and send results to Slack.
Returns immediately to avoid timeout issues.

Process:
1. Returns success response immediately
2. Runs analytics in background (identifies top users, analyzes messages)
3. Sends formatted report to Slack webhook

The Slack report will include:
- Key insights and patterns
- Top users list with message counts
- Urgent concerns and recommendations
- Spiritual themes and engagement insights

## Query parameters

- `days_back` integer — Number of days to look back
- `user_limit` integer — Number of top users to analyze

## Headers

- `x-api-key` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/usecreed/apis/creed-api.md) · [All operations](https://skmtc.net/usecreed/apis/creed-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usecreed/creed-api/versions/523833f9e819/schema)
