This API allows you to retrieve activity logs.
Endpoint
https://api.appshare.app/public/v1/activity
Method
GET
Query Parameters
Parameter | Required | Description |
---|---|---|
from |
Yes | The start date and time for the activity logs in ISO format. Example: 2023-09-13T00:00:00.000Z |
to |
Yes | The end date and time for the activity logs in ISO format. Example: 2023-09-13T23:59:59.999Z |
Request Headers
Header | Required | Description |
---|---|---|
Authorization |
Yes | <apiKey> You can get it from Appshare administration under Account. |
Response
Status Code | Response Body | Description |
---|---|---|
200 |
Array of activity logs | The activity logs for the specified date range. Each log contains the following fields:
|
400 |
Error message | The from and to parameters are required and must be in ISO format. Example: from and to must be in ISO format. example 2020-01-01T00:00:00.000Z |
403 |
Error message | The apiKey parameter is missing or not valid. Example: apiKey is missing or apiKey is not Valid. |
Example Request
curl -X GET 'https://api.appshare.app/public/v1/activity?from=2023-09-13T00:00:00.000Z&to=2023-09-13T23:59:59.999Z' \
-H 'Authorization: =<apiKey>'
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"_id": "6501d0d95482b33b66b14588",
"datetime": "2023-09-13T15:10:17.856Z",
"action": "login",
"module": "00000",
"moduleDescription": "Appshare",
"mobile": false,
"appshareURL": "https://10.120.102.13:3000",
"environment": "JDV920",
"apiVersion": "EnterpriseOne 9.2.6.4",
"user": "STELTIX"
}
]