# ExportAuditTrail

## General

### URL

https://{Host}/attunityenterprisemanager/api/v1/security/audit\_trail

### Description

Export audit trail data from all servers.

Supported only from Replicate November 2020.

### HTTP method

GET

### Required user role

See [Required Enterprise Manager permissions](https://help.qlik.com/en-US/enterprise-manager/May2026/Content/EnterpriseManager/EnterpriseManager_APIGuide/Introduction/AEMPermissions.htm).

## Request parameters

Request parameters

| Location | Name | Required | Example |
| --- | --- | --- | --- |
| URL | Host [string] | Yes | computer.network.net |
| URL | start\_timestamp<br><br>[UTC format or Ticks] | Yes | 2020-06-30T16:15:00Z (UTC format)<br><br>637410358250082194 (Ticks) |
| URL | end\_timestamp<br><br>[UTC format or Ticks] | No | 2020-06-30T16:15:00Z (UTC format)<br><br>637410358250082194 (Ticks)<br><br>Default : latest audit trail record |

## Response

JSON File (stream)

## cURL example

### Request

`curl -i -k --header "EnterpriseManager.APISessionID: wCo0_KvjEUFROvfHF5KGrw"  https://computer.network.net/attunityenterprisemanager/api/v1/security/audit_trail?start_timestamp={start_timestamp}&end_timestamp={end_timestamp}`

### Response

JSON file (stream)

## Error response

Error responses

| HTTP | Error | Message | Description |
| --- | --- | --- | --- |
| 500 | AEM\_INVALID\_TIMESTAMP\_FORMAT | Timestamp is not a timestamp.<br><br>Timestamp format should be 'yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z or Ticks. | Timestamp is not valid. |
| 500 | AEM\_EXPORT\_INNER\_ERR | Failed to export audit trail.<br><br>AUDIT-E-INVRANGE. The end time is before the start time. | Time range is not valid. |
| 401 | UNAUTHORIZED\_REQUEST | Unauthorized Request. request: AemExportAuditTrail | User does not have permission to access the audit trail information. |