vagrant@vagrant:~$ vagrant@vagrant:~$ curl -H "X-Boxee-Auth: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6ImJmNzY2NTkxLTU0YTgtNGY1Yy1iN2FlLTY4OWJlODQ2YmRkZCIsImV4cCI6MTY2MTU2NzY0OSwiaXNzIjoiYm94ZWUtc2VydmljZSJ9.Aygr19ECRBB_nfkESThQ6RLZy5o29Gl-_i5SCAkBys8" -H "Content-Type: application/json" https://api.box-ee.com/api/v1/device/list | jq Q6RLZy5o29Gl-_i5SCAkBys8" -H "Content-Type: application/json" https://api.box-ee.com/api/v1/device/list | jq % % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0100 57 100 57 0 0 195 0 --:--:-- --:--:-- --:--:-- 195{ "count": 0, "devices": [], "msg": "found", "status_code": 200}vagrant@vagrant:~$ e vagrant@vagrant:~$ ex vagrant@vagrant:~$ exi vagrant@vagrant:~$ exit vagrant@vagrant:~$ exitexit
Box-ee Documentation
Back to homepage

Pagination

Limits and Pages

The amount of tracking numbers that can be put on a device is a lot, therefore pagination and limits can be helpful when building out a client. The page and limit values can be set as part of query parameters on any list endpoint.

notice the '' around the url when used in the following curl commands.
curl -H "Content-type: application/json" -H "X-Boxee-Auth: your-api-key 'https://api.box-ee.com/api/v1/tracking/list?page=2&limit=5'

{
  "count": 5,
  "msg": "ok",
  "status_code": 200,
  "trackings": [
    {
      "device_id": "4111dc25-0390-4284-a74f-62e939a99d5b",
      "id": "295c0355-83da-4c26-9d30-eabd6d365091",
      "pin_key": "1033",
      "tracking_number": "10338"
    },
    {
      "device_id": "4111dc25-0390-4284-a74f-62e939a99d5b",
      "id": "b7c56a5a-7798-403a-b530-29342651a2ce",
      "pin_key": "1010",
      "tracking_number": "10103"
    },
    {
      "device_id": "4111dc25-0390-4284-a74f-62e939a99d5b",
      "id": "5b00398b-bc27-4b75-93c3-f48b3cd175c5",
      "pin_key": "1048",
      "tracking_number": "10482"
    },
    {
      "device_id": "4111dc25-0390-4284-a74f-62e939a99d5b",
      "id": "fb244439-9dbf-4faa-acce-8069b4ac0389",
      "pin_key": "1002",
      "tracking_number": "10020"
    },
    {
      "device_id": "4111dc25-0390-4284-a74f-62e939a99d5b",
      "id": "9fac43a4-5d02-470e-8b61-c58c0ae4fe9f",
      "pin_key": "1003",
      "tracking_number": "10033"
    }
  ]
}