---
title: "Count events matching batch replay filters"
method: GET
path: "/v1/projects/{projectID}/events/countbatchreplayevents"
tags: ["Events"]
---

# Count events matching batch replay filters

`GET /v1/projects/{projectID}/events/countbatchreplayevents`

This endpoint returns how many events would be affected by a batch replay with the given filters.

## Path parameters

- `projectID` string, required

## Query parameters

- `body` string
- `direction` 'next' | 'prev'
- `endDate` string
- `endpointId` string[]
- `idempotencyKey` string
- `next_page_cursor` string
- `perPage` integer
- `prev_page_cursor` string
- `query` string
- `sort` string
- `sourceId` string[]
- `startDate` string

## Response `200`

OK

- object
  - `message` string
  - `status` boolean
  - `data` ModelsCountResponse
    - `num` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

## Changes

- **2026-08-20** (v3) `d3cc48a7eaa4` — 1 info
  - added the new optional `query` request parameter `body`
- **2026-07-20** (v3) `bae289777c91` — 6 breaking, 3 info
  - the response property `allOf[subschema #2]/data` became nullable for the status `400`
  - the response property `allOf[subschema #2]/data` became nullable for the status `401`
  - the response property `allOf[subschema #2]/data` became nullable for the status `404`
  - the `allOf[subschema #2]/data` response's property type/format changed from `object`/`` to ``/`` for status `400`
  - …5 more
- **2026-07-17** (v3) `ea6df6c72b51` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/getconvoy/apis/convoy-api-reference/changes/v1/projects/:projectID/events/countbatchreplayevents/get.md)

---

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