Skip to main content
Skip table of contents

List of camera events

Fetching the list of camera events.

GET/api/admin/v1/cameras/{camera}/events

Headers

Authorization

Bearer token

Accept

application/json

X-Client

ios-cctv|android-cctv|thick-legal|web

X-UUID

unique device id

Body

cameraoptional

int

Unique identifier of the camera

per_pagerequired

int

Number of items per page for pagination. Default is 25

pagerequired

int

Page number for pagination

typerequired

array

Array of admin panel event types (billing_event_types) from Main configurations

fromrequired

date

Start date

torequired

date

End date

Response

200

Successful response

JSON
{
  "data": [
    {
      "id": null,
      "type": "dhcp.reservation",
      "type_pretty": "DHCP. IP address allocation",
      "data": {
        "stream_url": {
          "request": {
            "ip": "127.0.0.1",
            "mac": "a3:a1:4b:4b:b7:1a",
            "option82": null
          }
        },
        "network_device": {
          "ip": "127.0.0.1",
          "uuid": "23bc50dd-59b7-6654-adaf-d736f21b54d9"
        }
      },
      "user": null,
      "created_at": "2023-03-30 05:25:02",
      "updated_at": "2023-03-30 05:25:02"
    },
    {
      "id": null,
      "type": "stream_high_active",
      "type_pretty": "High-quality stream is active",
      "data": null,
      "user": null,
      "created_at": "2023-02-14 05:16:50",
      "updated_at": "2023-02-14 05:16:50"
    },
    {
      "id": null,
      "type": "stream_low_inactive",
      "type_pretty": "Low-quality stream is inactive",
      "data": null,
      "user": null,
      "created_at": "2022-11-22 12:47:53",
      "updated_at": "2022-11-22 12:47:53"
    }
  ],
  "links": {
    "first": "https://vms.local/api/admin/v1/cameras/104953/events?per_page=25&page=1",
    "last": "https://vms.local/api/admin/v1/cameras/104953/events?per_page=25&page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "links": [
      {
        "url": null,
        "label": "pagination.previous",
        "active": false
      },
      {
        "url": "https://vms.local/api/admin/v1/cameras/104953/events?per_page=25&page=1",
        "label": "1",
        "active": true
      },
      {
        "url": null,
        "label": "pagination.next",
        "active": false
      }
    ],
    "path": "https://vms.local/api/admin/v1/cameras/104953/events",
    "per_page": 25,
    "to": 11,
    "total": 11
  }
}
401

Authorization token is not provided or is invalid. Obtaining a token

Example

JSON
curl -k --location --request GET 'https://vms.local/api/admin/v1/cameras/{camera}/events?per_page=int&page=int&type=array&from=date&to=date' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.