# Label or unlabel a chat **POST /chat/{chat_jid}/label** Apply or remove a label from a chat conversation ## Servers - http://localhost:3000: http://localhost:3000 () ## Authentication methods - Basic auth ## Parameters #### Path parameters - **chat_jid** (string) Chat JID (e.g., phone@s.whatsapp.net for individual or groupid@g.us for group) ## Body parameters Content-type: application/json - **label_id** (string) Unique identifier for the label - **label_name** (string) Display name for the label - **labeled** (boolean) Whether to apply (true) or remove (false) the label ## Responses ### 200: OK #### Body Parameters: application/json (object) - **code** (string) - **message** (string) - **results** (object) ### 400: Bad Request #### Body Parameters: application/json (object) - **code** (string) HTTP Status Code - **message** (string) Detail error message - **results** (object) additional data ### 401: Unauthorized #### Body Parameters: application/json (object) - **code** (string) HTTP Status Code - **message** (string) Detail error message - **results** (object) additional data ### 404: Chat Not Found #### Body Parameters: application/json (object) - **code** (string) HTTP Status Code - **message** (string) Detail error message - **results** (object) additional data ### 500: Internal Server Error #### Body Parameters: application/json (object) - **code** (string) SYSTEM_CODE_ERROR - **message** (string) Detail error message - **results** (object) additional data [Powered by Bump.sh](https://bump.sh)