---
title: "Fetch audit log events."
method: GET
path: "/admin/audit"
tags: ["admin"]
---

# Fetch audit log events.

`GET /admin/audit`

## Query parameters

- `page` integer
- `per_page` integer

## Response `200`

List of audit logs.

- object[]
  - `id` string, uuid
  - `payload` object
    - `actor_id` string
    - `actor_via_sso` boolean — Whether the actor used a SSO protocol (like SAML 2.0 or OIDC) to authenticate.
    - `actor_username` string
    - `actor_name` string
    - `traits` object
    - `action` string — Usually one of these values: - login - logout - invite_accepted - user_signedup - user_invited - user_deleted - user_modified - user_recovery_requested - user_reauthenticate_requested - user_confirmation_requested - user_repeated_signup - user_updated_password - token_revoked - token_refreshed - factor_in_progress - factor_unenrolled - challenge_created - verification_attempted - factor_deleted - factor_updated - identity_linked - identity_unlinked - passkey_created - passkey_updated - passkey_deleted
    - `log_type` string — Usually one of these values: - account - team - token - user - factor
  - `created_at` string, date-time
  - `ip_address` string

## Other responses

- `401` — HTTP Unauthorized response.
- `403` — HTTP Forbidden response.

## Changes

- **2025-02-07** `4d0f1a6c1ad9` — 2 info
  - added the optional property `error_code` to the response with the `401` status
  - added the optional property `error_code` to the response with the `403` status
- **2025-01-10** `a2a108cb907c` — 2 warning
  - for the `query` request parameter `page`, the min was set to `1.00`
  - for the `query` request parameter `per_page`, the min was set to `1.00`
- **2023-12-13** `77f9aeb9339a` — 2 info
  - added the optional property `weak_password` to the response with the `401` status
  - added the optional property `weak_password` to the response with the `403` status
- **2023-03-30** `e2741b13b102` — 1 info
  - added the optional property `items/payload/actor_via_sso` to the response with the `200` status
- **2023-02-01** `144a34ca6d74` — 5 warning
  - removed the optional property `error_code` from the response with the `401` status
  - removed the optional property `error_code` from the response with the `403` status
  - removed the optional property `items/payload/actor_via_sso` from the response with the `200` status
  - removed the optional property `weak_password` from the response with the `401` status
  - …1 more

[Change history](https://skmtc.dev/supabase/apis/supabase-auth-rest-api/changes/admin/audit/get.md)

---

[API](https://skmtc.dev/supabase/apis/supabase-auth-rest-api.md) · [All operations](https://skmtc.dev/supabase/apis/supabase-auth-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/supabase-auth-rest-api/revisions/2e2a74a7459f/schema)
