Read one audit event with 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:
AuditEventwithid,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.updatedtargetKind: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 has each field’s type.
Examples
const event = await workspace.audit.get(eventId);Create this client with a signed-in person’s accessToken, not an apiKey.
The Python SDK authenticates with a workspace API key, which this operation does not accept, so it has no method for it.
curl "https://pubnio.com/api/v1/workspaces/$WORKSPACE_ID/audit-logs/$EVENT_ID" \
-H "Authorization: Bearer $PUBNIO_TOKEN"pnio audit get "$EVENT_ID"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 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 loginor in the web app.