---
title: "Turns, denials or audit entries for this org"
method: GET
path: "/api/orgs/{orgId}/activity"
tags: ["activity"]
---

# Turns, denials or audit entries for this org

`GET /api/orgs/{orgId}/activity`

## Request

- Base URL: `https://api.wizbi.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wizbi.ai/api/orgs/{orgId}/activity`
- Auth: none declared

Reads wizbi.agent_turn.v1 rows (kind=turns), policy denials (kind=denials) or admin audit entries (kind=audit). Members see their own rows; org admins see everyone’s. Audit is admin-only.

## Path parameters

- `orgId` string, required

## Query parameters

- `kind` 'turns' | 'denials' | 'audit'
- `from` string, date-time
- `to` string, date-time
- `principalId` string
- `channel` string
- `limit` integer
- `conversation` string
- `connectorId` string

## Response `200`

Rows, newest first.

- Activity
  - `kind` 'turns' | 'denials' | 'audit', required
  - `rows` union[], required
    - union
      - object
        - `turn_id` string, required
        - `started_at` string, required
        - `event_time` string
        - `channel` string, required
        - `org_id` string, nullable
        - `user_id` string, nullable
        - `principal_id` string, nullable
        - `conversation_ref` string, nullable
        - `outcome` string, required
        - `content_policy` string
        - `question_preview` string, nullable
        - `answer_preview` string, nullable
        - `is_group` boolean, nullable
        - `speaker_principal_id` string, nullable
        - `speaker_name` string, nullable
        - `tool_count` number
        - `denial_count` number
        - `input` object
          - `kind` string, nullable, required
          - `media_count` number, required
        - `output` object
          - `media_count` number, required
          - `formats` string[], required
        - `credits` number
        - `sources` string[]
      - object
        - `id` string, required
        - `at` string, required
        - `orgId` string, required
        - `principalId` string, nullable, required
        - `channel` string, nullable, required
        - `code` string, nullable, required
        - `name` string, nullable, required
        - `where` string, nullable, required
      - object
        - `id` string, required
        - `at` string, date-time, required
        - `org_id` string, required
        - `principal_id` string, required
        - `principal_kind` string, required
        - `role` string, required
        - `channel` string, required
        - `trace_id` string, required
        - `action` string, required
        - `target` object, required
          - `kind` string, required
          - `id` string, required
        - `confirm` boolean, required
        - `result` 'preview' | 'applied' | 'denied' | 'failed', required
        - `before` object, nullable, required
        - `after` object, nullable, required
        - `message` string, nullable, required
        - `ip` string
        - `user_agent` string

## Other responses

- `401`: No resolved context.
- `403`: Forbidden.

---

[API](https://skmtc.dev/wizbi/apis/wizbi-core-api.md) · [All operations](https://skmtc.dev/wizbi/apis/wizbi-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wizbi/apis/wizbi-core-api/revisions/5a47416c82ec?raw)
