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

# GET /api/audit_log

`GET /api/audit_log`

## Request

- Base URL: `https://app.drchrono.com`
- URL: `https://app.drchrono.com/api/audit_log`
- Auth: OAuth 2
  - Authorization code: `https://app.drchrono.com/o/authorize/`
  - Token URL: `https://app.drchrono.com/o/token/` scopes: `billing:read`

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.dev/drchrono/apis/drchrono-api.md) - [All operations](https://skmtc.dev/drchrono/apis/drchrono-api/llms.txt) - [OpenAPI document](https://skmtc.dev/drchrono/apis/drchrono-api/revisions/98cabe79d150?raw)
