---
title: "Get Logs Count"
method: POST
path: "/logs/count"
tags: ["Logs"]
---

# Get Logs Count

`POST /logs/count`

Get count of new logs since a specific timestamp.

Lightweight endpoint for real-time polling. Recommended polling interval: 5 seconds.
Use this to show a "N new logs" badge in the UI.

## Query parameters

- `since` string, required — Count logs after this timestamp (ISO 8601)
- `log_level` string, nullable — Comma-separated log levels

## Request body

- LogCountRequestBody — Request body for log count endpoint.
  - `source_ids` string[]
  - `destination_ids` string[]
  - `transform_ids` string[]

## Response `200`

Successful Response

- LogCountResponse — Response model for log count endpoint.
  - `count` integer, required
  - `since` string, required
  - `filters_applied` LogCountFiltersApplied, required — Filters that were applied to the count query.
    - `source_ids` string[]
    - `destination_ids` string[]
    - `transform_ids` string[]
    - `log_level` string, nullable

## Other responses

- `422` — Validation Error

---

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