# Get all violation zone events

`GET https://api.parklio.com/v2/violation-zone-events`

This endpoint allows the user to list all violation zone events

**Auth:** `Authorization: Bearer <token>`

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `page` | number | no | Page number, starting at 1. See [Paging](/api/conventions#paging). |
| `size` | number | no | Items per page: 10 by default, at most 300. See [Paging](/api/conventions#paging). |
| `filter` | string[] | no | Filter as `field:rule:value`, for example `lot_id:eq:7`. Repeat `filter` to combine filters; all must match. Fields: `account_id`, `color`, `license_plate`, `lot_id`, `model`, `parking_detection_camera_id`, `start_time`, `end_time`, `stationary_time_above`, `stationary_time_bellow`, `violation_zone_id`. See [Filtering](/api/conventions#filtering). |
| `sort` | string[] | no | Sort as `field:asc` or `field:desc`. Send it once. Fields: `id`. See [Sorting](/api/conventions#sorting). |

## Responses

### 200

```json
{
  "success": true,
  "meta": {
    "total": 100,
    "per_page": 10,
    "current_page": 1,
    "last_page": 1,
    "first_page": 1,
    "first_page_url": "/?page=2",
    "last_page_url": "/?page=10",
    "next_page_url": "/?page=3",
    "previous_page_url": "/?page=1"
  },
  "data": [
    {
      "id": 1,
      "license_plate": "DT-PLATE2",
      "color": "red",
      "model": 1,
      "stationary_time": 60,
      "image_url": "string",
      "deleted_at": null,
      "created_at": "2026-01-15T09:30:00.000Z",
      "updated_at": "2026-01-15T09:30:00.000Z",
      "violation_zone": {
        "id": 1,
        "parking_detection_camera_id": 1,
        "name": "Violation Zone",
        "deleted_at": null,
        "created_at": "2026-01-15T09:30:00.000Z",
        "updated_at": "2026-01-15T09:30:00.000Z",
        "uuid": "d3a17704-98e4-4c8b-bb2e-5c2ec4e1c1f4"
      }
    }
  ]
}
```

### 401 — Account user is not logged in and they should log in again.

```json
{
  "success": false,
  "errors": [
    {
      "code": 1,
      "message": "Unauthorized access."
    }
  ]
}
```

