---
title: "Read one audit event"
description: "PubNio API audit.get: read one audit event. Request fields, examples in five clients, errors, and idempotency."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Read one audit event

Read one audit event with [`GET /api/v1/workspaces/{workspaceId}/audit-logs/{eventId}`](https://pubnio.com/api/v1/docs#tag/audit/GET/api/v1/workspaces/{workspaceId}/audit-logs/{eventId}). Requires a signed-in workspace owner, in the web app or the CLI; API keys are not accepted and MCP cannot call it.

## Request

| Parameter     | In   | Type | Required |
| ------------- | ---- | ---- | -------- |
| `workspaceId` | path | UUID | Yes      |
| `eventId`     | path | UUID | Yes      |

## Response

- HTTP 200: `AuditEvent` with `id`, `workspaceId`, `profileId`, `actor`, `action`, `targetKind`, `targetId`, `detail`, `createdAt`.
  - `action`: `workspace.updated`, `workspace.archived`, `workspace.member.role_updated`, `workspace.member.removed`, `workspace.invite.created`, `workspace.invite.resent`, `workspace.invite.revoked`, `workspace.invite.accepted`, `workspace.invite.declined`, `api_key.created`, `api_key.updated`, `api_key.revoked`, `webhook.endpoint.created`, `webhook.endpoint.updated`, `webhook.endpoint.deleted`, `webhook.delivery.replayed`, `account.connected`, `account.reconnected`, `account.disconnected`, `account.deleted`, `account.enabled`, `account.disabled`, `account.moved`, `profile.created`, `profile.updated`, `profile.archived`, `queue.created`, `queue.updated`, `queue.paused`, `queue.resumed`, `queue.archived`, `queue.slots.replaced`, `queue.skip.created`, `queue.skip.deleted`, `queue.blackout.created`, `queue.blackout.deleted`, `billing.subscription.updated`, `billing.credit.topped_up`, `billing.spend_controls.updated`
  - `targetKind`: `workspace`, `workspace_member`, `workspace_invite`, `workspace_profile`, `api_key`, `webhook_endpoint`, `webhook_delivery`, `integration_connection`, `provider_account`, `schedule_queue`, `schedule_queue_skip`, `schedule_queue_blackout`, `workspace_billing`

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const event = await workspace.audit.get(eventId);
```

Create this client with a signed-in person's `accessToken`, not an `apiKey`.

### Python

The Python SDK authenticates with a workspace API key, which this operation does not accept, so it has no method for it.

### cURL

```sh
curl "https://pubnio.com/api/v1/workspaces/$WORKSPACE_ID/audit-logs/$EVENT_ID" \
  -H "Authorization: Bearer $PUBNIO_TOKEN"
```

### CLI

```sh
pnio audit get "$EVENT_ID"
```

### MCP execute

```js
async () => {
  const eventId = "<eventId>";
  const response = await codemode.request({
    method: "GET",
    path: `/api/v1/workspaces/${codemode.workspaceId}/audit-logs/${eventId}`,
  });
  return response.data;
};
```

## Errors

It declares no problem of its own.

It declares the problems [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

None needed: a read is safe to retry.

## Limits

- API keys and MCP cannot call it. A signed-in person runs it from the CLI after `pnio auth login` or in the web app.

## Related

- [Audit log operations](https://pubnio.com/docs/reference/#audit-log)

Source: https://pubnio.com/docs/reference/audit-get/index.mdx
