Get Audit Log

Get one organization audit-log entry. Requires an Enterprise subscription and organization admin or owner access. Workspace API keys return 403; use a personal API key or scoped OAuth token.

OAuth scope: api:read.

GET/api/v2/audit-logs/{auditLogId}
X-API-Key<token>

Your Sim API key, personal or workspace-scoped. Generate one under Settings, then API Keys. Operations that reject workspace keys say so in their own description.

In: header

Path Parameters

auditLogId*string

Audit-log entry identifier.

Length1 <= length

Query Parameters

organizationId?string

Organization whose audit-log entry should be returned. Defaults to the caller's own organization when omitted. A caller that belongs to no organization, or that names one it is not a member of, is refused with a 403.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://www.sim.ai/api/v2/audit-logs/string" \  -H "X-API-Key: YOUR_API_KEY"
{
  "data": {
    "id": "audit_2c3d4e5f6g",
    "workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
    "actorName": "Jane Smith",
    "actorEmail": "jane@example.com",
    "action": "file.uploaded",
    "resourceType": "file",
    "resourceId": "wf_V1StGXR8z5jdHi6BmyT91",
    "resourceName": "data.csv",
    "description": "Uploaded file \"data.csv\" via API",
    "metadata": {
      "fileSize": 1024,
      "fileType": "text/csv"
    },
    "createdAt": "2026-01-15T10:30:00Z"
  }
}
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "Invalid request"
  }
}
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Authentication required"
  }
}
{
  "error": {
    "code": "FORBIDDEN",
    "message": "Insufficient workspace permissions",
    "details": {
      "code": "INSUFFICIENT_WORKSPACE_ROLE"
    }
  }
}
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Not found"
  }
}
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "API rate limit exceeded",
    "details": {
      "retryAfter": "2026-01-01T00:00:30.000Z"
    }
  }
}
{
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Internal server error"
  }
}
{
  "error": {
    "code": "SERVICE_UNAVAILABLE",
    "message": "Service temporarily unavailable"
  }
}