---
title: "Get auditEvent"
method: GET
path: "/auditEvents/{key}"
tags: ["auditEvents"]
---

# Get auditEvent

`GET /auditEvents/{key}`

Retrieve the specified auditEvent by its id. You may also optionally specify a list of fields to include in the response.

## Path parameters

- `key` string, required

## Query parameters

- `fields` string[]

## Response `200`

Success, returns the specified auditEvent.

- AuditEventsResponse — An auditable Refocus event.
  - `details` object — A JSON object with additional event details.
  - `id` string — The auditEvent id.
  - `loggedAt` string — The timestamp when the event was logged.
  - `isError` boolean — True if this audit event represents an error.
  - `resourceName` string — The name of the resource associated with this event.
  - `resourceType` string — The type of the resource associated with this event, e.g. "Collector", "Subject", etc.
  - `createdBy` string — Id of the User/Collector who created this auditEvent.
  - `createdAt` string — Timestamp when the record was saved to Refocus. Due to latency and queuing, this value is expected to be greater than the loggedAt timestamp.
  - `apiLinks` HATEOAS[] — Hypertext As The Engine Of Application State.
    - `href` string, required — URL of the related HATEOAS link you can use for subsequent calls.
    - `rel` string, required — Link relation that describes how this link relates to the previous call.
    - `method` string, required — The HTTP method required for the related call.

## Other responses

- `400` — Bad Request
- `401` — Authentication Error
- `404` — Resource Not Found
- `default` — Error

---

[API](https://skmtc.dev/salesforce/apis/refocus-api.md) · [All operations](https://skmtc.dev/salesforce/apis/refocus-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/salesforce/refocus-api/revisions/42c2153b047e/schema)
