Listing Lock Holders

To get a list of all of the Lock Holders the Integrator can manage, make a GET request to the Lock Holders end point:

https://api.unloc.app/integrators/v1/lock-holders/

Here's an example:

curl --request GET '<<api_url>>/integrators/v1/lock-holders/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibm'

The Lock Holders API response will contain a JSON object with a lockHolders key referencing an array listing all of the associated Lock Holders:

{
  "lockHolders": [
    {
      "id":"866b8a35-4184-44c5-8ffd-448a77e5a91c",
      "name":"jacobs-st-43",
      "countryIso":"NO",
      "organizationId":"593cec5e2d394ac794706de7cf2beecb",
      "organizationIdSuffix":"7516"
    },
    {
      "id": "8931c050-7d04-4a21-80d0-2b8a6844d043",
      "name": "beach-condominium-12",
      "countryIso": "PT",
      "organizationId": "sunnyweathercorp",
      "organizationIdSuffix": "",
    }
    //...
  ]
}

Did this page help you?