# IRPCEventsAdmin.GetMinAndMaxEventIDs

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Event administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/GetMinAndMaxEventIDs/

Badges: `Administration API / specialized` `admin` `session`

Gets the smallest and largest event ID in the vault's event log.

- **Service:** [Event administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/index.md) `MFiles.IRPCEventsAdmin`
- **gRPC method:** `/MFiles.IRPCEventsAdmin/GetMinAndMaxEventIDs`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-min-and-max-event-ids`
- **Request:** [`GetMinAndMaxEventIDsRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/GetMinAndMaxEventIDs/index.md#request)
- **Response:** [`GetMinAndMaxEventIDsResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/GetMinAndMaxEventIDs/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires a vault session and the vault right `manage_events`.
- Both are 0 when the log is empty. IDs grow over time but are not contiguous: deleted events
  leave gaps.

<a id="request"></a>

## Request: GetMinAndMaxEventIDsRequest

No fields.

<a id="response"></a>

## Response: GetMinAndMaxEventIDsResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `min_event_id` | `int64` | The ID of the oldest event, or 0 if there are no events. |
| `max_event_id` | `int64` | The ID of the newest event, or 0 if there are no events. |
