API’s: 

  1. Showing list of added system logs

Description: This API is for showing list of system activity logs

Api Endpoint – /v3/api/activitylogs

Method – GET

Response:

{

“log_name”: “Contact”,

“description”: “Contact <a href=’https://meera.localhost/faveo/public/panel/user/32′>a@gmail.com</a> has been created”,

“event”: “Created”,

“causer_type”: “App\\User”,

“causer_id”: 1,

“created_at”: “2023-09-07T18:57:04.000000Z”,

“properties”: {

“attributes”: {

“email”: “a@gmail.com”,

“mobile”: “”,

“primary_dpt”: null,

“role”: “user”,

“first name”: “a”,

“last name”: “1”,

“phone number”: null,

“timezone”: “Asia/Kolkata”,

“created by”: “Meera Sharma <meera94191@gmail.com>”,

“user name”: “a@gmail.com”

}

},

“detailed_properties”: [

“Set Email To a@gmail.com”,

“Set Role To user”,

“Set First name To a”,

“Set Last name To 1”,

“Set Timezone To Asia/Kolkata”,

“Set Created by To Meera Sharma <meera94191@gmail.com>”,

“Set User name To a@gmail.com”

],

“performed_by”: “<a href=’https://meera.localhost/faveo/public/panel/agent/1′>Meera Sharma <meera94191@gmail.com></a>”,

“causer”: {

“id”: 1,

“user_name”: “meera”,

“role”: “Admin”,

“first_name”: “Meera”,

“last_name”: “Sharma”,

“email”: “meera94191@gmail.com”,

“full_name”: “Meera Sharma”,

“meta_name”: “Meera Sharma <meera94191@gmail.com>”,

“email_verified”: false,

“mobile_verified”: false

}

},

  1. Showing list of modules which are added in system logs

Description: This API is for showing list of modules in the  system activity logs

Api Endpoint – /v3/api/module/list

Method – GET

Response:

[

{

“id”: 0,

“name”: “Admin”,

“key”: “Admin”

},

{

“id”: 0,

“name”: “Agent”,

“key”: “Agent”

},

{

“id”: 0,

“name”: “Assets”,

“key”: “Assets”

},

{

“id”: 0,

“name”: “Contact”,

“key”: “Contact”

},

{

“id”: 0,

“name”: “Department”,

“key”: “Department”

},

{

“id”: 0,

“name”: “Problems”,

“key”: “Problems”

},

{

“id”: 0,

“name”: “Team”,

“key”: “Team”

}

],

  1. Showing list of events which are added in system logs

Description: This API is for showing list of events in the  system activity logs

Api Endpoint – /v3/api/event/list

Method – GET

Response:

[

{

“name”: “created”,

“key”: “created”

},

{

“name”: “updated”,

“key”: “updated”

},

{

“name”: “deleted”,

“key”: “deleted”

}

],

  1. Showing list of agents and admins who perform the actions

Description: This API is for showing list of agents and admins in the  system activity logs

Api Endpoint – /v3/api/performedby/list

Method – GET

Response:

[

{

“id”: 1,

“user_name”: “meera”,

“role”: “admin”,

“first_name”: “Meera”,

“last_name”: “Sharma”,

“email”: “meera94191@gmail.com”,

“full_name”: “Meera Sharma”,

“meta_name”: “Meera Sharma <meera94191@gmail.com>”,

“email_verified”: false,

“mobile_verified”: false

},

{

“id”: 31,

“user_name”: “TEST”,

“role”: “admin”,

“first_name”: “TEST”,

“last_name”: “”,

“email”: “test@gmail.coms”,

“full_name”: “TEST”,

“meta_name”: “TEST <test@gmail.coms>”,

“email_verified”: false,

“mobile_verified”: false

}

],

  1. Showing the export logs api

Description: This API is used for creating an export report for the system logs

Api Endpoint – /v3/api/export/logs

Method – GET

Response:

{

“success”: true,

“message”: “System Activity logs export is in progress. You will be notified once export is complete”

}

………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………