> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-js-sdk-llms-index.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaScript Chat SDK v4 — LLM docs index

> Machine-readable, JavaScript-SDK-v4-scoped index of every SDK page as a clean .md twin. Built for AI coding agents; kept out of the human sidebar.

# JavaScript Chat SDK v4 — LLM docs index (Latest)

> Low-level JavaScript/TypeScript chat + calling client. Package
> `@cometchat/chat-sdk-javascript@4`. This page is a **JavaScript-SDK-v4-only** routing index for
> AI agents — a scoped alternative to the site-wide `/docs/llms.txt`.

## How to use this index

Each link below is already a **`.md` twin** (clean Markdown: verbatim code + method signatures,
parameters, and listener contracts). Pick the page for the intent, fetch its `.md`, read the API
there.

* Convention: any docs page URL + `.md` → raw Markdown.
* Fallback: if a `.md` twin 404s, fetch the same URL **without** `.md` (HTML). Never read a
  package `.d.ts` and never answer APIs from memory.

## Hot path — usually no fetch needed

For a plain "add chat" the install, `init → login`, and the core `sendMessage` / `receive-message`
listener flow are stable; a well-built agent skill bakes them. Fetch below only for exhaustive
parameters, long-tail methods, group/user management, calling, or edge-case listeners.

* Setup: [Integration / Setup](setup-sdk.md)
* Auth/lifecycle: [Authentication](authentication-overview.md)
* Core send/receive: [Send a Message](send-message.md) · [Receive a Message](receive-message.md) · [Real-time Listeners](all-real-time-listeners.md)

## Getting started / integration

* [Overview](overview.md)
* [Integration / Setup](setup-sdk.md)
* [Authentication](authentication-overview.md)

## Messaging

* [Send a Message](send-message.md)
* [Media & File Messages](upload-files.md)
* [Receive a Message](receive-message.md)
* [Interactive / Card Messages](card-messages.md)
* [Message Filtering](message-filtering.md)
* [Retrieve Conversations](retrieve-conversations.md)
* [Threaded Messages](threaded-messages.md)
* [Edit a Message](edit-message.md)
* [Delete a Message](delete-message.md)
* [Flag a Message](flag-message.md)
* [Delete a Conversation](delete-conversation.md)
* [Typing Indicators](typing-indicators.md)
* [Transient Messages](transient-messages.md)
* [Delivery & Read Receipts](delivery-read-receipts.md)
* [Mentions](mentions.md)
* [Reactions](reactions.md)

## Calling

* [Calling — Overview](calling-overview.md)

## Users

* [Users — Overview](users-overview.md)
* [Retrieve Users](retrieve-users.md)
* [User Management](user-management.md)
* [Block Users](block-users.md)
* [User Presence](user-presence.md)

## Groups

* [Groups — Overview](groups-overview.md)
* [Retrieve Groups](retrieve-groups.md)
* [Create a Group](create-group.md)
* [Update a Group](update-group.md)
* [Join a Group](join-group.md)
* [Leave a Group](leave-group.md)
* [Delete a Group](delete-group.md)
* [Retrieve Group Members](retrieve-group-members.md)
* [Add Group Members](group-add-members.md)
* [Kick / Ban Members](group-kick-ban-members.md)
* [Change Member Scope](group-change-member-scope.md)
* [Transfer Group Ownership](transfer-group-ownership.md)

## AI, campaigns & webhooks

* [AI Moderation](ai-moderation.md)
* [AI Agents](ai-agents.md)
* [AI Copilot](ai-copilot.md)
* [Campaigns](campaigns.md)
* [Webhooks](webhooks.md)

## Resources

* [Key Concepts](key-concepts.md)
* [Message Structure & Hierarchy](message-structure-and-hierarchy.md)
* [All Real-time Listeners](all-real-time-listeners.md)
* [Rate Limits](rate-limits.md)
* [Connection Status](connection-status.md)
* [Managing WebSocket Connections Manually](managing-web-sockets-connections-manually.md)

## Best practices & troubleshooting

* [Best Practices](best-practices.md)
* [Error Codes](error-codes.md)
* [Troubleshooting](troubleshooting.md)

## Migration & overviews

* [Upgrading from v3](upgrading-from-v3.md)
* [Extensions — Overview](extensions-overview.md)
* [AI User Copilot — Overview](ai-user-copilot-overview.md)
* [AI Chatbots — Overview](ai-chatbots-overview.md)
* [Webhooks — Overview](webhooks-overview.md)
* [Changelog](changelog.md)
