---
title: "Verify call counts"
method: POST
path: "/verify"
tags: ["verify"]
---

# Verify call counts

`POST /verify`

Asserts that a method was called a specified number of times. With `X-Gripmock-Session` the count covers that session's calls plus global ones — the same scope its stubs match in. Without the header every call is counted, including calls made under a session.

## Request body

- VerifyRequest — Expected number of calls to one method.
  - `service` string, required — Fully qualified gRPC service name.
  - `method` string, required — gRPC method name.
  - `expectedCount` integer, required — Number of calls the method must have received.

## Response `200`

Verification passed

- MessageOK — Generic acknowledgement.
  - `message` string, required — Human-readable result of the operation.
  - `time` string, date-time, required — Server time when the response was produced (RFC 3339).

## Other responses

- `400` — Verification failed (wrong call count)
- `413` — Payload Too Large
- `500` — Internal Server Error

---

[API](https://skmtc.net/bavix/apis/gripmock-api-schema.md) · [All operations](https://skmtc.net/bavix/apis/gripmock-api-schema/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bavix/gripmock-api-schema/revisions/591c74ba50d8/schema)
