---
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`

## Request

- Base URL: `https://apiv1.linkmobility.eu/api`
- URL: `https://apiv1.linkmobility.eu/api/v1/customer/statistics/accounts`
- Auth: none declared

## 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/linkmobility-api.md) - [All operations](https://skmtc.dev/linkmobility/apis/linkmobility-api/llms.txt) - [OpenAPI document](https://skmtc.dev/linkmobility/apis/linkmobility-api/revisions/029548691274?raw)
