Diagnostic Web Server APIs
Remote DWS APIs
6min
the remote dws allows you to view and modify settings on a brightsign player over the internet the remote dws api is a rest framework that allows a client application to integrate with remote dws functionality the client application makes rest calls to the brightsign websockets server, which in turn sends websockets messages to brightsign players depending on the operation, the brightsign player may return information to the brightsign websockets server, which will be relayed in the server rest response to the client application rest urls the following urls are case sensitive, and the server may return code 426 if the case is not matched exactly production remote dws server https //ws bsn cloud/rest/v1/ production authentication url https //api bsn cloud/2022/06/rest/token/ authentication all remote dws calls require a valid authentication token the target player must belong to the same network for which the token has been granted authentication is carried out using the same oauth endpoint as other bsn cloud services see the main api version 2022/06 docid 0qhibo6ras8zwyjybeh0r docs request headers you should include the following request headers in your request the content type header is only needed when content is being sent in post or put api calls headers { 	'accept' 'application/json, application/vnd bsn error+json', 	'authorization' 'bearer {{useraccesstoken}}', 	'content type' 'application/json', } request message format http requests to remote dws resources must be json formatted and contain the following url parameters destinationtype string string the device type the only currently accepted value is "player" destinationname string string the device serial number requests that require a json body need to have an outer data object for instance, if a route expects enabled bool bool then the full json body would look like { "data" { "enabled" false } } some requests also require resource specific properties in the url or request body, as detailed in the url parameters and request body sections below response message format the server will respond to a rest request with a success or error message, which may also contain resource specific properties, as detailed in the response body sections below returned json objects will have an outer object containing the methods below, where data is an error or a result object containing the returned values route string string the route the request was sent to method string string the request method data object object the returned data for example { "route" "/v1/info", "method" "get", "data" { "result" { "model" "ls424" } } }