> This page is for API Reference & Tools.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.moveworks.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.moveworks.com/_mcp/server.

# List audit logs

GET https://api.moveworks.ai/export/v1beta2/records/audit-logs

Retrieve Moveworks SIEM log events (audit logs). This endpoint is in Controlled Availability and is served on the v1beta2 path. Contact Moveworks Support to have it enabled for your org. For fields, filters and polling guidance, see [Audit logs](/ai-assistant/data-api#audit-logs).

Reference: https://docs.moveworks.com/api-reference/data-api/list-audit-logs

## Authentication

- `Authorization` header (required) — API Key authentication via header
- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.moveworks.ai/export/v1beta2/records` (US PROD server. If you are located in the US region please use this server URL, default)
- `https://api.am-eu-central.moveworks.ai/export/v1beta2/records` (EU PROD server. If you are located in the EU region please use this server URL)
- `https://api.am-ca-central.moveworks.ai/export/v1beta2/records` (CA PROD server. If you are located in the CA region please use this server URL)
- `https://api.moveworksgov.ai/export/v1beta2/records` (Govcloud PROD server. If you are on GovCloud infrastrucutre (US region) please use this server URL)
- `https://api.jp.moveworks.com/export/v1beta2/records` (Japan production server)
- `https://api.uk.moveworks.com/export/v1beta2/records` (UK production server)
- `https://api.prod4.us.moveworks.com/export/v1beta2/records` (US Prod 4 production server)
- `https://api.prod3.us.moveworks.com/export/v1beta2/records` (US Prod 3 production server)

## Request

### Query parameters

- `$filter` (string, optional) — Filter records. ingested_time and created_time support ge, gt, le and lt. id, type and severity support eq. Put text values in single quotes, for example type eq 'EXTERNAL_API'.
- `$select` (string, optional) — This option allow the client to request a limited set of properties of an entity
- `$orderby` (string, optional) — Accepted, but doesn't change the order of results. Records are always returned oldest first by ingested_time, then by id, and $orderby only breaks ties.

## Response

### 200

Successfully retrieved list of audit logs

- `@odata.context` (string, optional) — URL to the metadata of the response.
- `@odata.nextLink` (string, optional) — URL to fetch the next set of results. Absent when there are no more records right now.
- `value` (list of auditlogobject, optional)

## Errors

### 400 Bad Request Error

Bad request error

- `code` (string, optional)
- `message` (string, optional)

### 403 Forbidden Error

Forbidden error. The audit-logs endpoint isn't enabled for your org, or the credential doesn't have the Audit logs scope.

- `code` (string, optional)
- `message` (string, optional)

### 404 Not Found Error

URL not found error

- `code` (string, optional)
- `message` (string, optional)

### 429 Too Many Requests Error

Rate limiting exceeding error

- `code` (string, optional)
- `message` (string, optional)

### 500 Internal Server Error

Internal server error

- `code` (string, optional)
- `message` (string, optional)

## Types

### auditlogobject

- `id` (string, optional) — Unique ID for the event. Use it to remove duplicates.
- `created_time` (datetime, optional) — When the event happened (UTC).
- `ingested_time` (datetime, optional) — When the event became readable through the API (UTC). Page and checkpoint on this field.
- `type` (string, optional) — Event type: EXTERNAL_API, HTTP_INGRESS_API, EXTERNAL_LDAP_API, AUTHENTICATION, PERMISSION_CHANGE, CONFIG_CHANGE, AGENT_STUDIO_LOG, USER_TOKEN_LOG or EMPLOYEE_COMMS_CAMPAIGN_OPERATION. New types can be added, so treat it as an open value.
- `severity` (string, optional) — INFO or ERROR.
- `source` (string, optional) — Always MOVEWORKS.
- `data` (map from string to any, optional) — Event details. Fields depend on type.

## Examples

**Response**

```json
{
  "@odata.context": "https://api.moveworks.ai/export/v1beta2/records/$metadata#audit-logs",
  "@odata.nextLink": "https://api.moveworks.ai/export/v1beta2/records/audit-logs?$skiptoken=abcdefghijklmno",
  "value": [
    {
      "id": "0f3c1a52-8b14-4d6e-9d02-1a7b5c9e4411",
      "created_time": "2026-09-27T14:02:11.884217Z",
      "ingested_time": "2026-09-27T14:02:19.310482Z",
      "type": "EXTERNAL_API",
      "severity": "INFO",
      "source": "MOVEWORKS",
      "data": {}
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.moveworks.ai/export/v1beta2/records/audit-logs"

querystring = {"$filter":"ingested_time ge 2026-11-01T00:00:00Z","$orderby":"ingested_time asc","$select":"id,ingested_time,type"}

headers = {"Authorization": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.moveworks.ai/export/v1beta2/records/audit-logs?%24filter=ingested_time+ge+2026-11-01T00%3A00%3A00Z&%24orderby=ingested_time+asc&%24select=id%2Cingested_time%2Ctype';
const options = {method: 'GET', headers: {Authorization: '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.moveworks.ai/export/v1beta2/records/audit-logs?%24filter=ingested_time+ge+2026-11-01T00%3A00%3A00Z&%24orderby=ingested_time+asc&%24select=id%2Cingested_time%2Ctype"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.moveworks.ai/export/v1beta2/records/audit-logs?%24filter=ingested_time+ge+2026-11-01T00%3A00%3A00Z&%24orderby=ingested_time+asc&%24select=id%2Cingested_time%2Ctype")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.moveworks.ai/export/v1beta2/records/audit-logs?%24filter=ingested_time+ge+2026-11-01T00%3A00%3A00Z&%24orderby=ingested_time+asc&%24select=id%2Cingested_time%2Ctype")
  .header("Authorization", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.moveworks.ai/export/v1beta2/records/audit-logs?%24filter=ingested_time+ge+2026-11-01T00%3A00%3A00Z&%24orderby=ingested_time+asc&%24select=id%2Cingested_time%2Ctype', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.moveworks.ai/export/v1beta2/records/audit-logs?%24filter=ingested_time+ge+2026-11-01T00%3A00%3A00Z&%24orderby=ingested_time+asc&%24select=id%2Cingested_time%2Ctype");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.moveworks.ai/export/v1beta2/records/audit-logs?%24filter=ingested_time+ge+2026-11-01T00%3A00%3A00Z&%24orderby=ingested_time+asc&%24select=id%2Cingested_time%2Ctype")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```