---
title: "Get Machine Last Alerts"
method: GET
path: "/v1/machines/{MachineID}/lastAlerts"
tags: ["Machines"]
---

# Get Machine Last Alerts

`GET /v1/machines/{MachineID}/lastAlerts`

Retrieves the most recent alerts for a specific machine identified by the provided MachineID. This helps in monitoring recent issues or notifications related to the machine's operation.

## Path parameters

- `MachineID` integer, required

## Response `200`

A list of the most recent alerts for the specified machine.

- MachineLastAlerts[]
  - `MachineID` integer, nullable — The unique identifier of the machine associated with the alert.
  - `EventDateTimeVMC` string, date-time — The date and time of the event as recorded by the machine (VMC).
  - `TransactionID` integer, nullable — The unique identifier of the transaction associated with the event, if applicable.
  - `EventLogID` integer — The unique identifier of the event log entry.
  - `SiteID` integer — The unique identifier of the site where the machine is located.
  - `EntityTypeID` integer — The unique identifier for the type of entity involved in the event.
  - `EntityTypeName` string, nullable — The name of the entity type involved in the event.
  - `DeviceID` integer, nullable — The unique identifier of the device associated with the event.
  - `EntityActorID` integer, nullable — The unique identifier of the actor (e.g., user or machine) associated with the event.
  - `EventDateTimeGMT` string, date-time — The date and time of the event in GMT.
  - `EventCode` integer — A code representing the type of event that occurred.
  - `EventSourceID` integer — The unique identifier of the source from which the event originated.
  - `EventSourceName` string, nullable — The name of the source from which the event originated.
  - `EventGroupId` integer, nullable — The unique identifier of the group to which the event belongs.
  - `EventGroupName` string, nullable — The name of the group to which the event belongs.
  - `EventCategoryId` integer, nullable — The unique identifier of the category to which the event belongs.
  - `EventCategoryName` string, nullable — The name of the category to which the event belongs.
  - `EventDescription` string, nullable — A textual description of the event.
  - `EventData` string, nullable — Additional data related to the event, provided as a string.
  - `JSONData` string, nullable — The event data in JSON format, if applicable.
  - `EventUserID` integer, nullable — The unique identifier of the user associated with the event, if applicable.

---

[API](https://skmtc.net/nayax/apis/nayax-cortina-api.md) · [All operations](https://skmtc.net/nayax/apis/nayax-cortina-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nayax/nayax-cortina-api/revisions/421f6f83c257/schema)
