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

# Get related entity counts for a contact channel

> Returns the number of chats and broadcast recipients linked to this channel. Use before deletion to warn the user about impact.



## OpenAPI

````yaml https://api.useinvent.com/openapi.json get /orgs/{org_id}/contacts/{contact_id}/channels/{channel_id}/stats
openapi: 3.1.0
info:
  version: 1.0.0
  title: Invent API
servers:
  - url: https://api.useinvent.com
security:
  - bearerAuth: []
paths:
  /orgs/{org_id}/contacts/{contact_id}/channels/{channel_id}/stats:
    get:
      tags:
        - Orgs Contacts
      summary: Get related entity counts for a contact channel
      description: >-
        Returns the number of chats and broadcast recipients linked to this
        channel. Use before deletion to warn the user about impact.
      parameters:
        - schema:
            type: string
          required: true
          description: Org ID
          name: org_id
          in: path
        - schema:
            type: string
          required: true
          description: Contact ID
          name: contact_id
          in: path
        - schema:
            type: string
          required: true
          description: Channel ID
          name: channel_id
          in: path
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactChannelStatsSchema'
components:
  schemas:
    ContactChannelStatsSchema:
      type: object
      properties:
        chats:
          type: number
        broadcast_recipients:
          type: number
      required:
        - chats
        - broadcast_recipients
      description: >-
        Related entity counts for a contact channel. Used to warn before
        deletion.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Bearer token authentication using your API key

````