List user activities
Retrieves user activity log
Request | |
---|---|
Method | GET |
Resource | https://[customer].asp.virtual-call-center.eu/v2/security_log |
Options | from_date, to_date |
Body | N/A |
Response | |
Body | User activities, tab-separated, in .json format. |
Request
Resource parameters
Options
Name | Type | Mandatory | Comment |
---|---|---|---|
customer | string | yes | Your account name. (subdomain) |
from_date | string | no | The date from which user activities are returned. Mandatory if to_date is provided. Format: Y-m-d H:i:s. (e.g., from_date=2024-04-23 23:00:02) |
to_date | string | no | The date until user activities are returned. Mandatory if from_date is provided. Format: Y-m-d H:i:s. (e.g., from_date=2024-04-23 23:00:02) |
Response
Response object
Name | Type | Comment |
---|---|---|
id | integer | The ID of the user activity. |
timestamp | string | The timestamp of the user activity |
timestamp_utc | string | The timestamp of the user activity in UTC time format. |
module | string | The module that was affected by the user activity. |
method | string | The method performed by the user. |
userid | integer | The ID of the user |
remote_ip | string | The IP of the user performing the activity. |
projectid | integer | The ID of the project where the user activity was performed. |
numberid | integer | The ID of the record on which the user activity was performed. |
comment | string | The comment to that action. |
username | string | The name of the user who performed the activity. |
Example
List the user activities
Response body
{
"response":[
{
"id":4035,
"timestamp":"2024-04-24 01:00:06",
"module":"export",
"method":"database",
"userid":-3,
"remote_ip":"192.168.120.20",
"projectid":3,
"numberid":null,
"comment":null,
"username":null,
"timestamp_utc":"2024-04-23 23:00:06"
},
{
"id":4034,
"timestamp":"2024-04-24 01:00:05",
"module":"export",
"method":"database",
"userid":-3,
"remote_ip":"192.168.120.20",
"projectid":2,
"numberid":null,
"comment":null,
"username":null,
"timestamp_utc":"2024-04-23 23:00:05"
},
{
"id":4033,
"timestamp":"2024-04-24 01:00:04",
"module":"export",
"method":"database",
"userid":-3,
"remote_ip":"192.168.120.20",
"projectid":1,
"numberid":null,
"comment":null,
"username":null,
"timestamp_utc":"2024-04-23 23:00:04"
},
{
"id":4032,
"timestamp":"2024-04-24 01:00:03",
"module":"export",
"method":"database",
"userid":-3,
"remote_ip":"192.168.120.20",
"projectid":3,
"numberid":null,
"comment":null,
"username":null,
"timestamp_utc":"2024-04-23 23:00:03"
},
{
"id":4031,
"timestamp":"2024-04-24 01:00:03",
"module":"export",
"method":"database",
"userid":-3,
"remote_ip":"192.168.120.20",
"projectid":2,
"numberid":null,
"comment":null,
"username":null,
"timestamp_utc":"2024-04-23 23:00:03"
},
{
"id":4030,
"timestamp":"2024-04-24 01:00:02",
"module":"export",
"method":"database",
"userid":-3,
"remote_ip":"192.168.120.20",
"projectid":1,
"numberid":null,
"comment":null,
"username":null,
"timestamp_utc":"2024-04-23 23:00:02"
}
],
"errors":[
]
}
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.