Description

The issue-wise Action log API shares the issue related action history with following details such as Action , Action owner, timestamp, data updates.  It enables admins and customer service leaders to analyze issue journeys, manage escalations, and audit agent performance, offering a precise view of agent actions and issue lifecycles.

Endpoint:

https://api.helpshift.com/v2/<domain>/issues/<issue-id>/_audit_logs

Method : Get

Path Variables:

VariableDescriptionExample
<domain>Domain nameamazon
<issue-id>Publish ID of the issue for which we want to fetch the audit logs3423

For example, the URL should look something like:

https://api.helpshift.com/v2/amazon/issues/3423/_audit_logs

Request Params: 

ParamDescriptionRequired?Example
sort_orderA string value. This parameter specifies the sorting order by action_taken_at timestamp. Valid values are “asc” and “desc” (ascending and descending). 
If not specified, the default is descending.
No“asc“
actionsJson array of strings. This parameter specifies the actions that took place on the issue. If this param is passed, the response would contain the logs of only those actions. By default, it would include logs of all actions.
List of possible actions mentioned here.
Nocreate-issue,add-tags
sinceUnix timestamp in milliseconds. This parameter specifies the time at which the action took place, since which, audit logs should be retrieved for the issue.No1754768308863
untilUnix timestamp in milliseconds. This parameter specifies the time at which the action took place, until which, audit logs should be retrieved for the issue.No1754868308000
pageAn integer value indicating the page number being requested. To be used for pagination.No3
page_sizeThe maximum number of results to return per page. Value can be between 1 and 500.
If nothing is passed or something out of the above range is passed, the default which is 200 would be used as the page_size.
No50

Response:

FieldDescription
action_taken_atTimestamp of when the action took place
actionWhat action took place. Ex: create-issue, add-tags, resolve etc.
actorIdentifies who performed the action. This is represented as a JSON object containing the actor’s name, email, and roles. If the actor is an end-user, a uid field may also be included (when available).
Note: For end-users, the name, email, or uid fields might be absent depending on the available data.
from_dataThe state of object before the action took place
to_dataThe state of object after the action took place

Sample Response: