IRIS+™ Rest API

11min

The IRIS+™ API has been created to provide secure and easy access to your account data to support custom use cases and integration needs. It is built using RESTFUL principles.

The API is normally disabled. Please reach out to our support or sales organization to enable access to the API for your account and installation.

The current version is version 2.

Endpoint and documentation

The main endpoint for the API is https://api.irisity.io/v2. This is also where you find the detailed API documentation.

Getting started

To get access to the functionality of IRIS+ API you will need an API key and an Access token.

API key

The system administrator needs to create an API key with the relevant permission.

For Iristy-hosted cloud accounts, please contact Irisity support to get an API key:

Customer Support: [email protected]

  1. Log in as system administrator
  2. Go to the Console tab and then choose API Keys
Document image


3. Click + Add

4. Set Key name

Document image


5. Click "+ Add"

6. Select the API key in the list and add the below permissions, depending on needs.

To maximize security, Make sure to only grant access to the functionality required

  • Accounts -> Read
  • Events -> Read, Update
  • Folders -> Read
  • Rules -> Read
  • Cameras -> Read, Update
  • Click "Save"
  • Deliver the API key securely to the intended customer.
Example API key permissions for a fully-featured custom integration
Example API key permissions for a fully-featured custom integration


Access token

The administrator of the relevant account needs to create a service account to be able to generate an access token for the API calls.

Create a service account

  1. Log in as an account administrator
  2. Go to Settings and then the User tab
  3. Click "+ Add"
Document image


4. Choose "Create service account" and pick a name

5. (Optional) Add a description

6. Click "Create service account"

Document image


Generate an access token

  1. Select the service account
  2. Click "Get token"
  3. (Recommended) Check the "Token expiration" and choose the expiration date. We always recommend setting a token expiration to enforce rotating keys periodically.
  4. Click "Get token"
  5. Copy the token and store it securely for later use
Document image


Using the API

To start using the external API, you need to set two custom headers, X-API-KEY and X-ACCESS-TOKEN:

  1. Add the API key generated above as the value for the X-API-KEY header
  2. Add the Access token generated above as the value for the X-ACCESS-TOKEN header.

Your first request

To verify your API access you can use curl to get a list of all sensors (cameras) in the account. Curl is built into most modern operating systems. For more details, please see https://github.com/curl/curl.

Curl request

curl https://api.irisity.io/v2/sensors -H "X-API-KEY:{API-KEY}" -H "X-ACCESS-TOKEN:{ACCESS-TOKEN}"

Full documentation

For details about the available operations, options, and data types, please refer to the API documentation at https://api.irisity.io/v2.