Query Audit Logs

Query audit events with cursor-based pagination

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
📘

This API endpoint is only available to Enterprise Plan customers.

This endpoint is designed for SIEM integration with platforms like Azure Sentinel, Splunk, Elastic SIEM, and other security monitoring tools.

Returns events in ECS (Elastic Common Schema) format by default, with optional Splunk CIM format support.

Authentication requires a tenant-level audit API key (different from team API tokens). Contact support to obtain your audit API key.

An example cURL request is:

  curl --location 'https://app.eraser.io/api/audit-logs?limit=100'  
  --header 'Authorization: Bearer $YOUR-KEY-HERE'

An example response is:

{
    "events": [
      {
        "id": "a3f9c2e1d8b4",
        "@timestamp": "2026-01-15T14:32:18.000Z",
        "event": {
          "id": "a3f9c2e1d8b4",
          "category": ["authentication"],
          "action": "auth.login",
          "outcome": "success"
        },
        "user": {
          "id": "7k2m9n4p8q1r"
        },
        "eraser": {
          "teamId": "x5y8z3a7b2c6",
          "organizationId": "d9e4f1g6h3j8"
        }
      },
      {
        "id": "b7e2d5f9a1c3",
        "@timestamp": "2026-01-15T14:28:45.000Z",
        "event": {
          "id": "b7e2d5f9a1c3",
          "category": ["file"],
          "action": "data.file.created",
          "outcome": "success"
        },
        "user": {
          "id": "m8n2p5q9r3s7"
        },
        "eraser": {
          "teamId": "x5y8z3a7b2c6",
          "workspaceId": "t4u7v1w6x9y2",
          "organizationId": "d9e4f1g6h3j8",
          "metadata": {
            "fileName": "Architecture Diagram"
          }
        }
      }
    ],
    "nextCursor": "eyJ0aW1lc3RhbXAiOiIyMDI2LTAxLTE1VDE0OjI4OjQ1LjAwMFoiLCJpZCI6ImI3ZTJkNWY5YTFjMyJ9",
    "hasMore": true,
    "serverTime": "2026-01-15T14:35:22.000Z"
}
Query Params
date-time

Start of the time range (inclusive). Must be an RFC3339/ISO 8601 timestamp.
Example: 2025-01-01T00:00:00Z

date-time

End of the time range (exclusive). Must be an RFC3339/ISO 8601 timestamp.
Example: 2025-01-15T00:00:00Z

string

Opaque cursor string for pagination. Use the nextCursor value from
a previous response to fetch the next page of results.

integer
1 to 1000
Defaults to 100

Maximum number of events to return per request.
Defaults to 100. Maximum allowed value is 1000.

string
enum

Filter events by action type.

string

Filter events by the ID of the user who performed the action.

string
enum
Defaults to ecs

Output format for audit events.

  • ecs (default): Elastic Common Schema format, compatible with Azure Sentinel, Elastic SIEM
  • splunk: Splunk Common Information Model format
Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json