---
title: "SMS usage (volumes)"
method: GET
path: "/v1/usage/sms"
tags: ["Usage"]
---

# SMS usage (volumes)

`GET /v1/usage/sms`

Aggregated SMS/MMS volumes across your numbers: sent, received, and
total message counts, with an optional breakdown by UTC day or by
number. Defaults to the last 30 days.

Volumes only, deliberately: SMS cost is carrier-rated asynchronously
and billed to your invoice, so per-message cost is not available here.
Calling usage (GET /v1/usage/calls) does include billable cost.

## Query parameters

- `since` string, date-time
- `until` string, date-time
- `number` string
- `groupBy` 'day' | 'number'

## Response `200`

Volume totals (+ breakdown when groupBy is set).

- object
  - `since` string, date-time
  - `until` string, date-time
  - `groupBy` 'day' | 'number' | 'null', nullable
  - `totals` object
    - `sent` integer
    - `received` integer
    - `total` integer
  - `groups` object[] — Present (possibly empty) when `groupBy` is set.
    - `key` string — A `YYYY-MM-DD` UTC day or one of your numbers.
    - `sent` integer
    - `received` integer
    - `total` integer

## Other responses

- `400` — since must be before until
- `401` — Unauthorized
- `404` — `number` doesn't match any of your SMS-enabled numbers

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/revisions/f81ca70ea6b9/schema)
