1. Docs
  2. API Reference
  3. List saved audit-log views for the current admin

List saved audit-log views for the current admin

GET/portal/v1/me/audit-views

Authentication

  • Bearer Token Authorization

    JWT access token

Code samples

cURLJavaScriptPythonGo
curl -X GET "https://api.canopy.dev/portal/v1/me/audit-views" \
  -H "Authorization: Bearer $CANOPY_TOKEN"

Responses

200 Returns every saved-view chip the admin has created on the audit-log page. Each entry carries a `name` and a `filters` payload (`AuditQueryDto` snapshot). Empty array when the admin has none.
{
  "items": [
    {
      "name": "string",
      "surface": "admin",
      "filters": {}
    }
  ]
}

application/json

  • itemsAuditViewResponseDto[]*
401 Invalid or expired token
403 This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)

Returned object

On this page

Related endpoints

POSTCreate or replace a saved audit-log view
DELETEDelete a saved audit-log view