API Reference

Learn how to access UNLOQ end points

POST /firewalls

Create a firewall rule

POST https://api.unloq.io/v1/firewalls
Headers:
   Authorization: Bearer {your application API Key}
Body parameters
  • type (enum) - 'ALLOW' or 'DENY' - Required.
  • ip_range (ip) - Optional.
  • country (string) - Optional. Country code, min 2 and max 5 characters.
  • region (string) - Optional. Region code, min 2 and max 5 characters.
  • is_logged (boolean) - Optional. Enable logging for failed attempts. Default is false
  • auth (JSON) - Optional. Settings from the mail provider in JSON format.
  • check_source (boolean) - Optional. Used with target type devices to check the IP of the device & browser. Default is false
  • entity_type (enum) - Optional. Available types are: 'ORGANIZATION', APPLICATION, MOBILE
Result format (200 OK)
{
  "type": "api.application.firewall.create",
  "result": {
    "id": "12345678",
    "type": "ALLOW",
    "is_logged": false,
    "entity_type": "APPLICATION",
    "entity_id": "1234",
    "account_id": "123",
    "country": {
      "code": "US",
      "name": "United States"
    },
    "created_at": "2016-11-17T13:31:08.000Z"
  }
}
      

Have a question? You can always send us an email at support@unloq.io, or contact us on chat.

For security related concerns, please visit our Security page.