Custom webhooks

1. What it does

Allows you to POST events from Sleep as Android to a custom URL endpoint.

2. Where to find it

Settings → Services → Automation → Webhooks

3. Guide

3.1. Setup

  1. Enable the Webhooks option

  2. Tap the URL option and fill in the URL of your server/application, including http:// or https:// .

  3. Tap ok. It’s done!

3.2. Format of the POST request

On every event, Sleep as Android will POST a request with a JSON body in the following format:

    "event" : "event_name",
    "value1" : "",
    "value2" : "",
    "value3" : ""

The event field will have a value of one of the event names. The valueX fields will be only present if not empty.