Introduction

Control your Orion device and read your sleep data from your own code.

The Orion API is an HTTPS and JSON interface to your Orion device. With a personal API key you can do from a script what you do in the Orion app.

What you can do

AreaWhat you can do
DevicesList your devices, read a device's live state, set the temperature of one zone or several, start or cancel thermal relief, and set LED brightness and quiet mode. See Devices and zones.
Sleep configurationSee whether you are away, set yourself or someone else away, put a person on a zone, swap sides with your partner, and split a device's zones for a second sleeper. See Sleep configuration.
SchedulesRead and change the weekly schedule, change one night, and undo that change. See Schedules.
InsightsRead your sleep scores, metrics and nights, and rate nights good or bad. See Insights and sleep sessions.
Orion IntelligenceSee what Orion Intelligence changed in your schedule and why, then undo, accept or reject it. See Orion Intelligence.
Timeline eventsSet one zone change at a future time, list pending events and cancel them. See Timeline events.

A zone is one independently controlled side of the device. Every temperature is in degrees Celsius.

Base URL

Every request goes to:

https://api.orionsleep.com

All paths start with /v1. Requests and responses are JSON.

Your first request

Make a key on the API keys page, then list your devices:

curl https://api.orionsleep.com/v1/devices \
  -H "Authorization: Bearer $ORION_API_KEY"
Shell

The answer holds each device's id. Every other device request names a device by that id, as device_id.

Next steps