Skip to main content

API

This page documents the HTTP endpoints for FAR.

How to Use

The endpoints documented below are made available directly from the resource. To access the API, you first need to know the IP address or domain, and port of the server. With this information, you can append /fire-alarm-reborn/ and then the endpoint name.

For example, if your domain is my-server.com, the port is 30120, and you wanted the alarm-systems endpoint, you would access http://my-server.com:30120/fire-alarm-reborn/alarm-systems/all.

Every request requires an Authorization header containing the ic_far_access_token. If ic_far_access_token is not set, then a 404 - Not Found will be returned, and an error will be logged to the console. If ic_far_access_token does not match the token provided in the Authorization header, then a 401 - Unauthorized will be returned.

If ic_far_whitelisted_ips contains any valid IP addresses, then any requests sent from IP address not contained within ic_far_whitelisted_ips will be rejected with 401 - Unauthorized, and an error will be logged to the console.

All valid HTTP requests will be logged to the console.

Alarm Systems

Get Alarm System by Status

Use this endpoint to get an array of AlarmSystems by AlarmSystemStatus.

Endpoint

GET alarm-systems/{status}

Parameters

  • status - int|'all'|'active'
    • The status to return.

Return Value

Get Alarm System by ID

Use this endpoint to get a specific AlarmSystem by ID.

Endpoint

GET alarm-system/{id}

Parameters

  • id - int
    • The ID of the Alarm System

Return Value