> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fuseai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Count conversations by folder

> How many email conversations each folder holds, as the app's inbox tab badges show them: each count is the `pagination.total` GET /business/conversations?channel=email answers for that `folder` and the same `mailbox`, with no other filter, so `unread` is the number of conversations with an email not yet read. `folders` picks the folders to count (default every one); `mailbox` adds up the counts of some of your mailboxes instead of every connected mailbox you own or that is shared with you with inbox access. When Contact Visibility in the app's email inbox settings is Show only campaign contacts, only those conversations are counted, as in the app. Mailbox warmup conversations are not counted while the app's email inbox settings hide them, which is the default. Email only: on LinkedIn, the unread count is the `pagination.total` of GET /business/conversations?channel=linkedin&folder=unread&limit=1. Rate limit: 60 requests per minute, 5000 per day, shared with the other conversation reads.

Errors:
- `422` `VALIDATION_FAILED` — `channel` is missing or not `email`, `folders` names a folder the list does not offer, `mailbox` is not one address or up to 20 separated by commas, or a query parameter the route does not take was sent.
- `404` `MAILBOX_NOT_FOUND` — A `mailbox` is not yours, or not shared with you with inbox access.
- `429` `RATE_LIMITED` — Too many conversation reads or changes: their shared quota (60 per minute, 5000 per day) or, on LinkedIn, the LinkedIn service's own per-user limit was exceeded. Retry after the Retry-After / RateLimit-Reset seconds when present, else after a minute.

Requires one of the following token scopes: inbox.



## OpenAPI

````yaml /openapi.json get /business/conversations/counts
openapi: 3.1.0
info:
  title: Fuse Business API
  version: 1.0.0
  description: >-
    External API for lists, campaigns, prospect search and contacts.
    Authenticate with your API token as HTTP Basic. All paths are under /api/v1.
servers:
  - url: https://api.tryfuse.ai/api/v1
    description: Production
security:
  - basicAuth: []
tags:
  - name: Lists
  - name: Custom columns
  - name: Smart columns
  - name: Exports
  - name: Campaigns
  - name: Knowledge hubs
  - name: Analytics
  - name: Website intent
  - name: LinkedIn
  - name: Conversations
  - name: Account
  - name: Sending accounts
  - name: Data
  - name: Prospect search
  - name: Campaign steps
  - name: Scheduled sends
  - name: Campaign templates
  - name: Tracking domains
  - name: Agents
  - name: Research
  - name: Company search
  - name: Saved searches
  - name: Folders
  - name: Exclusions
  - name: Contacts
paths:
  /business/conversations/counts:
    get:
      tags:
        - Conversations
      summary: Count conversations by folder
      description: >-
        How many email conversations each folder holds, as the app's inbox tab
        badges show them: each count is the `pagination.total` GET
        /business/conversations?channel=email answers for that `folder` and the
        same `mailbox`, with no other filter, so `unread` is the number of
        conversations with an email not yet read. `folders` picks the folders to
        count (default every one); `mailbox` adds up the counts of some of your
        mailboxes instead of every connected mailbox you own or that is shared
        with you with inbox access. When Contact Visibility in the app's email
        inbox settings is Show only campaign contacts, only those conversations
        are counted, as in the app. Mailbox warmup conversations are not counted
        while the app's email inbox settings hide them, which is the default.
        Email only: on LinkedIn, the unread count is the `pagination.total` of
        GET /business/conversations?channel=linkedin&folder=unread&limit=1. Rate
        limit: 60 requests per minute, 5000 per day, shared with the other
        conversation reads.


        Errors:

        - `422` `VALIDATION_FAILED` — `channel` is missing or not `email`,
        `folders` names a folder the list does not offer, `mailbox` is not one
        address or up to 20 separated by commas, or a query parameter the route
        does not take was sent.

        - `404` `MAILBOX_NOT_FOUND` — A `mailbox` is not yours, or not shared
        with you with inbox access.

        - `429` `RATE_LIMITED` — Too many conversation reads or changes: their
        shared quota (60 per minute, 5000 per day) or, on LinkedIn, the LinkedIn
        service's own per-user limit was exceeded. Retry after the Retry-After /
        RateLimit-Reset seconds when present, else after a minute.


        Requires one of the following token scopes: inbox.
      operationId: countConversations
      parameters:
        - name: channel
          in: query
          required: true
          description: >-
            `email`: the counts are the email inbox's, one per folder. On
            LinkedIn, the unread count is the `pagination.total` of GET
            /business/conversations?channel=linkedin&folder=unread&limit=1.
          schema:
            type: string
            enum:
              - email
            description: >-
              `email`: the counts are the email inbox's, one per folder. On
              LinkedIn, the unread count is the `pagination.total` of GET
              /business/conversations?channel=linkedin&folder=unread&limit=1.
        - name: folders
          in: query
          required: false
          description: >-
            The email folders to count, separated by commas, as GET
            /business/conversations names them: `inbox`, `sent`, `unread`,
            `favorite`, `archived`, `spam`, `trash`. Omit it to count every
            folder.
          schema:
            type: string
            maxLength: 100
            description: >-
              The email folders to count, separated by commas, as GET
              /business/conversations names them: `inbox`, `sent`, `unread`,
              `favorite`, `archived`, `spam`, `trash`. Omit it to count every
              folder.
        - name: mailbox
          in: query
          required: false
          description: >-
            Only the conversations of these mailboxes: one address, or up to 20
            separated by commas, each one you own or that is shared with you
            with inbox access. Omit it to count every connected mailbox you can
            read.
          schema:
            type: string
            maxLength: 6420
            description: >-
              Only the conversations of these mailboxes: one address, or up to
              20 separated by commas, each one you own or that is shared with
              you with inbox access. Omit it to count every connected mailbox
              you can read.
      responses:
        '200':
          description: Success
          headers:
            RateLimit-Limit:
              schema:
                type: integer
              description: Requests permitted in the current window.
            RateLimit-Remaining:
              schema:
                type: integer
              description: Requests remaining in the current window.
            RateLimit-Reset:
              schema:
                type: integer
              description: Seconds until the current window resets.
          content:
            application/json:
              schema:
                type: object
                properties:
                  channel:
                    type: string
                    enum:
                      - email
                  counts:
                    type: object
                    description: >-
                      One count per folder asked for, under the folder's name:
                      the conversations in it, as the app's inbox tab badges
                      count them.
                    properties:
                      inbox:
                        type: integer
                      sent:
                        type: integer
                      unread:
                        type: integer
                        description: >-
                          The conversations with an email not yet read, in any
                          view.
                      favorite:
                        type: integer
                      archived:
                        type: integer
                      spam:
                        type: integer
                      trash:
                        type: integer
                    additionalProperties: false
                required:
                  - channel
                  - counts
              example:
                channel: email
                counts:
                  inbox: 128
                  sent: 342
                  unread: 7
                  favorite: 3
                  archived: 56
                  spam: 2
                  trash: 14
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - basicAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            param:
              type:
                - string
                - 'null'
            doc_url:
              type:
                - string
                - 'null'
            request_id:
              type:
                - string
                - 'null'
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >-
        Your API token (`af_…`) as the Basic-auth username, with an empty
        password.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.