---
title: "Command Usage Breakdown"
method: GET
path: "/api/admin/bot-analytics/command-usage"
tags: ["v2", "admin", "bot-analytics"]
---

# Command Usage Breakdown

`GET /api/admin/bot-analytics/command-usage`

## Query parameters

- `platform` 'DISCORD' | 'TELEGRAM' | 'SLACK' | 'TEAMS' | 'WHATSAPP' | 'GITHUB' | 'LINEAR' — Mirror of the Prisma PlatformType enum.
- `days` integer

## Response `200`

Successful Response

- BotCommandUsage[]
  - `platform` string, required
  - `command` string, required
  - `uses` integer, required

## Other responses

- `401` — Authentication required
- `422` — Validation Error

## Changes

> 92 revisions in range; 36 could not be searched.

- **2026-07-13** `1e582e248ff7` — 1 info
  - added the required property `items/platform` to the response with the `200` status
- **2026-06-09** `8bc408da47e3` — 1 info
  - endpoint added
- **2026-04-30** `8c84efcb3afb` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/admin/bot-analytics/command-usage/get.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/revisions/5dc375899754/schema)
