# Audit log (admin or owner); members receive 403

`from` is inclusive. CSV (`format=csv`) paginates up to 50,000 rows and sets `X-Audit-Truncated: true` when more exist. Formula-like cells are prefixed with a quote.

HTML: https://notify.belweave.ai/docs/api/getTeamsIdAudit

Required scopes: `teams:read`

```http
GET /api/agent/teams/{id}/audit
Authorization: Bearer ntf_your_token
```

## Operation schema

```json
{
  "summary": "Audit log (admin or owner); members receive 403",
  "description": "`from` is inclusive. CSV (`format=csv`) paginates up to 50,000 rows and sets `X-Audit-Truncated: true` when more exist. Formula-like cells are prefixed with a quote.",
  "operationId": "getTeamsIdAudit",
  "security": [
    {
      "bearer": [
        "teams:read"
      ]
    }
  ],
  "x-notify-scopes": [
    "teams:read"
  ],
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "schema": {
        "type": "string"
      },
      "required": true
    },
    {
      "name": "action",
      "in": "query",
      "schema": {
        "type": "string"
      },
      "required": false
    },
    {
      "name": "actor",
      "in": "query",
      "schema": {
        "type": "string"
      },
      "required": false
    },
    {
      "name": "from",
      "in": "query",
      "schema": {
        "type": "string",
        "format": "date-time"
      },
      "required": false
    },
    {
      "name": "to",
      "in": "query",
      "schema": {
        "type": "string",
        "format": "date-time"
      },
      "required": false
    },
    {
      "name": "cursor",
      "in": "query",
      "schema": {
        "type": "string"
      },
      "required": false
    },
    {
      "name": "limit",
      "in": "query",
      "schema": {
        "type": "integer",
        "minimum": 1,
        "maximum": 1000
      },
      "required": false
    },
    {
      "name": "format",
      "in": "query",
      "schema": {
        "enum": [
          "json",
          "csv"
        ]
      },
      "required": false
    }
  ],
  "responses": {
    "200": {
      "description": "Success",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/AuditLogPage"
          }
        }
      }
    },
    "400": {
      "description": "Invalid request",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "401": {
      "description": "Missing, unknown, revoked, or expired token",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "403": {
      "description": "The token lacks a required scope or the account lacks permission",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "404": {
      "description": "Not found for this account",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    }
  }
}
```

Resolve schema references against [OpenAPI](https://notify.belweave.ai/openapi.json).
