Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Please note: For the Vivi Emergency API to operate, your existing emergency management system needs to be able to output a web-based trigger (https HTTPS GET methodor PUT methods). Please refer to the manufacturer’s instructions of your system for more information on if this is available.

...

Info

<api_key>: Organisation API key – Required
<emergency_type_id>: ID of emergency type to trigger – Required
<location_id>: ID of location to trigger emergency at - Optional, trigger organisation wide emergency if not provided

 

Cancelling an Emergency

Your emergency management system needs to output the following URL to cancel an emergency:

...

Info

<api_key>: Organisation API key – Required
<emergency_type_id>: ID of emergency type to cancel – Required
<location_id>: ID of location to cancel emergency at - Optional, cancel all emergencies currently active of the emergency type if not provided

Checking Active Emergency Types

Your emergency management system needs to read from the following URL to check active emergency types:

https://api.vivi.io/api/public/v1/emergencies/status?key=<api_key>&location=<location_id>

Note

This is only available via a GET request, not PUT

Info

<api_key>: Organisation API key – Required
<location_id>: ID of location to check - Required

Info

Example responses:

Code Block
{
  "emergency_types": ["0c17f5c8-77e2-4a79-a03e-b4610fc610fc"]
}
Code Block
{
  "emergency_types": []
}

Tracking Emergencies

The Emergencies page in Vivi Central can be used to view and cancel currently active emergencies and stores a full history of previously run emergencies. This page can be accessed at: https://admin.vivi.io/emergencies

...