{
  "info": {
    "name": "Bioprints API",
    "description": "Generated from /openapi.json (1.0.0). Set apiKey to your tenant's key, and registryKey for the reader calls.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "subjectReference",
      "value": "member-4821",
      "description": "Your reference for the person: 1 to 64 characters with no `/`, not `.` or `..`, matched exactly, case included."
    },
    {
      "key": "hand",
      "value": "left",
      "description": "The hand: `left` or `right`."
    },
    {
      "key": "serial",
      "value": "VS2405110001",
      "description": "The reader's serial."
    }
  ],
  "item": [
    {
      "name": "Contract",
      "item": [
        {
          "name": "Returns this OpenAPI document.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/openapi.json",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "openapi.json"
              ]
            },
            "description": "Served without a key, so you can generate a client from it.",
            "auth": {
              "type": "noauth"
            }
          }
        }
      ]
    },
    {
      "name": "Palms",
      "item": [
        {
          "name": "Lists a person's hands.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/people/:subjectReference/hands",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "people",
                ":subjectReference",
                "hands"
              ],
              "variable": [
                {
                  "key": "subjectReference",
                  "value": "member-4821",
                  "description": "Your reference for the person: 1 to 64 characters with no `/`, not `.` or `..`, matched exactly, case included."
                }
              ]
            },
            "description": "Returns each hand Bioprints still holds for the person, with its state: `enrolled`, `frozen` or `removing`."
          }
        },
        {
          "name": "Enrolls one or both hands of a person.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "The caller's own name for this request: printable ASCII with no spaces. Sent again with the same request, it replays the first success."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/people/:subjectReference/hands",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "people",
                ":subjectReference",
                "hands"
              ],
              "variable": [
                {
                  "key": "subjectReference",
                  "value": "member-4821",
                  "description": "Your reference for the person: 1 to 64 characters with no `/`, not `.` or `..`, matched exactly, case included."
                }
              ]
            },
            "description": "Enrolls the hands `metadata.hands` names under your reference for the person; with two hands, both are enrolled or neither is. Bioprints always runs the engine's quality check, and enrolls of one tenant run one at a time, so two enrolls of the same palm can never both succeed. An enroll counts once for each hand it searches and once for each hand it adds, so a two-hand enroll uses four of your palm calls a second.",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "metadata",
                  "value": "{\"sensorSerial\":\"VS2405110001\",\"hands\":[\"left\",\"right\"]}",
                  "type": "text",
                  "contentType": "application/json",
                  "description": "The call's fields, as a JSON part with `Content-Type: application/json`."
                },
                {
                  "key": "left_rgb",
                  "type": "file",
                  "src": [],
                  "description": "A 720 × 1024 JPEG or PNG; sent for a hand the call names and only then, or the call is `capture_malformed`",
                  "disabled": false
                },
                {
                  "key": "left_ir",
                  "type": "file",
                  "src": [],
                  "description": "A 720 × 1024 JPEG or PNG; sent for a hand the call names and only then, or the call is `capture_malformed`",
                  "disabled": false
                },
                {
                  "key": "right_rgb",
                  "type": "file",
                  "src": [],
                  "description": "A 720 × 1024 JPEG or PNG; sent for a hand the call names and only then, or the call is `capture_malformed`",
                  "disabled": false
                },
                {
                  "key": "right_ir",
                  "type": "file",
                  "src": [],
                  "description": "A 720 × 1024 JPEG or PNG; sent for a hand the call names and only then, or the call is `capture_malformed`",
                  "disabled": false
                }
              ]
            }
          }
        },
        {
          "name": "Freezes a person.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "The caller's own name for this request: printable ASCII with no spaces. Sent again with the same request, it replays the first success."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/people/{{subjectReference}}:freeze",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "people",
                "{{subjectReference}}:freeze"
              ]
            },
            "description": "Stops every hand of the person being matched, without deleting anything; a hand they enroll while frozen comes in frozen."
          }
        },
        {
          "name": "Unfreezes a person.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "The caller's own name for this request: printable ASCII with no spaces. Sent again with the same request, it replays the first success."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/people/{{subjectReference}}:unfreeze",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "people",
                "{{subjectReference}}:unfreeze"
              ]
            },
            "description": "Undoes a freeze of the person, restoring exactly what was frozen: a hand frozen on its own stays frozen."
          }
        },
        {
          "name": "Identifies whose palm a capture is.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/people:identify",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "people:identify"
              ]
            },
            "description": "Searches your tenant's people for the palm in the capture, on the hand `metadata.hand` names. A frozen person or hand is never matched. A match means the engine's own verdict passed, so you do not compare the scores yourself.",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "metadata",
                  "value": "{\"hand\":\"left\",\"sensorSerial\":\"VS2405110001\"}",
                  "type": "text",
                  "contentType": "application/json",
                  "description": "The call's fields, as a JSON part with `Content-Type: application/json`."
                },
                {
                  "key": "left_rgb",
                  "type": "file",
                  "src": [],
                  "description": "A 720 × 1024 JPEG or PNG; sent for a hand the call names and only then, or the call is `capture_malformed`",
                  "disabled": false
                },
                {
                  "key": "left_ir",
                  "type": "file",
                  "src": [],
                  "description": "A 720 × 1024 JPEG or PNG; sent for a hand the call names and only then, or the call is `capture_malformed`",
                  "disabled": false
                },
                {
                  "key": "right_rgb",
                  "type": "file",
                  "src": [],
                  "description": "A 720 × 1024 JPEG or PNG; sent for a hand the call names and only then, or the call is `capture_malformed`",
                  "disabled": true
                },
                {
                  "key": "right_ir",
                  "type": "file",
                  "src": [],
                  "description": "A 720 × 1024 JPEG or PNG; sent for a hand the call names and only then, or the call is `capture_malformed`",
                  "disabled": true
                }
              ]
            }
          }
        },
        {
          "name": "Verifies that a capture is a person.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/people/{{subjectReference}}:verify",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "people",
                "{{subjectReference}}:verify"
              ]
            },
            "description": "Checks the capture against the person the path names. When it is somebody else, the answer is only `not_verified`: never who it was, and no scores. A frozen hand, or one being removed, also answers `not_verified`.",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "metadata",
                  "value": "{\"hand\":\"left\",\"sensorSerial\":\"VS2405110001\"}",
                  "type": "text",
                  "contentType": "application/json",
                  "description": "The call's fields, as a JSON part with `Content-Type: application/json`."
                },
                {
                  "key": "left_rgb",
                  "type": "file",
                  "src": [],
                  "description": "A 720 × 1024 JPEG or PNG; sent for a hand the call names and only then, or the call is `capture_malformed`",
                  "disabled": false
                },
                {
                  "key": "left_ir",
                  "type": "file",
                  "src": [],
                  "description": "A 720 × 1024 JPEG or PNG; sent for a hand the call names and only then, or the call is `capture_malformed`",
                  "disabled": false
                },
                {
                  "key": "right_rgb",
                  "type": "file",
                  "src": [],
                  "description": "A 720 × 1024 JPEG or PNG; sent for a hand the call names and only then, or the call is `capture_malformed`",
                  "disabled": true
                },
                {
                  "key": "right_ir",
                  "type": "file",
                  "src": [],
                  "description": "A 720 × 1024 JPEG or PNG; sent for a hand the call names and only then, or the call is `capture_malformed`",
                  "disabled": true
                }
              ]
            }
          }
        },
        {
          "name": "Removes a person.",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "The caller's own name for this request: printable ASCII with no spaces. Sent again with the same request, it replays the first success."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/people/:subjectReference",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "people",
                ":subjectReference"
              ],
              "variable": [
                {
                  "key": "subjectReference",
                  "value": "member-4821",
                  "description": "Your reference for the person: 1 to 64 characters with no `/`, not `.` or `..`, matched exactly, case included."
                }
              ]
            },
            "description": "Removes every hand of the person; from the moment of the request none is matched again. The answer is `202` while the engine is still deleting and `200` once it has confirmed, and Bioprints keeps retrying the engine's delete itself, so you do not call again. Once every hand is removed, the reference is free to enroll again, unfrozen."
          }
        },
        {
          "name": "Removes one of a person's hands.",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "The caller's own name for this request: printable ASCII with no spaces. Sent again with the same request, it replays the first success."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/people/:subjectReference/hands/:hand",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "people",
                ":subjectReference",
                "hands",
                ":hand"
              ],
              "variable": [
                {
                  "key": "subjectReference",
                  "value": "member-4821",
                  "description": "Your reference for the person: 1 to 64 characters with no `/`, not `.` or `..`, matched exactly, case included."
                },
                {
                  "key": "hand",
                  "value": "left",
                  "description": "The hand: `left` or `right`."
                }
              ]
            },
            "description": "Removes the hand the path names; from the moment of the request it is never matched again. The answer is `202` while the engine is still deleting and `200` once it has confirmed. Revoking a hand already being removed answers as the first time."
          }
        },
        {
          "name": "Freezes one of a person's hands.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "The caller's own name for this request: printable ASCII with no spaces. Sent again with the same request, it replays the first success."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/people/:subjectReference/hands/{{hand}}:freeze",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "people",
                ":subjectReference",
                "hands",
                "{{hand}}:freeze"
              ],
              "variable": [
                {
                  "key": "subjectReference",
                  "value": "member-4821",
                  "description": "Your reference for the person: 1 to 64 characters with no `/`, not `.` or `..`, matched exactly, case included."
                }
              ]
            },
            "description": "Stops the hand the path names being matched, without deleting anything. Freezing a frozen hand answers as the first time; a hand being removed stays `removing`."
          }
        },
        {
          "name": "Unfreezes one of a person's hands.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "The caller's own name for this request: printable ASCII with no spaces. Sent again with the same request, it replays the first success."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/people/:subjectReference/hands/{{hand}}:unfreeze",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "people",
                ":subjectReference",
                "hands",
                "{{hand}}:unfreeze"
              ],
              "variable": [
                {
                  "key": "subjectReference",
                  "value": "member-4821",
                  "description": "Your reference for the person: 1 to 64 characters with no `/`, not `.` or `..`, matched exactly, case included."
                }
              ]
            },
            "description": "Undoes a freeze of the hand the path names; the hand stays frozen while the person is. Unfreezing a hand that is not frozen answers as the first time."
          }
        }
      ]
    },
    {
      "name": "Readers",
      "item": [
        {
          "name": "Adds a sold reader to your tenant.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/readers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "readers"
              ]
            },
            "description": "Takes a registry key, never a tenant key. Answers `201` with the reader added, or `200` with the reader as it stands when it is already on your tenant; a frozen reader stays frozen. It is safe to repeat as it is, so it takes no `Idempotency-Key`.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{registryKey}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"serial\": \"VS2405110001\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Freezes a reader taken back.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/readers/{{serial}}:freeze",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "readers",
                "{{serial}}:freeze"
              ]
            },
            "description": "Takes a registry key. A capture taken on a frozen reader is refused with `sensor_not_allowed`. Only Bioprints operations unfreeze or move a reader.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{registryKey}}",
                  "type": "string"
                }
              ]
            }
          }
        },
        {
          "name": "Deletes a reader from your tenant.",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/readers/:serial",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "readers",
                ":serial"
              ],
              "variable": [
                {
                  "key": "serial",
                  "value": "VS2405110001",
                  "description": "The reader's serial."
                }
              ]
            },
            "description": "Takes a registry key. From then on a capture taken on the reader is refused with `sensor_not_allowed`, and its serial is free to be added again, by any tenant. Deleting it again answers `reader_not_found`, so it takes no `Idempotency-Key`.",
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{registryKey}}",
                  "type": "string"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Tenant",
      "item": [
        {
          "name": "Lists the hands removed from your tenant.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/deletions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "deletions"
              ],
              "query": [
                {
                  "key": "after",
                  "value": "",
                  "description": "The `next` value of the previous page; leave it out for the first page.",
                  "disabled": true
                }
              ]
            },
            "description": "Your evidence that a deletion request was carried out: every hand removed from your tenant, newest first, 50 a page. Pass the page's `next` back as `after` for the following page."
          }
        },
        {
          "name": "Returns your tenant's view of Bioprints.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/palm/v1/status",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "palm",
                "v1",
                "status"
              ]
            },
            "description": "Health, limits and this month's usage, for your tenant alone. It is never held to your rate of palm calls."
          }
        }
      ]
    }
  ]
}
