---
title: "GET /api/audit_log"
method: GET
path: "/api/audit_log"
tags: ["Audit"]
---

# GET /api/audit_log

`GET /api/audit_log`

Retrieve or search audit logs.
<b>Note:</b> Either `since`, `date` or `date_range` parameter must be specified.

## Query parameters

- `cursor` string — The pagination cursor value.
- `page_size` integer — Number of results to return per page.
- `since` string
- `date_range` string
- `date` string
- `patient` integer
- `doctor` integer
- `user` integer
- `appointment` integer
- `type` string
- `action` string

## Response `200`

OK

- object — Paginated Result
  - `previous` string — Previous paginated page
  - `data` AuditLog[] — result data
    - `patient` string — Patient's name
    - `description` string — Text description of the audit log
    - `ip_address` string — IPv4 address of the user
    - `created_at` string
    - `appointment_id` integer
    - `updated_at` string
    - `field` string — Related field of this audit entry
    - `name_of_user` string
    - `action` 'Not specified' | 'Create' | 'Read' | 'Update' | 'Delete'
    - `user_id` integer
    - `doctor_id` integer
    - `type` 'Account' | 'Allergy' | 'API' | 'Appointment Template' | 'Appointment Profile' | 'Appointment' | 'Billing Profile' | 'Chart' | 'Clinical Note' | 'Direct Message' | 'Data Export' | 'EPCS' | 'eRx' | 'Family History' | 'Fee Schedule' | 'Immunization' | 'Insurance Authorization' | 'Insurance' | 'Insurance Credit Card Payment' | 'Login' | 'Medical Form' | 'Medication' | 'MedList' | 'Office' | 'OnPatient' | 'Patient Flag' | 'Permissions' | 'Phone Log' | 'Problem' | 'Refill Request' | 'Uploaded Documents' | 'Sample Data' | 'Telehealth' | 'Fax' | 'Vital Flowsheet' | 'Navigation View' | 'Break The Glass' | 'Lab Order' | 'File Access' — Type of audit log
    - `page` string — Related page of this audit entry
  - `next` string — Next Paginated page

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Permission Denied
- `404` — Not Found
- `405` — Method Not Allowed
- `500` — Internal Server Error

---

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