Skip to main content

Philips Hue API Endpoints

The Philips Hue Remote API endpoints the iPaaS.com Philips Hue integration calls to find and command your lights, rooms, zones and scenes, and to authorize and renew the connection.

This article lists the Philips Hue API endpoints the iPaaS.com Philips Hue integration calls, grouped by the Hue resource they work on. Use it as a reference for firewall allow-listing, for troubleshooting, and for checking whether the integration is affected when Philips Hue announces an API change.

API Endpoints Intro

The integration sends light commands FROM iPaaS.com to Philips Hue. It calls the Philips Hue Remote API, a REST API that returns JSON, and reaches the Hue Bridge linked to the Hue account the subscription authenticated with through the Philips Hue cloud. Lights, rooms, zones and scenes are read and commanded as the Bridge's CLIP version 2 resources. Nothing is sent to the Bridge over your local network.

Every light command uses this base URL:

https://api.meethue.com/route/clip/v2

Throughout this article, [Base URL] stands for that value. For example, listing the lights calls [Base URL]/resource/light. iPaaS.com uses this one base URL for every subscription. The authorization endpoints use the same host, https://api.meethue.com, with the paths shown under Authorization Endpoint.

Each call to the base URL carries two values that iPaaS.com stores when the subscription is authenticated: the Hue access token and the Bridge application key. You do not enter either one (see Philips Hue Connections and Settings).

A Philips Hue command returns no record id, so the integration reads nothing back after a command. The external id it saves on the iPaaS.com record is described in the Philips Hue Light Command From iPaaS.com Mapping Documentation.

Table of Contents

  • Light Endpoints

  • Room and Zone Endpoints

  • Scene Endpoints

  • Bridge Endpoints

  • Rate Limits and Concurrency

  • Authorization Endpoint

Light Endpoints

List the Lights (GET)

[Base URL]/resource/light

Lists every light on the Bridge with its name and what it can do: color, white tones and their range, signals, effects and timed effects. Read once per transfer, the first time the command needs it, to find a Target named after a light, to find the lights in a room, zone or All, and to list the available names when a Target matches nothing.

Update a Light (PUT)

[Base URL]/resource/light/{id}

Sends a command to one light. Used for:

  • Command Signal: each light of the target in turn, with the signal, its length (DurationSeconds) and the colors. A light that has no color, or does not offer the colored signal, blinks instead.

  • Command Effect: each light of the target that supports the effect, or that does not report which effects it has, in turn. An effect other than a sunrise or sunset also turns the light on, and its speed, color and white tone are sent when they are mapped and the light accepts them. A sunrise or sunset is sent with its length (DurationSeconds). The effect no_effect stops a running effect.

  • Command On, Off and Breathe: when the target is a single light, or a room, zone or All that has no grouped light, each of its lights in turn. On carries the mapped brightness and transition time, and the mapped color and white tone (kept inside the light's own range) when the light supports them; Off carries the transition time.

Room and Zone Endpoints

List the Rooms (GET)

[Base URL]/resource/room

Lists the rooms with their names, the devices in each room and the room's grouped light. Read once per transfer when a Target is not found among the lights, or when TargetType is a room, and when Command Scene names a room in Target.

List the Zones (GET)

[Base URL]/resource/zone

Lists the zones with their names, the lights in each zone and the zone's grouped light. Read once per transfer when a Target is not found among the lights or rooms, or when TargetType is a zone, and when Command Scene names a zone in Target.

Update a Grouped Light (PUT)

[Base URL]/resource/grouped_light/{id}

Sends Command On, Off or Breathe to every light of a room, zone or All in one call. On carries the mapped brightness, color, white tone and transition time; Off carries the transition time. Signal and Effect are not sent this way: they go to each light with Update a Light.

Scene Endpoints

List the Scenes (GET)

[Base URL]/resource/scene

Lists the scenes with their names and the room or zone each belongs to. Read when Command is Scene, to find the scene named in Scene.

Recall a Scene (PUT)

[Base URL]/resource/scene/{id}

Plays the scene. When Target names several rooms or zones, each one's scene of that name is recalled, one call each. Sends the scene mode (SceneMode, active when blank) and, when they are mapped, the brightness and the transition time.

Bridge Endpoints

Get the Bridge Home (GET)

[Base URL]/resource/bridge_home

Reads the Bridge's home, whose grouped light controls every light. Used when Target is All (or All Lights).

Get the Bridge (GET)

[Base URL]/resource/bridge

Reads the Bridge linked to the Hue account. Used when iPaaS.com checks the subscription's connection; the check fails when Philips Hue reports no Bridge on the account.

Rate Limits and Concurrency

  • When Philips Hue limits requests, iPaaS.com holds the transfer and sends it again after the time Philips Hue gives, or after a few seconds when it gives none. No action is needed; the light reacts when the transfer runs again.

  • Each transfer reads each kind of resource (lights, rooms, zones, scenes) at most once, then sends one call per light or group it commands. Command Signal or Effect on a room of ten lights is ten calls.

  • How fast and how many transfers iPaaS.com sends at once is set by the subscription's throttle and concurrency settings; see Philips Hue Connections and Settings. When many records can match a collection's filter at once, keep the filter narrow.

Authorization Endpoint

These endpoints are called on the https://api.meethue.com host when you click Authenticate (the lock icon) on the subscription, and when the integration renews the connection. The Philips Hue application credentials they use are set by iPaaS.com; subscribers do not create a Hue developer application.

Sign In and Allow Access (GET)

https://api.meethue.com/v2/oauth2/authorize?client_id={Client Id}&response_type=code&state={state}

The Philips Hue sign-in and consent page that Authenticate opens in your browser. After you sign in and allow access, Philips Hue returns you to iPaaS.com with a one-time authorization code.

Get an Access Token (POST)

https://api.meethue.com/v2/oauth2/token

Exchanges the one-time authorization code (grant type authorization_code) for an access token and a refresh token.

Renew the Access Token (POST)

https://api.meethue.com/v2/oauth2/token

Renews the access token (grant type refresh_token) about an hour before it expires, or when Philips Hue refuses a call with an expired token, after which the call is sent once more. When Philips Hue returns a new refresh token, iPaaS.com stores it. When the renewal is refused, authenticate the subscription again (see Philips Hue Error Messages).

Press the Bridge Link Button (PUT)

https://api.meethue.com/route/api/0/config

Presses the link button of the Bridge linked to the Hue account remotely, so that iPaaS.com can register on it. Called each time you click Authenticate, right after the access token is obtained. The Bridge must be online.

Register iPaaS.com on the Bridge (POST)

https://api.meethue.com/route/api

Registers iPaaS.com as an application on the Bridge and returns the Bridge application key that every command carries. Called each time you click Authenticate, right after the link button is pressed.

Related Documents

External References

  • Philips Hue developer portal: the Hue API (CLIP version 2) and Remote API reference. Philips Hue asks you to sign in with a Hue developer account to read it.

Did this answer your question?