---
title: "Get BadgeCount for list."
method: POST
path: "/api/v1/badgecount/list"
tags: ["BadgeCount"]
---

# Get BadgeCount for list.

`POST /api/v1/badgecount/list`

## Request

- Base URL: `https://api.intheloop.io`
- URL: `https://api.intheloop.io/api/v1/badgecount/list`
- Auth: API key in header `Authorization`

## Headers

- `Authorization` string
- `X-Impersonate-User` string

## Request body

- ShowInViewObject[]
  - `view` 'LoopInbox' | 'PersonalInbox' | 'Channel', required: Possible View Types
  - `filter` 'Inbox' | 'Chats' | 'Drafts' | 'Archived' | 'Assigned' | 'Sent' | 'Starred' | 'Muted' | 'Deleted' | 'AllMessages' | 'Snoozed' | 'SnoozedDue' | 'Unread' | 'Spam' | 'Purge': Possible Filter Types
  - `channelId` string: Channel Id (groupId or contactId)
  - `folderId` string: Folder id

## Response `200`

OK

- ListOfResourcesOfBadgeCount: List of resources
  - `resources` BadgeCount[]: List of resources
    - `id` string: Resource id
    - `name` string: Resource name or title
    - `revision` string: Resource revision
    - `clientId` string: Resource client id
    - `$type` string, required
    - `view` 'LoopInbox' | 'PersonalInbox' | 'Channel', required: Possible View Types
    - `filter` 'Inbox' | 'Chats' | 'Drafts' | 'Archived' | 'Assigned' | 'Sent' | 'Starred' | 'Muted' | 'Deleted' | 'AllMessages' | 'Snoozed' | 'SnoozedDue' | 'Unread' | 'Spam' | 'Purge': Possible Filter Types
    - `channelId` string: Channel Id (groupId or contactId)
    - `totalCount` integer: Unread count
    - `unreadCount` integer, required: Unread count
    - `assignedCount` integer, required: Assigned count
    - `counts` UnreadCountObject: Unread count object
      - `emailUnreadCount` integer, required: Email Unread Count
      - `chatUnreadCount` integer, required: Chat unread count
      - `totalUnreadCount` integer, required: Total unread count
  - `size` integer, required: Page size
  - `offset` integer, required: Page offset
  - `offsetHistoryId` string: Offset history id
  - `totalSize` integer, required: Total size (if total size is at least one bigger than size, then there are more resources). Total size does not necessarily mean the actual total size

## Other responses

- `400`: Bad request. Check fields message and error code from response body for additional information.
- `401`: Unauthorized request. Check fields message and error code from response body for additional information.
- `429`: Too many requests. Check response header Retry-After indicating how long to wait before making a new request.
- `451`: Unavailable because account is not verified.

---

[API](https://skmtc.dev/intheloop/apis/loop-api.md) - [All operations](https://skmtc.dev/intheloop/apis/loop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/intheloop/apis/loop-api/revisions/0892c5ba0787?raw)
