---
title: "Returns statistics for the customer grouped by accounts"
method: GET
path: "/v1/customer/statistics/accounts"
tags: ["uncategorized"]
---

# Returns statistics for the customer grouped by accounts

`GET /v1/customer/statistics/accounts`

## Query parameters

- `filter` string
- `regionCode` string
- `groupBy` string
- `from` string
- `to` string

## Response `200`

OK

- MessageStatisticGroupedByAccountResponse[]
  - `intervalStart` string, date-time, required — interval start time
  - `intervalEnd` string, date-time, required — interval end time
  - `smsAmount` integer, required — amount of SMS messages sent
  - `pushAmount` integer, required — amount of push messages sent
  - `voiceAmount` integer, required — amount of voice messages sent
  - `whatsappAmount` integer, required — amount of whatsapp messages sent
  - `rcsAmount` integer, required — amount of rcs messages sent
  - `total` integer, required — total messages sent
  - `regionCode` string — region code
  - `account` MinimalAccountResponse
    - `id` integer — account id
    - `username` string — user
    - `active` boolean — active

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

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