Raw data exports are created asynchronously. One first needs to create an export via POST Export Report, then fetch it using GETGet Report with the supplied reportId until it is generated. For sucessful requests (HTTP 200) the ReportingExportResult object is returned with reportId.
Create export.
post
Authorizations
AuthorizationstringRequired
Token should be in format "Bearer {access_token}"
Header parameters
Authorizationstring · nullableOptional
Authorization header
X-Impersonate-Userstring · nullableOptional
Impersonation header
Body
Export Request resource
timezonestring · nullableOptional
The timezone used to calculate and export the data. Start time and end time
startinteger · int64Required
Start time of the data to include in the export (total seconds after epoch)
endinteger · int64Required
End time of the data to include in the export (total seconds after epoch)
resultFormatone ofOptional
Export format
string · enumOptional
Possible Result Format Types
Possible values:
tagIdsstring[] · nullableOptional
List of tag ids
teamIdsstring[] · nullableOptional
List of team ids
teammateIdsstring[] · nullableOptional
List of teammate ids
customerIdsstring[] · nullableOptional
List of customer ids
Responses
200
export
application/json
Export Result resource
idstringRequired
Export id
statusone ofOptional
Export status
string · enumOptional
Possible Status Types
Possible values:
urlstring · nullableOptional
Url of export result - with authorization (signature) and expire date
400
Bad request. Check fields message and error code from response body for additional information.
application/json
401
Unauthorized request. Check fields message and error code from response body for additional information.
application/json
403
Requested resource forbidden.Check fields message and error code from response body for additional information.
application/json
429
Too many requests. Check response header Retry-After indicating how long to wait before making a new request.
application/json
451
Unavailable because account is not verified.
application/json
post
/api/v1/report/export
Parameters
timezone: string;
IANA time zone string. Use this reference https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
Format in which the exported file is provider. Either Json or Xlsx (Excel) format are supported
tagIds: set of tag IDs
If no tags are specified the export is not filtered. If tags are specified the export is filtered in a way to include data which includes at least one tag ID. One can get tag IDs in Loop web settings under Tag details as shown in the screenshot below.
teamIds: set of shared inbox IDs
Set of shared inbox IDs. If no IDs are specified the export is not filtered. If IDs are specified the export is filtered in a way to include data for all the specified shared inboxes. One can get shared inbox IDs in Loop web settings under Shared Inbox details as shown in the screenshot below.
teammateIds: set of teammate email addresses
Set of email addresses of Agents that one would like to include in the export
customerIds: set of customer email addresses
Set of customer email addresses that one would like to include in the export
Sample request payload
Example payload to generate a export for all shared inboxes without any tag or teammate filters. First data in the report ("start") is from September 1, 2023 12:00:00 AM GMT The last data in the report ("end") is from October 1, 2023 12:00:00 AM GMT. The export will be generated in JSON format ("resultFormat").