---
title: "Get billing usage history."
method: GET
path: "/billing/usage-history"
tags: ["Billing"]
---

# Get billing usage history.

`GET /billing/usage-history`

Get billing usage records of sent and received messages for a user in the past. It will be sorted by timestamp in descending order.

## Query parameters

- `skip` integer
- `limit` integer

## Response `200`

OK

- ResponsesBillingUsagesResponse
  - `data` EntitiesBillingUsage[], required
    - `created_at` string, required
    - `end_timestamp` string, required
    - `id` string, required
    - `received_messages` integer, required
    - `sent_messages` integer, required
    - `start_timestamp` string, required
    - `total_cost` integer, required
    - `updated_at` string, required
    - `user_id` string, required
  - `message` string, required
  - `status` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.dev/ndolestudio/apis/httpsms-api-reference.md) · [All operations](https://skmtc.dev/ndolestudio/apis/httpsms-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ndolestudio/httpsms-api-reference/revisions/7e5d7ce790b3/schema)
