For Developers#

Sleep as Android is built to be open and extensible. We provide a variety of APIs and documentation for power users and third-party developers to automate sleep tasks, integrate new hardware, or access sleep data.


Automation & Integration#

Use standard Android mechanisms to control the app or react to sleep events.

  • Intent API: Broadcast actions and receive real-time sleep events (e.g., tracking started, REM phase detected).
  • Content Provider API: Read sleep data or manage alarms directly from your own app.

Hardware & Custom Tasks#

Extend the app’s functionality with your own hardware or puzzles.

  • Wearable API: Integrate custom tracking devices or smartwatches.
  • CAPTCHA API: Create your own custom wake-up tasks and puzzles.

Data & Cloud#

Understand our data formats or integrate with our cloud service.