{
	"info": {
		"name": "Events API - OneLogin Version /1",
		"_postman_id": "51050b1f-2d9a-7b95-26d8-8bce75cd597a",
		"description": "",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Get Events",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "bearer:{{access_token}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "https://api.{{us_or_eu}}.onelogin.com/api/1/events?event_type_id=&client_id=&directory_id=&created_at=&id=&resolution=&since=&until=&user_id=",
					"protocol": "https",
					"host": [
						"api",
						"{{us_or_eu}}",
						"onelogin",
						"com"
					],
					"path": [
						"api",
						"1",
						"events"
					],
					"query": [
						{
							"key": "event_type_id",
							"value": "",
							"equals": true
						},
						{
							"key": "client_id",
							"value": "",
							"equals": false
						},
						{
							"key": "directory_id",
							"value": "",
							"equals": false
						},
						{
							"key": "created_at",
							"value": "",
							"equals": false
						},
						{
							"key": "id",
							"value": "",
							"equals": false
						},
						{
							"key": "resolution",
							"value": "",
							"equals": false
						},
						{
							"key": "since",
							"value": "",
							"equals": false
						},
						{
							"key": "until",
							"value": "",
							"equals": false
						},
						{
							"key": "user_id",
							"value": "",
							"equals": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Event by ID",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "bearer:{{access_token}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "https://api.{{us_or_eu}}.onelogin.com/api/1/events/{{event_id}}",
					"protocol": "https",
					"host": [
						"api",
						"{{us_or_eu}}",
						"onelogin",
						"com"
					],
					"path": [
						"api",
						"1",
						"events",
						"{{event_id}}"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Event Types",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "bearer:{{access_token}}"
					}
				],
				"body": {},
				"url": {
					"raw": "https://api.{{us_or_eu}}.onelogin.com/api/1/events/types",
					"protocol": "https",
					"host": [
						"api",
						"{{us_or_eu}}",
						"onelogin",
						"com"
					],
					"path": [
						"api",
						"1",
						"events",
						"types"
					]
				}
			},
			"response": []
		},
		{
			"name": "Create Event",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "bearer:{{access_token}}"
					},
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"event_type_id\": <event_type_id>,\n    \"account_id\": <account_id>\n}"
				},
				"url": {
					"raw": "https://api.us.onelogin.com/api/1/events",
					"protocol": "https",
					"host": [
						"api",
						"us",
						"onelogin",
						"com"
					],
					"path": [
						"api",
						"1",
						"events"
					]
				}
			},
			"response": []
		}
	]
}