Bitium

Languages

Admin - Events

Event listing for organization

The event and activity history for a specified organization, with an optional filter.

Request Parameters

Name Type Required Description
filters[type] string No Type of event
filters[time_from] string No Start time
filters[time_to] string No End time
filters[ip_from] string No Starting IP address
filters[ip_to] string No Ending IP address
filters[group_id] string No Group ID
filters[contact_id] string No Actor ID
page integer No Page of results to fetch.
Default value: 1
per_page integer No Number of results to return per page.

 

Endpoint Copy

GET https://www.bitium.com/api/v2/organizations/{organization_id}/events

Example Request

curl -H "Authorization: token {token}" \
-H "X-Device-Id: {unique_id}" \
https://www.bitium.com/api/v2/organizations/{organization_id}/events?filters[type]=1&filters[time_from]=1&filters[time_to]=1&filters[ip_from]=1&filters[ip_to]=1&filters[group_id]=1&filters[contact_id]=1

Example Response

[
  {
    "description": {
      "en": "Liora Simozar removed admin privileges from Natalie Portman (natalie@bitium.com)"
    }, 
    "created_at": "2015-08-19T08:47:23.565-07:00", 
    "actor": {
      "name": "Liora Simozar", 
      "type": "contact", 
      "id": 31213, 
      "@context": "http://json-ld.org/contexts/person.jsonld", 
      "@id": "http://www.bitium.com/api/v2/organizations/3775/contacts/31213.json", 
      "email": "lns@bitium.com"
    }, 
    "operation": "delete", 
    "type": "disable_contact_admin", 
    "id": 3183496, 
    "subject": {
      "name": "Natalie Portman", 
      "type": "contact", 
      "id": 31215, 
      "@context": "http://json-ld.org/contexts/person.jsonld", 
      "@id": "http://www.bitium.com/api/v2/organizations/3775/contacts/31215.json", 
      "email": "natalie@bitium.com"
    }
  }, 
  {
    "description": {
      "en": "Liora Simozar updated an access control list (Secondary Admins)”
    }, 
    "created_at": "2015-08-19T08:46:50.671-07:00", 
    "actor": {
      "name": "Liora Simozar", 
      "type": "contact", 
      "id": 31213, 
      "@context": "http://json-ld.org/contexts/person.jsonld", 
      "@id": "http://www.bitium.com/api/v2/organizations/3775/contacts/31213.json", 
      "email": "lns@bitium.com"
    }, 
    "operation": "update", 
    "type": "update_policy", 
    "id": 3183495, 
    "subject": null
  }, 
  {
    "description": {
      "en": "Liora Simozar promoted Natalie Portman (natalie@bitium.com) to admin"
    }, 
    "created_at": "2015-08-19T08:46:25.503-07:00", 
    "actor": {
      "name": "Liora Simozar", 
      "type": "contact", 
      "id": 31213, 
      "@context": "http://json-ld.org/contexts/person.jsonld", 
      "@id": "http://www.bitium.com/api/v2/organizations/3775/contacts/31213.json", 
      "email": "lns@bitium.com"
    }, 
    "operation": "enable", 
    "type": "enable_contact_admin", 
    "id": 3183494, 
    "subject": {
      "name": "Natalie Portman", 
      "type": "contact", 
      "id": 31215, 
      "@context": "http://json-ld.org/contexts/person.jsonld", 
      "@id": "http://www.bitium.com/api/v2/organizations/3775/contacts/31215.json", 
      "email": "natalie@bitium.com"
    }
  }]