# Get vehicle analytics CSV file

`GET https://api.parklio.com/v2/sessions/vehicle-analytics/export`

This endpoint allows the user to get the vehicle analytics CSV file

**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: `created_at`, `plate`, `lot_ids`, `zone_ids`. See [Filtering](/api/conventions#filtering). |
| `sort` | string[] | no | Sort as `field:asc` or `field:desc`. Send it once. Fields: `plate`, `visits`, `total_time_seconds`, `avg_stay_seconds`, `longest_stay_seconds`, `last_seen`. See [Sorting](/api/conventions#sorting). |

## Responses

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

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

