Devices

Use these methods to obtain and manage information about devices from which the currently authenticated client was signed in to the B2Core UI.

GET[host]/api/v2/my/devices

Get a list of devices

GET[host]/api/v2/my/devices/{deviceId}

Get device details

DELETE[host]/api/v2/my/devices/{deviceId}

Delete a device

Get a list of devices

Use this method to obtain a list of devices from which the currently authenticated client was signed in to the B2Core UI.

Request

Header parameters:

  • accept-language: <string>

  • Accept: application/json

  • Authorization: Bearer <access_token>

Query parameters:

The following sorting parameter is available for this method:

lastSignIn

The date and time when a client last signed in to the B2Core UI using this device.

Refer to the Query parameters section in the API Overview for details on applying sorting parameters.

GET[host]/api/v2/my/devices

curl --location --request GET 'https://host.name/api/v2/my/devices?limit=10&offset=0' \
--header 'accept-language: ja' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'

Response

A response contains an array of Device objects providing information about the available client devices.

Get device details

Use this method to obtain detailed information about a specified client device.

Request

Header parameters:

  • accept-language: <string>

  • Accept: application/json

  • Authorization: Bearer <access_token>

Path parameters:

deviceId required

The device identifier.

GET[host]/api/v2/my/devices/{deviceId}

curl --location --request GET 'https://host.name/api/v2/my/devices/1' \
--header 'accept-language: ja' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'

Response

A response contains a Device object providing information about the specified client device.

Delete a device

Use this method to delete a specified client device.

Request

Header parameters:

  • Accept: application/json

  • Authorization: Bearer <access_token>

Path parameters:

deviceId required

The device identifier.

GET[host]/api/v2/my/devices/{deviceId}

curl --location --request DELETE 'https://host.name/api/v2/my/devices/1' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'

Response

In case of success, no response body is returned.