Endpoints for managing and recalling scenes and controlling groups of devices at once through the Vendor API. Use these for whole-room or whole-area control instead of commanding each device individually.
See Authentication for authentication, and the Endpoint Reference for the full endpoint list.
Base & Authentication
| Item | Value |
|---|---|
| Base URL | http://<gateway-ip>:5000/api/vendor/v2 |
| Auth header | Authorization: Bearer <apiKey> |
The unversioned /api/vendor path still works as a legacy alias.
Scene types
Two kinds of scene appear in the API, distinguished by the type field:
type | Source | What you can do |
|---|---|---|
manual | C-Bridge scenes you create | Full read/create/update/delete, plus activate |
casambi_scene | Imported from the Casambi network | Read and activate only — create/update/delete is rejected |
List scenes
GET /scenes — operation: read
{
"success": true,
"data": [
{ "id": "da7a7772-...", "name": "Daytime", "type": "casambi_scene", "space": null }
]
}
Create / update / delete a scene
C-Bridge (type: manual) scenes support full authoring. These calls need the control operation and the write:scenes scope.
- POST
/scenes— create:{ "name": "Evening", "devices": [ { "deviceId": "...", "power": true, "brightness": 40 } ] } - PUT
/scenes/:id— update name or member states - DELETE
/scenes/:id— remove the scene
A scene name is required (≤100 characters) and a scene may hold up to 200 devices. Attempting to create, modify, or delete a casambi_scene returns an error — those are managed by the Casambi network.
Activate a scene
POST /scenes/:id/activate — operation: control, scope: control:scenes
Send an empty body {}.
{
"success": true,
"data": { "sceneId": "da7a7772-...", "sceneName": "Daytime", "message": "Scene activated successfully" }
}
An unknown or unexposed scene id returns 404 with code: "SCENE_NOT_FOUND".
List groups
GET /groups — operation: read
{
"success": true,
"data": {
"count": 3,
"groups": [ { "id": "d426887a-...", "name": "Cafe", "type": "casambi_group", "deviceCount": 4 } ]
}
}
Control a group
POST /groups/:id/control — operation: control
Accepts the same body as device control (power/on, level/brightness, colorTemp, r+g+b), applied to every member of the group. The response reports how many devices accepted the command:
{
"success": true,
"data": { "groupId": "d426887a-...", "groupName": "Cafe", "deviceCount": 4, "succeeded": 4, "failed": 0 }
}
Areas & spaces
To control a whole area (room, floor, or zone) recursively, use the spaces endpoints:
- GET
/spaces(canonical) or/areas(alias) — operation:monitor— list areas - POST
/areas/:id/control— operation:control— apply a control body to every device in the area and its sub-areas