# Get messages from a specific chat **GET /chat/{chat_jid}/messages** Retrieve messages from a specific chat conversation with filtering options ## 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) #### Query parameters - **limit** (integer) Maximum number of messages to return - **offset** (integer) Number of messages to skip (for pagination) - **start_time** (string(date-time)) Filter messages from this timestamp (ISO 8601 format) - **end_time** (string(date-time)) Filter messages until this timestamp (ISO 8601 format) - **media_only** (boolean) Only return messages with media content - **is_from_me** (boolean) Filter messages by sender (true for messages sent by you, false for received messages). When both media_only=true and isFromMe=false are provided, media_only takes precedence and will return all media messages regardless of sender. - **search** (string) Search messages by content text ## 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)