> ## Documentation Index
> Fetch the complete documentation index at: https://devzone.nayax.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Machine Last Alerts

> 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.



## OpenAPI

````yaml /openapi/lynx.yaml get /v1/machines/{MachineID}/lastAlerts
openapi: 3.0.1
info:
  title: Nayax Operational Lynx API
  version: v1
servers:
  - url: https://qa-lynx.nayax.com/operational
security:
  - Authorization: []
paths:
  /v1/machines/{MachineID}/lastAlerts:
    get:
      tags:
        - Machines
      summary: Get Machine Last Alerts
      description: >-
        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.
      operationId: get-machine-last-alerts
      parameters:
        - name: MachineID
          in: path
          required: true
          description: >-
            The unique identifier of the machine whose last alerts are being
            requested.
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: A list of the most recent alerts for the specified machine.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MachineLastAlerts'
components:
  schemas:
    MachineLastAlerts:
      type: object
      properties:
        MachineID:
          type: integer
          format: int64
          nullable: true
          description: The unique identifier of the machine associated with the alert.
        EventDateTimeVMC:
          type: string
          format: date-time
          description: The date and time of the event as recorded by the machine (VMC).
        TransactionID:
          type: integer
          format: int64
          nullable: true
          description: >-
            The unique identifier of the transaction associated with the event,
            if applicable.
        EventLogID:
          type: integer
          format: int64
          description: The unique identifier of the event log entry.
        SiteID:
          type: integer
          format: int32
          description: The unique identifier of the site where the machine is located.
        EntityTypeID:
          type: integer
          format: int32
          description: The unique identifier for the type of entity involved in the event.
        EntityTypeName:
          type: string
          nullable: true
          description: The name of the entity type involved in the event.
        DeviceID:
          type: integer
          format: int64
          nullable: true
          description: The unique identifier of the device associated with the event.
        EntityActorID:
          type: integer
          format: int64
          nullable: true
          description: >-
            The unique identifier of the actor (e.g., user or machine)
            associated with the event.
        EventDateTimeGMT:
          type: string
          format: date-time
          description: The date and time of the event in GMT.
        EventCode:
          type: integer
          format: int32
          description: A code representing the type of event that occurred.
        EventSourceID:
          type: integer
          format: int32
          description: The unique identifier of the source from which the event originated.
        EventSourceName:
          type: string
          nullable: true
          description: The name of the source from which the event originated.
        EventGroupId:
          type: integer
          format: int32
          nullable: true
          description: The unique identifier of the group to which the event belongs.
        EventGroupName:
          type: string
          nullable: true
          description: The name of the group to which the event belongs.
        EventCategoryId:
          type: integer
          format: int32
          nullable: true
          description: The unique identifier of the category to which the event belongs.
        EventCategoryName:
          type: string
          nullable: true
          description: The name of the category to which the event belongs.
        EventDescription:
          type: string
          nullable: true
          description: A textual description of the event.
        EventData:
          type: string
          nullable: true
          description: Additional data related to the event, provided as a string.
        JSONData:
          type: string
          nullable: true
          description: The event data in JSON format, if applicable.
        EventUserID:
          type: integer
          format: int64
          nullable: true
          description: >-
            The unique identifier of the user associated with the event, if
            applicable.
      additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Enter your Bearer token. It's required to authenticate API requests.

````