Whatsapp Fetch Conversation
On this page
Request
Curl Example
Parameters
Name | Type | Required | Description |
---|---|---|---|
api_key | String | Yes | API key credential will be provided by Motict team. |
wa_id | String | Yes |
Your Whatsapp business phone number. Phone numbers are in E.164 format (e.g., 6285123456790) |
conversation_wa_id | String | Yes |
Target phone number or group id. Phone numbers are in E.164 format (e.g., 6285123456790) |
start | String | Yes | |
end | String | Yes | |
type | String | Yes | Type of conversation |
Response
The response contains JSON body with message status whether the request is success or error. And also the message id that has been sent to the user.
Body
Parameters
Name | Type | Description |
---|---|---|
id | String | Whatsaap Message ID will be used as call identifier for each request |
message | String | Success or error message. For error response, check Error section for mor details |
data.wa_id | String | The WhatsApp Number |
data.conversation_wa_id | String | Conversation WhatsApp Number |
data.conversation_type | String | The conversation type. (individual/group) |
data.start_at | String | Start date get conversation |
data.end_at | String | End date get conversation |
conversations | Array | |
conversation.type | String | Type of conversation type each message. (inbound/outbound) |
conversation.message_type | String | Type of chat. (text/image) |
conversation.text.body | String | message |
conversation.image.link | String | URL image location |
conversation.image.caption | String | Caption on image |
conversation.timestamp | String | Date time of message |