Appshare Public Api

⌘K
  1. Home
  2. Docs
  3. Appshare Public Api
  4. Activity

Activity

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:

  • _id: The unique identifier for the log entry.
  • datetime: The date and time the activity occurred in ISO format.
  • action: The action that was performed.
  • module: The module where the action was performed.
  • moduleDescription: A description of the module.
  • mobile: Whether the action was performed on a mobile device.
  • appshareURL: The URL of the Appshare application.
  • environment: The environment where the action was performed.
  • apiVersion: The version of the API.
  • user: The user who performed the action.
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" } ]

How can we help?