{
  "item": [
    {
      "name": "Sandbox",
      "description": "",
      "item": [
        {
          "id": "2331ed23-3036-4819-b610-ae3a7dab41f5",
          "name": "Pair this device in the sandbox",
          "request": {
            "name": "Pair this device in the sandbox",
            "description": {
              "content": "Only in the sandbox (https://api.qm.packeroo.com/api/v1): instead of somebody entering the\ncode in the app, the device claims it itself. It sends the token it got from\n`POST /device-pairings` as `Authorization: Bearer …` and is paired at once with a table of its\nown at the sandbox location; the answer is the device as `GET /device` gives it, which answers\nfrom now on. Live, and everywhere but the sandbox, the answer is 404 `not_found`, but only for\nan otherwise valid request: the `User-Agent` (400 `user_agent_required`) and the\n`Idempotency-Key` (400 `idempotency_key_required`) are checked first.\n\nA device paired in the sandbox already gets itself back, at the same table. A token with no\ncode waiting, because it ran out or was never asked for, gets 401 `unauthenticated`: ask for a\ncode again. So does the token of a device paired at a table outside the sandbox, which this\noperation never moves or shows: it asks `GET /device`. 409 `table_devices_off` while table\ndevices are off. While the sandbox itself is not ready (it is being set up again),\nthe answer is 503 `unavailable`: try again later.\n\nThe sandbox keeps the latest 100 tables; when a new one comes, the oldest that no league plays\nat is archived and its device unpaired. It takes 10 requests an hour and makes 20 new tables a\nday per IP address (an IPv6 address by its /48); above that the answer is 429 `rate_limited`\nwith `Retry-After`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "sandbox",
                "device-pairings",
                "confirm"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": {
                  "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                  "type": "text/plain"
                },
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "disabled": false,
                "description": {
                  "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                  "type": "text/plain"
                },
                "key": "User-Agent",
                "value": "Kickertisch/1.2"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {},
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "response": [
            {
              "id": "013794a7-72d0-476d-9303-760b910d86a6",
              "name": "`DeviceResource`",
              "originalRequest": {
                "url": {
                  "path": [
                    "sandbox",
                    "device-pairings",
                    "confirm"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": {\n    \"id\": \"string\",\n    \"name\": \"string\",\n    \"table\": {\n      \"id\": \"string\",\n      \"name\": \"string\"\n    },\n    \"location\": {\n      \"id\": \"string\",\n      \"name\": null,\n      \"time_zone\": \"string\"\n    },\n    \"organization\": {\n      \"id\": \"string\",\n      \"name\": \"string\"\n    },\n    \"scopes\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "3b60518b-966f-436e-b2e2-c50572f7535f",
              "name": "Malformed request, or the idempotency key is missing (`idempotency_key_required`), or the device sends no `User-Agent` (`user_agent_required`)",
              "originalRequest": {
                "url": {
                  "path": [
                    "sandbox",
                    "device-pairings",
                    "confirm"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "35bb5109-2cae-47ff-b6c7-7b5b8c95df14",
              "name": "Unauthenticated, or no code waits for the token and no device of the sandbox is paired with it: its code ran out or was never asked for, or the device belongs to a table outside the sandbox (`unauthenticated`)",
              "originalRequest": {
                "url": {
                  "path": [
                    "sandbox",
                    "device-pairings",
                    "confirm"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "dfaff38e-5f46-4dac-baa2-21904a97d209",
              "name": "Not the sandbox: this operation answers only at https://api.qm.packeroo.com/api/v1 (`not_found`)",
              "originalRequest": {
                "url": {
                  "path": [
                    "sandbox",
                    "device-pairings",
                    "confirm"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "02025c6f-2cbf-4cd6-81df-0e02d24a6dd0",
              "name": "Conflict with the current state, or a request with the same idempotency key is still running (`request_in_progress`), or table devices are switched off, for the platform or by the owner of the sandbox (`table_devices_off`)",
              "originalRequest": {
                "url": {
                  "path": [
                    "sandbox",
                    "device-pairings",
                    "confirm"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Conflict",
              "code": 409,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "e9621170-6325-48c0-9000-57dc130460b8",
              "name": "Validation failed (`validation_failed`), or the idempotency key was used for another request (`idempotency_key_reused`)",
              "originalRequest": {
                "url": {
                  "path": [
                    "sandbox",
                    "device-pairings",
                    "confirm"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
              "code": 422,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "7ac9284b-0831-4d7f-bcb7-dc47c54162f1",
              "name": "Too many requests (`rate_limited`), with `Retry-After`",
              "originalRequest": {
                "url": {
                  "path": [
                    "sandbox",
                    "device-pairings",
                    "confirm"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "aae8d6b0-ef54-462c-9218-e6f4cc573342",
              "name": "The sandbox is being set up again; try again later (`unavailable`)",
              "originalRequest": {
                "url": {
                  "path": [
                    "sandbox",
                    "device-pairings",
                    "confirm"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Service Unavailable",
              "code": 503,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "name": "Table devices",
      "description": "",
      "item": [
        {
          "id": "08e48a7b-acd0-4119-b5e7-2b767834bd61",
          "name": "Ask to pair this device",
          "request": {
            "name": "Ask to pair this device",
            "description": {
              "content": "For a device such as a scoring table: a code of six characters to show, valid for\nten minutes, and its token, given only this once. Whoever looks after the location enters the\ncode at a table in the packeroo app; from then on the token signs the\ndevice in as `Authorization: Bearer …`, and `GET /device` answers. A device that asks again\nwith its earlier token gives up its earlier code; one whose code was claimed meanwhile gets\n409 `device_already_paired` and keeps its token, or 409 `table_devices_off` while its\norganization has table devices switched off, and waits. Every request of a device names it in its\n`User-Agent`, such as `Kickertisch/1.2`, or gets 400 `user_agent_required`.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "device-pairings"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": {
                  "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                  "type": "text/plain"
                },
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "disabled": false,
                "description": {
                  "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                  "type": "text/plain"
                },
                "key": "User-Agent",
                "value": "Kickertisch/1.2"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"model\": \"string\",\n  \"serial\": null,\n  \"firmware\": null\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": {
              "type": "noauth"
            }
          },
          "response": [
            {
              "id": "2fcc6e50-465b-436f-8b25-6e383c799370",
              "name": "`DevicePairingResource`",
              "originalRequest": {
                "url": {
                  "path": [
                    "device-pairings"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"model\": \"string\",\n  \"serial\": null,\n  \"firmware\": null\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": {\n    \"code\": \"string\",\n    \"expires_at\": \"string\",\n    \"token\": \"string\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "0f834283-33ec-46f9-b09a-62aaedd4b870",
              "name": "Malformed request, or the idempotency key is missing (`idempotency_key_required`), or the device sends no `User-Agent` (`user_agent_required`)",
              "originalRequest": {
                "url": {
                  "path": [
                    "device-pairings"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"model\": \"string\",\n  \"serial\": null,\n  \"firmware\": null\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "f72d628d-72cf-4ac6-9aa1-0160b1b56b1d",
              "name": "Conflict with the current state, or a request with the same idempotency key is still running (`request_in_progress`)",
              "originalRequest": {
                "url": {
                  "path": [
                    "device-pairings"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"model\": \"string\",\n  \"serial\": null,\n  \"firmware\": null\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Conflict",
              "code": 409,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "1f495a7d-182a-4edd-a7e8-b30e308cfb57",
              "name": "Validation failed (`validation_failed`), or the idempotency key was used for another request (`idempotency_key_reused`)",
              "originalRequest": {
                "url": {
                  "path": [
                    "device-pairings"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"model\": \"string\",\n  \"serial\": null,\n  \"firmware\": null\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
              "code": 422,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "36d0c6ba-8101-4e83-8e66-0f29792f1e09",
              "name": "Too many requests (`rate_limited`), with `Retry-After`",
              "originalRequest": {
                "url": {
                  "path": [
                    "device-pairings"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) A ULID or UUID the client creates for this action. Repeating the request with the same key returns the first answer again, with `Idempotent-Replayed: true`, and has no second effect.",
                      "type": "text/plain"
                    },
                    "key": "Idempotency-Key",
                    "value": "string"
                  },
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"model\": \"string\",\n  \"serial\": null,\n  \"firmware\": null\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "cb08a229-2157-43a6-ac91-912db1b14a9b",
          "name": "This device",
          "request": {
            "name": "This device",
            "description": {
              "content": "The paired device that asks: its table, location and organization, and what its token may\ndo. A device that is not paired, or no longer, gets 401 and asks to be paired again; so does\nevery device while table devices are switched off for its organization.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "device"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": {
                  "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                  "type": "text/plain"
                },
                "key": "User-Agent",
                "value": "Kickertisch/1.2"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {},
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{bearerToken}}"
                }
              ]
            }
          },
          "response": [
            {
              "id": "73e7f86a-fc22-4f3c-882f-59dc56b0a26f",
              "name": "`DeviceResource`",
              "originalRequest": {
                "url": {
                  "path": [
                    "device"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"data\": {\n    \"id\": \"string\",\n    \"name\": \"string\",\n    \"table\": {\n      \"id\": \"string\",\n      \"name\": \"string\"\n    },\n    \"location\": {\n      \"id\": \"string\",\n      \"name\": null,\n      \"time_zone\": \"string\"\n    },\n    \"organization\": {\n      \"id\": \"string\",\n      \"name\": \"string\"\n    },\n    \"scopes\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "9c7ac278-c17a-4325-98c4-c4c9dbde64dc",
              "name": "The device sends no `User-Agent` (`user_agent_required`)",
              "originalRequest": {
                "url": {
                  "path": [
                    "device"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "c2b572d3-95d1-41e3-84c8-503ad7813c2f",
              "name": "The token is unknown or revoked, the device is not paired yet, or its organization has table devices switched off (`unauthenticated`)",
              "originalRequest": {
                "url": {
                  "path": [
                    "device"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "38134622-a036-403f-a3fd-fbae10b0bb4f",
              "name": "Too many requests (`rate_limited`), with `Retry-After`",
              "originalRequest": {
                "url": {
                  "path": [
                    "device"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": {
                      "content": "(Required) The product and firmware of the device, such as `Kickertisch/1.2`, so a misbehaving one can be told apart. Without it the answer is 400 `user_agent_required`.",
                      "type": "text/plain"
                    },
                    "key": "User-Agent",
                    "value": "Kickertisch/1.2"
                  },
                  {
                    "key": "Accept",
                    "value": "application/problem+json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"type\": \"string\",\n  \"title\": \"string\",\n  \"status\": 6885,\n  \"detail\": \"string\",\n  \"code\": \"string\",\n  \"correlation_id\": \"string\",\n  \"errors\": {\n    \"key_0\": [\n      \"string\",\n      \"string\"\n    ],\n    \"key_1\": [\n      \"string\",\n      \"string\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    }
  ],
  "event": [],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.qm.packeroo.com/api/v1"
    }
  ],
  "info": {
    "_postman_id": "32eae609-b4d3-4a59-bf77-9a9975403b0f",
    "name": "packeroo API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Every public operation of packeroo. Choose the environment \"packeroo Sandbox\", paste your test token into `token` and send. Guides: https://developers.packeroo.com"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  }
}
