---
title: "Get all logs"
method: GET
path: "/{sub_domain}/api/logs/limit/{limit_offset}"
tags: ["Logs"]
---

# Get all logs

`GET /{sub_domain}/api/logs/limit/{limit_offset}`

## Request

- Base URL: `https://api.commpeak.com/pbx`
- URL: `https://api.commpeak.com/pbx/{sub_domain}/api/logs/limit/{limit_offset}`
- Auth: API key in header `Authorization`

Path-paginated variant of `pbx_get_logs`; accepts the same `from` / `till` / `object_type` / `object_id` / `user_id` query filters.

## Path parameters

- `limit_offset` string, required: "limit;offset" e.g. "50;0"
- `sub_domain` string, required: PBX Name (subdomain)

## Response `200`

Successful Response

- LogsResponse
  - `logs` LogItem[], required
    - `id` integer, nullable: Log entry ID.
    - `created_at` string, nullable: When the log was created.
    - `user_id` integer, nullable: ID of the user who created the log.
    - `message` string, nullable: The message containing information about the log.
    - `object_type` string, nullable: The object type the log relates to (for example Campaign, Leads, Trunk).
    - `object_id` integer, nullable: ID of the related object.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/commpeak/apis/commpeak-pbx-api.md) - [All operations](https://skmtc.dev/commpeak/apis/commpeak-pbx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/commpeak/apis/commpeak-pbx-api/revisions/0b1e8c7fd3f6?raw)
