API Reference

Learn how to access UNLOQ end points

GET /reports/authorization

List all authorization reports

GET https://api.unloq.io/v1/reports/authorization
Headers:
   Authorization: Bearer {your application API Key}
   Content-Type: application/json
Body parameters
  • group (string) - Optional. Filter reports for specified group.
  • ip (ip) - Optional. Filter reports for specified ip.
  • account (string) - Optional. Filter reports for specified account.
  • email (string) - Optional. Filter reports for specified e-mail address.
  • country (string) - Optional. Filter reports for specified country-code.
  • region (string) - Optional. Filter reports for specified reqion.
  • device_type (ENUM) - Optional. Available options: 'ANDROID' or 'IOS'.
  • device_version (string) - Optional. Filter reports for specified device version.
  • status (string) - Optional. Filter reports for specified status.
  • start_date (integer) - Optional. Filter reports for specified start date.
  • end_date (integer) - Optional. Filter reports for specified end date.
  • limit (integer) - Optional. Min 10, max 100. Default is 10.
  • page (integer) - Optional. Min 1, default 1.
  • action (string) - Optional. Filter reports for specified action.
  • reference (string) - Optional. Filter reports for specified reference.
Result format (200 OK)
{
  "type": "api.application.reports.authorization",
  "meta": {
    "total_count": 19,
    "page_count": 2,
    "current_count": 9,
    "current_page": 2
  },
  "result": [
    {
      "id": "12345",
      "type": "AUTHORIZATION",
      "method": "UNLOQ",
      "status": "DENIED",
      "organization_id": "123",
      "application_id": "12",
      "account_id": "8",
      "profile_id": "8",
      "ip_source": null,
      "ip_device": "2.2.2.2",
      "created_at": "2016-11-11T11:50:12.000Z",
      "country": {
        "code": "RO",
        "name": "Romania"
      },
      "region": {
        "code": "13",
        "name": "Cluj"
      },
      "authorization": {
        "action": "test",
        "variables": {
          "name": "Mikhael",
          "here": "Timbaland"
        },
        "reference": "qeweqweqwqw"
      },
      "device": {
        "id": "123456789",
        "type": "IOS"
      },
      "user": {
        "id": 8,
        "email": "john@doe.com",
        "account": {
          "id": 8,
          "first_name": "John",
          "last_name": "Doe",
          "image": "https://image.jpg",
          "is_active": true
        }
      }
    }
  ]
}
      

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.