---
title: "List audit logs"
method: GET
path: "/audit-log"
tags: ["accounts"]
---

# List audit logs

`GET /audit-log`

## Query parameters

- `actor_type` 'api_key' | 'app_user' | 'stripe_app' | 'system' | 'temporary_access_token'
- `end_time` string, date-time
- `environment_id` string
- `q` string
- `start_time` string, date-time
- `limit` integer — Page limit (default 100)
- `offset` integer — Page offset (default 0)

## Response `200`

OK

- object
  - `data` AuditLogListResponseData[], required
    - `actor_type` 'api_key' | 'app_user' | 'stripe_app' | 'system' | 'temporary_access_token', required
    - `api_key` ApiKeyResponseData
      - `created_at` string, date-time, required
      - `description` string, nullable
      - `environment` EnvironmentResponseData
        - `created_at` string, date-time, required
        - `environment_type` 'development' | 'production' | 'staging', required
        - `id` string, required
        - `name` string, required
        - `updated_at` string, date-time, required
      - `environment_id` string, nullable
      - `id` string, required
      - `integration` ApiKeyIntegrationResponseData
        - `id` string, required
        - `state` 'active' | 'created' | 'pending', required
        - `type` 'clerk' | 'metronome' | 'orb' | 'stripe' | 'unknown' | 'workos', required
      - `last_used_at` string, date-time, nullable
      - `name` string, required
      - `rate_limit_percent` integer, nullable
      - `readonly` boolean, required
      - `scopes` ApiKeyScope[], required
      - `updated_at` string, date-time, required
    - `api_key_id` string, nullable
    - `ended_at` string, date-time, nullable
    - `environment` EnvironmentResponseData
      - `created_at` string, date-time, required
      - `environment_type` 'development' | 'production' | 'staging', required
      - `id` string, required
      - `name` string, required
      - `updated_at` string, date-time, required
    - `environment_id` string, nullable
    - `id` string, required
    - `method` string, required
    - `resource_id` integer, nullable
    - `resource_id_string` string, nullable
    - `resource_name` string, nullable
    - `resource_type` string, nullable
    - `resp_code` integer, nullable
    - `secondary_resource` string, nullable
    - `started_at` string, date-time, required
    - `url` string, required
    - `user_name` string, nullable
  - `params` object, required — Input parameters
    - `actor_type` 'api_key' | 'app_user' | 'stripe_app' | 'system' | 'temporary_access_token'
    - `end_time` string, date-time
    - `environment_id` string
    - `limit` integer — Page limit (default 100)
    - `offset` integer — Page offset (default 0)
    - `q` string
    - `start_time` string, date-time

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Server error

---

[API](https://skmtc.net/schematichq/apis/schematic-api.md) · [All operations](https://skmtc.net/schematichq/apis/schematic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/schematichq/schematic-api/revisions/544bc1ef307f/schema)
