events

Api reference content
get/api/events/active

Retrives all active events. Results can be paged with query parameters start and limit.

Parameters

ParameterPlaceRequiredDescription
startqueryrequiredFirst item in page
limitqueryrequiredNumber of items in page

Responses

StatusDescription
200
application/json
{
  "_links": {
    "next": "string",
    "base": "string",
    "self": "string"
  },
  "start": "double",
  "limit": "double",
  "results": [
    {
      "id": "string",
      "name": "string",
      "file_id": "string",
      "trigger": {
        "mac": "string",
        "sensor": "integer",
        "type": "level | pulse_audio | pulse_time",
        "duration": "double"
      },
      "action": [
        {
          "mac": "string",
          "audio": "boolean",
          "relays": "[double]"
        }
      ],
      "special_volume": "double"
    }
  ]
}
400
application/json
{
  "errors": "[string]"
}