---
title: "Unit basic overview"
canonical: "https://docs.cuesystem.com/space/TAM/839319563/Unit%20basic%20overview"
format: markdown
---
> ℹ️ With this endpoint you only get the statistical data **[collected by the units](https://docs.cuesystem.com/space/TAM/161808385/Analytics#Data-collection-using-unit)**.

## Request GET /analytics/json/4

- Copy url from CUE Admin
- Parameters
  - **token**: Required autorization token from CUE Admin
  - **startDateTime** and **endDateTime**: Required. The response will return events that have a realEnd in the defined time range.
  - **pageSize**: Each request returns a collection of data of one or more events in the response. You can optionally specify this parameter to set the maximum number of events in one page of response.

### Example

```
GET https://apiDomain/analytics/json/4?token=1699ae06-93fa-46dc-a34e-ff86d5f6d938&startDateTime=2023-12-01T00:00:00Z&endDateTime=2023-12-30T00:00:00Z&pageSize=10
```

## Response specification

> ℹ️ **Value from calendar server: **This means that the value is as we get it from the calendar server.
> ℹ️ 
> ℹ️ For Microsoft365 explore their [documentation](https://learn.microsoft.com/en-us/graph/api/calendar-list-events).

- **nextLink**: If this parameter is returned, there are additional pages of data to be retrieved in the session.
  - **resourcesEvent**: Each combination of resource and event is one item, one event can be in the array several times times.
    - **id:**
    - **allDayMeeting:**
    - **endMeetingReasonId:**
    - **eventImportanceId: **
    - **eventSensitivityId:**
    - **organizer:**
    - **organizerEmail:**
    - **plannedEndTime**: The planned date and time of the event end
    - **realEndTime**: The real date and time of the event end
    - **recurringMeeting:**
    - **reservationMethodId:**
    - **resourceDisplayName:**
    - **resourceUsername:**
    - **resourceId:**
    - **startTime:**
    - **subject**: Value subject from Microsoft365
    - **iCalUid**: Value iCalUid from Microsoft365
    - **eventID:**
  - **resource**
    - **id:**
    - **displayName:**
    - **username:**
    - **email:**
  - **endMeetingReason**
    - **id:**
    - **name:**
  - **eventImportance**
    - **id:**
    - **name:**
  - **eventSensitivity**
    - **id:**
    - **name:**
  - **reservationMethod**
    - **id:**
    - **name:**

### Example


```
{
    "nextLink": "",
    "resourceEvent": [
        {
            "id": 1,
            "allDayMeeting": false,
            "endMeetingReasonId": 2,
            "eventImportanceId": 2,
            "eventSensitivityId": 1,
            "organizer": "R T 0001",
            "organizerEmail": "t_resource_0001@contoso.com",
            "plannedEndTime": "2022-12-08T10:50:00+01:00",
            "realEndTime": "2022-12-08T10:37:00+01:00",
            "recurringMeeting": false,
            "reservationMethodId": 2,
            "resourceDisplayName": "R T 0001",
            "resourceUsername": "t_resource_0001@contoso.com",
            "resourceId": 790,
            "startTime": "2022-12-08T10:35:00+01:00",
            "subject": "Reserved from panel",
            "iCalUId": "040000008200E00074C5B7101A82E00800000000E2631C96F00AD901000000000000000010000000D14AC18A552E8D46B864633259AF952B",
            "eventId": "AAMkADRkYTlmMTQxLTM0N2ItNGYyYi05YWYwLWIyMDg0YzQ1M2I1OABGAAAAAADnFXOTZDHhRKvcbv4ZuRu5BwCJibKWmUvTTpZnhIlBkQL3AAAAAAENAACJibKWmUvTTpZnhIlBkQL3AAFhCFrSAAA="
        },
    ],
    "resource": [
        {
            "id": 206,
            "displayName": "W T 0079",
            "username": "t_resource_0079@contoso.com",
            "email": "t_resource_0079@contoso.com"
        },
    ],
    "endMeetingReason": [
        {
            "id": 1,
            "name": "Finished as planed"
        },
    ],
    "eventImportance": [
        {
            "id": 0,
            "name": "Unknown"
        }
    ],
    "eventSensitivity": [
        {
            "id": 0,
            "name": "Unknown"
        }
    ],
    "reservationMethod": [
        {
            "id": 1,
            "name": "From outside"
        }
    ]
}
```