# Chat ID. What is it and how to get it?

Each chat you see on your WhatsApp app has its own unique identifier.&#x20;

These are private chat, group chat and WhatsApp channel.&#x20;

Private chat is used to send personalized messages to the recipient. Group chat is used to organize communication between several participants in one group. Channel is used for unidirectional broadcasting tool where administrators can send text, photos, videos.

**Before sending a message to these chats, a chat ID is required.**\
You will get the *chat\_id* in the response to requests (like [Get messages](https://whapi.readme.io/reference/getmessages)) and in [Webhooks](/help-desk/receiving/webhooks.md#what-kind-of-response-comes-in-webhook).

#### Private chat or correspondent identifier

The format of the private chat identifier is based on the template `1234567890@s.whatsapp.net`, where the recipient's phone number is used instead of the zeros. The phone number should be specified in full, with the country code and without spaces and without a plus. For example: `61399145883@s.whatsapp.net`

#### Group chat ID

The group ID can be obtained only through the API: [Get a list of groups](https://whapi.readme.io/reference/getgroups)\
The group ID looks like this: `120363194050948049@g.us`

#### Channel ID

In order to find out the identifier use the following method: [GET /newsletters](https://whapi.readme.io/reference/getnewsletters)\
The channel ID looks like this: `120363171743427809@newsletter`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.whapi.cloud/help-desk/faq/chat-id.-what-is-it-and-how-to-get-it.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
