Cozify OneAPI (1.0)
Deprecated. The Cozify OneAPI 1.0 is deprecated and is scheduled for sunset on 2026-12-31. Migrate to the Cozify Graph API (OneAPI 3.0): change state with
PUT /graph/commandand read state withPOST /graph/query. Every 1.0 endpoint below remains available until the sunset date, then will be removed.
This is OpenAPI specification for Cozify ONE platform.
If you are new to Cozify Services, there are some terms you might not be familiar with.
- resource - A manageable item that is available through Cozify. Hubs, devices and sites are examples of resources. Resource groups, subscriptions and tags are also examples of resources.
- resource group - A container that holds related resources for an Cozify solution. The resource group includes those resources that you want to manage as a group. You decide which resources belong in a resource group based on what makes the most sense for your organization.
- resource provider - A service that supplies Cozify resources. For example, a common resource provider is
Cozify.Sites, which supplies the structural management of site (aka. Buildings) resource.Cozify.Devicesis another common resource provider.
In addition to the REST endpoints described here, there is also SignalR hub for streaming device events and managing event subscriptions at /hub/v1 endpoint. See the following page for more information about SignalR streams and how to use them with a .NET/JavaScript/Java client: https://learn.microsoft.com/en-us/aspnet/core/signalr/streaming
- In order to be able to receive events from the hub, you must open the event stream, otherwise no events will be delivered regardless of subscriptions:
- The device events stream name is
DeviceEventsStream- The event type
DeviceEventis defined in this OpenApi document
- The event type
- For instructions how to use the server-to-client streaming sections in this article
- To manage event subscriptions there are the following methods:
DeviceEventsSubscribeAll(string deviceRegisterId)- Subscribe to events from all devices in the register
DeviceEventsUnsubscribeAll(string deviceRegisterId)- Unsubscribe from all device events from the register
DeviceEventsSubscribe(SubscribeDeviceEvents subscribeRequest)- Subscribe to events from specific devices in the register
- The
SubscribeDeviceEventstype is defined in this OpenApi document. - WARNING: If previously subscribed to all events from the same register, this does not change anything; You will still receive events from all devices
DeviceEventsUnsubscribe(UnsubscribeDeviceEvents unsubscribeRequest)- Unsubscribe from specific devices from the register
- The
UnsubscribeDeviceEventstype is defined in this OpenApi document. - WARNING: If previously subscribed to all events from the same register, this does not change anything; You will still receive events from all devices
- Use
DeviceEventsUnsubscribeAllinstead in this case
- Use