Whitelist

Service to communicate with whitelists.

GET /whitelist/v1/locations/{location_id}/whitelists
Authenticated

Get location whitelists

Returns whitelists tied to a specific location, filtered by the caller’s access.

Path Parameters

NameTypeDescription
location_id string Location id required

Responses

200 response

data [object]
name string
description string
id string
uri string
uri string

Example Request

curl \
  "https://services.bikeep.com/whitelist/v1/locations/{LOCATION_ID}/whitelists" \
  -H "Authorization: Bearer {ACCESS_TOKEN}"
GET /whitelist/v1/whitelists
Authenticated

Get whitelists

Responses

200 response

data [object]
name string
description string
id string
uri string
uri string

Example Request

curl \
  "https://services.bikeep.com/whitelist/v1/whitelists" \
  -H "Authorization: Bearer {ACCESS_TOKEN}"
GET /whitelist/v1/whitelists/{whitelist_id}
Authenticated

Get whitelist

Returns a specific whitelist.

Path Parameters

NameTypeDescription
whitelist_id string Whitelist id required

Responses

200 response

name string
description string
id string
uri string

Example Request

curl \
  "https://services.bikeep.com/whitelist/v1/whitelists/{WHITELIST_ID}" \
  -H "Authorization: Bearer {ACCESS_TOKEN}"
GET /whitelist/v1/whitelists/{whitelist_id}/entities
Authenticated

Get whitelisted entities

Path Parameters

NameTypeDescription
whitelist_id string Target whitelist ID required

Responses

200 response

data [object]
expires_at string

RFC3339, empty if does not expire

is_master_key boolean

The access key is designated as master key in local lists.

created_at string

RFC3339

id_type string rfid
comment string
id string
status string INACTIVEACTIVEEXPIRED
uri string

Example Request

curl \
  "https://services.bikeep.com/whitelist/v1/whitelists/{WHITELIST_ID}/entities" \
  -H "Authorization: Bearer {ACCESS_TOKEN}"
POST /whitelist/v1/whitelists/{whitelist_id}/entities
Authenticated

Modify whitelist entities

Path Parameters

NameTypeDescription
whitelist_id string Target whitelist ID required

Request Body required

entities [object] required
expires_at string

RFC3339, empty if does not expire

is_master_key boolean

The access key is designated as master key in local lists.

id_type string required rfid
comment string
id string required
status string INACTIVEACTIVE
operation string required ADDREMOVE

Responses

204 response

Example Request

curl \
  -X POST \
  "https://services.bikeep.com/whitelist/v1/whitelists/{WHITELIST_ID}/entities" \
  -H "Authorization: Bearer {ACCESS_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
  "entities": [
    {
      "expires_at": "2025-01-15T12:00:00Z",
      "is_master_key": true,
      "id_type": "rfid",
      "comment": "string",
      "id": "00000000-0000-0000-0000-000000000000",
      "status": "INACTIVE"
    }
  ],
  "operation": "ADD"
}'
GET /whitelist/v1/whitelists/{whitelist_id}/targets
Authenticated

Get whitelisted targets

Path Parameters

NameTypeDescription
whitelist_id string Target whitelist ID required

Query Parameters

NameTypeRequiredDescription
type string No Filter targets by type

Responses

200 response

data [object]
reference object
keys_only boolean

Sync device local whitelist keys, do not show to app users

id_type string devicelocation
id string
uri string

Example Request

curl \
  "https://services.bikeep.com/whitelist/v1/whitelists/{WHITELIST_ID}/targets" \
  -H "Authorization: Bearer {ACCESS_TOKEN}"
POST /whitelist/v1/whitelists/{whitelist_id}/targets
Authenticated

Modify whitelist targets

Path Parameters

NameTypeDescription
whitelist_id string Target whitelist ID required

Request Body required

operation string required ADDREMOVE
targets [object] required
keys_only boolean

Sync device local whitelist keys, do not show to app users

id string required

Target device/location ID

type string required devicelocation
uri string required

Target device/location URI

Responses

204 response

Example Request

curl \
  -X POST \
  "https://services.bikeep.com/whitelist/v1/whitelists/{WHITELIST_ID}/targets" \
  -H "Authorization: Bearer {ACCESS_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "ADD",
  "targets": [
    {
      "keys_only": true,
      "id": "00000000-0000-0000-0000-000000000000",
      "type": "device",
      "uri": "https://example.com/resource"
    }
  ]
}'