developer portal

Workplaces

Every call needs a service key. Create one in Proof under Settings, Service keys, then send it as Authorization: Bearer sk_.... Without the scope for the call you get a 403.

The workplaces in your environment, as Proof knows them. Read-only over the public API: workplaces are created and maintained inside Proof itself.

The identification is the handle to use elsewhere. Setting the workplaces on a group takes identifications, not ids.

Get workplaces

Returns a paged list of the workplaces in the key's environment, 100 per page.

Use identification when you set the workplaces on a group. internalCode is your own code for the workplace, if one was set in Proof.

Query parameters

NameTypeRequiredExample
pageZero-based page index. Defaults to 0.integeroptional0

Responses

200OK
FieldType
itemsWorkplaces on this page.array
filterPaging state for this query.object
{
  "items": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "identification": "WP-0042",
      "name": "Antwerp North site",
      "address": "Noorderlaan 1, 2030 Antwerpen",
      "description": "Main northern construction site",
      "internalCode": "EQ-ANR-N"
    }
  ],
  "filter": {
    "page": 0,
    "pageSize": 100,
    "totalCount": 1,
    "sortAscending": true,
    "sortString": "",
    "searchString": ""
  }
}
401Unauthorized. Missing or invalid service key.
403Forbidden. The key lacks the required scope.