# Chats By Lable ID

**if you need to get chats by label id using Cartat WhatsApp API You can use this endpoint.**

## To get chats by label id

<mark style="color:blue;">`GET`</mark> `https://api.cartat.net/chats/label/:label_id`

#### Path Parameters

| Name                                        | Type | Description |
| ------------------------------------------- | ---- | ----------- |
| label\_id<mark style="color:red;">\*</mark> | 1    | label id    |

#### Headers

| Name                                            | Type             | Description                                                       |
| ----------------------------------------------- | ---------------- | ----------------------------------------------------------------- |
| Accept<mark style="color:red;">\*</mark>        | application/json |                                                                   |
| Content-Type<mark style="color:red;">\*</mark>  | application/json |                                                                   |
| Authorization<mark style="color:red;">\*</mark> | Bearer {{token}} | you can find your access token [here](/cartat-api/get-started.md) |


---

# 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://docs.cartat.net/cartat-api/whatsapp-api/chats/chats-by-lable-id.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.
