---
title: "By Entity"
method: GET
path: "/organizations/{organizationId}/logs/stats/by-entity"
tags: ["Organization Log Stats"]
---

# By Entity

`GET /organizations/{organizationId}/logs/stats/by-entity`

List total counts of organizations for each entity identifier

## Path parameters

- `organizationId` string, required

## Query parameters

- `filter` OrganizationLogStatsFilter
  - `actionType` union — type of action that was performed, eg: diagram-content-update or model-object-create
    - 'api-key-create' | 'api-key-delete' | 'api-key-update' | 'oauth-consent-deny' | 'oauth-consent-grant' | 'organization-create' | 'organization-delete' | 'organization-update' | 'organization-user-add' | 'organization-user-invite-create' | 'organization-user-invite-revoke' | 'organization-user-remove' | 'organization-user-update' | 'team-create' | 'team-delete' | 'team-update' | 'user-login' | 'user-login-failed' | 'user-logout' | 'comment-create' | 'comment-delete' | 'comment-reply-create' | 'comment-reply-delete' | 'comment-reply-update' | 'comment-update' | 'diagram-content-create' | 'diagram-content-delete' | 'diagram-content-update' | 'diagram-content-view' | 'diagram-create' | 'diagram-delete' | 'diagram-export' | 'diagram-group-create' | 'diagram-group-delete' | 'diagram-group-update' | 'diagram-update' | 'domain-create' | 'domain-delete' | 'domain-update' | 'draft-create' | 'draft-delete' | 'draft-merge' | 'draft-task-create' | 'draft-update' | 'draft-view' | 'flow-create' | 'flow-delete' | 'flow-update' | 'flow-view' | 'landscape-copy' | 'landscape-create' | 'landscape-delete' | 'landscape-duplicate' | 'landscape-export' | 'landscape-import' | 'landscape-update' | 'model-connection-create' | 'model-connection-delete' | 'model-connection-update' | 'model-connections-export' | 'model-object-create' | 'model-object-delete' | 'model-object-dependencies-export' | 'model-object-update' | 'model-objects-export' | 'share-link-create' | 'share-link-delete' | 'share-link-update' | 'tag-create' | 'tag-delete' | 'tag-group-create' | 'tag-group-delete' | 'tag-group-update' | 'tag-update' | 'version-create' | 'version-delete' | 'version-revert-create'
    - ActionType[]
  - `endAtDate` string, date-time
  - `entityId` union — id of the entity to lookup, eg: id of the tag being created, or id of the model object being updated
    - string
    - string[]
  - `performedBy` union
    - 'user' | 'api-key' | 'notification-key' | 'service'
    - AuthType[]
  - `performedById` union — id of the user or api key who performed the action
    - string
    - string[]
  - `startAtDate` string, date-time
- `period` 'day' | 'week' | 'month' | 'year' | 'all'

## Response `200`

OK

- ActionLogStatsListByEntity
  - `contributors` object, required
  - `dates` ActionLogStatsDateByEntity[], required
    - `date` string, date-time, required
    - `entities` object, required
  - `totalCount` number, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `429` — Resource Exhausted
- `500` — Internal Server

---

[API](https://skmtc.net/icepanel/apis/icepanel-api.md) · [All operations](https://skmtc.net/icepanel/apis/icepanel-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/icepanel/icepanel-api/versions/e9ab2ff0f435/schema)
