---
title: "List recent security events"
method: GET
path: "/v1/me/security-events"
tags: ["Account"]
---

# List recent security events

`GET /v1/me/security-events`

## Request

- Base URL: `https://api.vatnode.dev`
- URL: `https://api.vatnode.dev/v1/me/security-events`
- Auth: API key in cookie `better-auth.session_token`

The last 20 sign-in / signup and API-key audit events for the
authenticated user, merged and sorted newest-first. Drives the
‘Recent activity’ card in the dashboard.

## Response `200`

Recent security events.

- object
  - `events` SecurityEvent[], required
    - `id` string, required
    - `category` 'auth' | 'api_key', required
    - `label` string, required
    - `ip` string, nullable, required
    - `userAgent` string, nullable, required
    - `createdAt` string, date-time, required

## Other responses

- `401`: No valid session (`UNAUTHORIZED`), or the account has been deleted (`ACCOUNT_DELETED`).

---

[API](https://skmtc.dev/vatnode/apis/vatnode-api.md) · [All operations](https://skmtc.dev/vatnode/apis/vatnode-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vatnode/apis/vatnode-api/revisions/c65828db2037?raw)
