
Refresh_token=refreshtokenfromthefirstrequestīesides Basic authentication, Hue Remote API supports Digest method.

Find below the request details using Basic Authentication The access token is valid only for 7 days, to use it beyond 7 days there must be a new access token generated using the Refresh token.
#Hue party windows how to
Let us now see, how to refresh the access token. The Access token is approximately valid for 7 days and the refresh token for 100 days.
#Hue party windows password
Username should be ClientId of the App and Password should be ClientSecretįind below screenshot from Postman with the above HTTP POST request, make a note of the access token and refresh token from the response section of the request.
#Hue party windows code
Replace the code value with yours generated from the authorization grant request.Īuthorization Type: Basic Auth. URL: bsysFQ65 &grant_type=authorization_code To generate an access token using Basic Authentication, make the following HTTP request using Postman or any other tool To Deactivate an existing App or see all the list of existing apps, login to. Make a note of the code which will be used to generate access token. Once the app is trusted, there will be an authorization code automatically generated on the browser address bar as shown below DeviceName: The name of the app accessing the remote api.Īccess the URL in a browser, you will be prompted to accept or decline the permission grant to the created app.DeviceId: The device identifier must be a unique identifier in a string format for the app or device accessing the Hue Remote API.Per the above screenshot, it is myremotehueapp AppId: From the app registration, the name of the app.ClientSecret: From the app registration.To generate an access token, the first step is to generate an authorization code. To access a Philips Hue API endpoint to turn on/off or change colours of light, an access token is required. The next step is to generate the access token. Find below screenshot of the newly registered Remote Hue API appĬopy the ClientId & ClientSecret which will be required to generate access token for controlling the Hue lights.


For the callback URL I have provided the Postman browser call back url facilitating OAuth 2.0 token generation from Postman.

Click on the link Add new Remote Hue API appĪfter entering the App name, Callback URL and the description, click the Submit button. Add Remote Hue API App:Īfter logging in to the Philips Hue Developers Portal, access the URL to add the App. The first step is to create a Remote Hue API app which provides you with OAuth credentials to remote control the Hue lights.
