Client permissions

Use this method to get the data about the permissions granted to the currently authenticated client.

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

Get client permissions

Get client permissions

Use this method to get the data about the operations that the currently authenticated client is allowed to make in the B2Core UI.

Request

Header parameters:

  • Authorization: Bearer <token>

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

curl --location --request GET 'https://host.name/api/v2/my/permissions' \
--header 'Authorization: Bearer <token>'

Response

A response contains an array of objects providing the data about the operations that a client is allowed to make in the B2Core UI:

name string

The operation name. Possible values:

  • verification — a client can obtain a higher verification level

  • converter — a client can exchange funds

  • deposits — a client can deposit funds to their wallets or trading accounts

  • withdrawals — a client can withdraw funds from their wallets or trading accounts

  • internal_transfers — a client can transfer funds to the wallets and trading accounts of other clients registered on the same B2Core UI instance

isEnabled boolean

If true, a client is allowed to make an operation; otherwise, false.

RESPONSE EXAMPLE
[
    {
      "name": "verification",
      "isEnabled": true
    },
    {
      "name": "converter",
      "isEnabled": true
    },
    {
      "name": "deposits",
      "isEnabled": true
    },
    {
      "name": "withdrawals",
      "isEnabled": false
    },
    {
      "name": "internal_transfers",
      "isEnabled": false
    }
  ]