---
search:
  tags:
    - Audit
    - GET
seo:
  description: >-
    Admin only. Returns one entry with both stored payloads parsed back into
    JSON.… Reference for the GET /api/v1/audit/{auditId} endpoint in the
    PharmaFlow API.
sidebar:
  label: Read an audit entry
  badge: GET
title: Read an audit entry
type: openapi-operation
---
Admin only. Returns one entry with both stored payloads parsed back into JSON. An id that matches no row answers 404, and invalid JSON comes back as its stored string.

`GET /api/v1/audit/{auditId}`

**Responses**

- `200` — The audit entry
- `401` — Not authenticated
- `403` — Caller is not an admin
- `404` — Audit entry not found

Response example, 200:

```json
{
  "id": "string",
  "user_id": "string",
  "branch_id": "string",
  "device_id": "string",
  "entity": "string",
  "entity_id": "string",
  "action": "string",
  "before_json": null,
  "after_json": null,
  "ip": "string",
  "created_at": "string",
  "user_name": "string"
}
```
