---
title: "List usage logs"
method: GET
path: "/logs"
tags: ["billing"]
---

# List usage logs

`GET /logs`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/logs`
- Auth: HTTP bearer

## Query parameters

- `limit` string: Page size, default 50, max 100
- `offset` string: Offset, default 0

## Response `200`

Usage logs

- object
  - `success` boolean, required
  - `logs` object[], required
    - `log_id` string
    - `timestamp` string
    - `amount_deducted` number
    - `caller_email` string
    - `target_email` string, nullable
    - `from_email` string, nullable
    - `subject` string, nullable
    - `send_mode` string, nullable
    - `recipient_count` number, nullable
    - `task_id` string, nullable
  - `limit` number, required
  - `offset` number, required

## Other responses

- `500`: Failed to list logs

---

[API](https://skmtc.dev/mailly/apis/mailly-api.md) · [All operations](https://skmtc.dev/mailly/apis/mailly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mailly/apis/mailly-api/revisions/1ceb29637301?raw)
