Get Messages Of Chat

Get Messages Of Chat

GET https://api.wapim.io/api/v1/whatsapp/chat

Query Parameters

Name
Type
Description

page

String

Page of chat

chat_id

String

Phone Number or Group ID

Headers

Name
Type
Description

Token*

YOUR_WAPIM_TOKEN

{
            "url": "https://cdn.wapim.io/media/videos/3A80B5B6BFF***.mp4",
            "width": 480,
            "height": 848,
            "caption": "****",
            "chat_id": "14155238886",
            "from_me": false,
            "is_group": true,
            "phone_id": "****",
            "mime_type": "video/mp4",
            "timestamp": 167635***,
            "event_name": "VideoMessage",
            "message_id": "3A80B5B6BFF***",
            "file_length": 3946620,
            "instance_id": "436e6b56-d25f-***",
            "thumbnail_url": "https://cdn.wapim.io/media/videos/3A80B5B6BFF***_thumbnail.jpg",
            "to_phone_number": "****",
            "from_phone_number": "****"
        },
        {
            "url": "https://cdn.wapim.io/media/images/ABB3A31F77193EE9E7AD45***.jpg",
            "width": 1080,
            "height": 973,
            "caption": "****",
            "chat_id": "14155238886",
            "from_me": false,
            "is_group": true,
            "phone_id": "****",
            "mime_type": "image/jpeg",
            "timestamp": 167634***,
            "event_name": "ImageMessage",
            "message_id": "ABB3A31F77193EE9E7AD45***",
            "file_length": 65151,
            "instance_id": "436e6b56-d25f-457b-****",
            "thumbnail_url": "https://cdn.wapim.io/media/images/ABB3A31F77193EE9E7AD45***_thumbnail.jpg",
            "to_phone_number": "****",
            "from_phone_number": "****"
        },
curl
    -X GET https://api.wapim.io/api/v1/whatsapp/chat?chat_id=14155238886
    -H 'Token: YOUR_WAPIM_TOKEN'

Last updated