Endpoint
Description
This endpoint allows you to retrieve a filtered list of activity logs. It supports pagination and time range filtering to customize the results.Request
Headers
- Content-Type: application/json
- Authorization: Bearer {access_token}
Body
The request body should be a JSON object with the following structure:Fields
nextToken(string, optional): Token for retrieving the next page of results.start(number, optional): Start timestamp for the activity log search range (in milliseconds since epoch).limit(number, optional): Maximum number of results to return.end(number, optional): End timestamp for the activity log search range (in milliseconds since epoch).
Response
Success Response
- Status Code: 200 OK
- Content-Type: application/json
Fields
data(object): Contains the response data.activities(array): List of activity log objects.id(string): Unique identifier for the activity log entry.timestamp(number): Timestamp of when the activity occurred.activityType(string): Type of activity logged.details(object): Additional details about the activity.
nextToken(string): Token for retrieving the next page of results.
message(string): A message indicating the result of the operation.
Example
Request
Success Response
Notes
- This API requires authentication. Make sure to include the necessary authentication headers when making the request.
- The
nextTokenin the response can be used to retrieve the next page of results by including it in thenextTokenfield of the next request. - Timestamps should be provided in milliseconds since the Unix epoch.
- If
startandendare not provided, the API may return the most recent activity logs up to the specifiedlimit. - The
limitparameter can be used to control the number of results returned per request. If not specified, a default limit may be applied. - The specific fields in the
detailsobject may vary depending on theactivityType. - The actual response structure may vary.