# Get all operation keys

`GET https://api.parklio.com/v2/operation-keys`

This endpoint allows the user to list all operation keys

**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`, `date_from`, `date_to`, `lot_id`, `product_id`, `receiver_email`, `receiver_id`, `sender_email`, `sender_id`, `status`, `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": 0,
      "name": "John Doe",
      "product_id": 1,
      "sender_id": 1,
      "operation_token_id": 0,
      "deleted_at": null,
      "created_at": "2026-01-15T09:30:00.000Z",
      "updated_at": "2026-01-15T09:30:00.000Z",
      "receiver": {
        "id": 2,
        "email": "jane.doe1@example.com",
        "name": "Jane Doe"
      },
      "sender": {
        "id": 1,
        "email": "john.doe@example.com",
        "name": "John Doe"
      },
      "product": {
        "device_id": "B123456",
        "latitude": 43.52652359,
        "longitude": 16.450813293,
        "product_type_id": 1,
        "lot_id": 1,
        "zone_id": 1,
        "id": 1
      },
      "operation_token": {
        "id": 1,
        "product_id": 1,
        "start_time": {},
        "end_time": {},
        "status": "active",
        "used_count": 0,
        "is_unlimited": 1,
        "token_close": {
          "token": "string",
          "status_key": "string",
          "challenge_key": "string"
        },
        "token_open": {
          "token": "string",
          "status_key": "string",
          "challenge_key": "string"
        },
        "token_status": {
          "token": "string",
          "status_key": "string",
          "challenge_key": "string"
        },
        "deleted_at": null,
        "created_at": {},
        "updated_at": {}
      }
    }
  ]
}
```

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

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

