---
title: "List security events for current user"
method: GET
path: "/security_events"
tags: ["Audit"]
---

# List security events for current user

`GET /security_events`

This API returns a list of all the security log events **for the current user**. If you want a list of all the security events for all users please use the auditlog_events with filter type == "security". See the auditlog_events API in the beta documentation for more information.

🔒 Requires: `audit:read` scope

## Response `200`

OK

- object
  - `event` AuditLogEvent — The structure of the event and security event model
    - `action` 'insert' | 'update' | 'delete' — The type of the action performed on the object.
    - `created_at` string, date-time — The timestamp indicating when the event was persisted to the audit log.
    - `data` union — An object in JSON format representing the new values of the attributes that were changed by the event.
      - object
      - object[]
    - `entity_id` string — The id of the object involved in the event
    - `id` string — Autogenerated object identifier.
    - `ip_address` string, ipv4 — The ip address from which the request causing the event originated.
    - `occurred_at` string, date-time — The timestamp indicating when the action causing the event occurred.
    - `old_data` object — An object in JSON format representing the old values of the attributes that were changed by the event.
    - `type` string — The type of the object involved in the event. This may be something like "security" for security events or the name of the table the action was performed on, like "vend_customer".
    - `user_agent` string — User agent of the http client which submitted the request.
    - `user_id` string — The `id` of the user executing the action registered by this event.

---

[API](https://skmtc.net/lightspeedhq/apis/api-2026-07.md) · [All operations](https://skmtc.net/lightspeedhq/apis/api-2026-07/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightspeedhq/api-2026-07/revisions/72d4ceb46dbb/schema)
