Cloud APIs
...
Version 3.0 B-Deploy Endpoints
B-Deploy Setup Entities (v3)

Token Entity (v3)

3min
this object is used to register the device with a bsn cloud network and contains the following required properties token string string required required a device registration token returned by the server this token allows devices to provision themselves for a bsn cloud network note that this is not a user token validfrom dates dates required required the start of the validity date for the token the date/time is formatted as yyyy mm ddthh\ mm\ ss sssz validto dates dates required required the end of the validity date for the token the date/time is formatted as yyyy mm ddthh\ mm\ ss sssz this optional property can also be used scope string string optional optional the scope of the device registration token the default is "cert" sample request to get the device registration token curl location &#x9; \ request post 'https //api bsn cloud/2020/10/rest/provisioning/setups/tokens/' \\ &#x9; \ header 'accept application/json' \\ &#x9; \ header 'accept encoding gzip,deflate' \\ &#x9; \ header 'content type application/x www form urlencoded' \\ &#x9; \ header 'authorization bearer 5bffl3npqscn4rqueo3v1ei8qkqztobovfklagg3qmcvsdsgfit1oic2p' \\ &#x9; \ data urlencode 'grant type=user access token' \\ &#x9; \ data urlencode 'user access token=\<redacted>' \\ &#x9; \ data urlencode 'client id=\<redacted>' \\ &#x9; \ data urlencode 'client secret=\<redacted>' see main api version 2022/06 docid 0qhibo6ras8zwyjybeh0r for information about how to get a user access token sample response { "token" "cw7oqjpg21d3ao1wdzpuxtkmn2dyog7avgd1qhm0xrnewfw6kiqhznwbng7xjwt74o2ncziiuedvoe894pz0odonzlxjoqgups6yrz7hmpplbeozzpvlun5shaxjjees", "scope" "cert", "validfrom" "2024 03 05t19 50 25z", "validto" "2026 03 05t19 50 25z" }