Messages
Send and receive messages
Send text to a contact, group or channel. Put session in the body, using the name returned by session creation. linkPreview and linkPreviewHighQuality are optional. A successful response confirms acceptance only; use message.ack webhooks to confirm delivery or reading. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Send a text message to a contact, group, or channel
application/json- body
Send a text message to a contact, group, or channel
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthtext*stringMessage text content
1 <= lengthsession*stringWhatsApp session name
1 <= lengthreply_to?stringOptional message ID to reply to
mentions?array<string>Optional array of contact IDs to mention
linkPreview?booleanEnable link preview for links in the message
linkPreviewHighQuality?booleanEnable high-quality link preview (requires additional upload to WA servers)
Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sendText' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "15551234567", "text": "Your order is ready for collection.", "session": "me", "linkPreview": true, "linkPreviewHighQuality": false}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Send an image with optional caption. Supply file.url for a downloadable image or file.data containing base64; replace example asset URLs with your own. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Send an image to a contact, group, or channel
application/json- body
Send an image to a contact, group, or channel
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthsession*stringWhatsApp session name
1 <= lengthcaption?stringOptional caption for the media
reply_to?stringOptional message ID to reply to
mentions?array<string>Optional array of contact IDs to mention
file*Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sendImage' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "15551234567", "session": "me", "file": { "url": "https://your-server.example/assets/image.png", "mimetype": "image/png", "filename": "image.png" }}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Send a document or other file. Supply a downloadable file.url or base64 file.data, and include filename and mimetype where appropriate. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Send a file (document, PDF, etc.) to a contact, group, or channel
application/json- body
Send a file (document, PDF, etc.) to a contact, group, or channel
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthsession*stringWhatsApp session name
1 <= lengthcaption?stringOptional caption for the media
reply_to?stringOptional message ID to reply to
mentions?array<string>Optional array of contact IDs to mention
file*Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sendFile' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "15551234567", "session": "me", "file": { "url": "https://your-server.example/assets/receipt.pdf", "mimetype": "application/pdf", "filename": "receipt.pdf" }}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Send a voice or audio file using a downloadable file.url or base64 file.data. Use a format supported by the messaging engine. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Send a voice/audio message to a contact, group, or channel
application/json- body
Send a voice/audio message to a contact, group, or channel
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthsession*stringWhatsApp session name
1 <= lengthfile*reply_to?stringOptional message ID to reply to
Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sendVoice' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "15551234567", "session": "me", "file": { "url": "https://your-server.example/assets/note.ogg", "mimetype": "audio/ogg" }}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Send a video with optional caption using a downloadable file.url or base64 file.data. Replace example asset URLs with your own. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Send a video to a contact, group, or channel
application/json- body
Send a video to a contact, group, or channel
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthsession*stringWhatsApp session name
1 <= lengthcaption?stringOptional caption for the media
reply_to?stringOptional message ID to reply to
mentions?array<string>Optional array of contact IDs to mention
file*Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sendVideo' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "15551234567", "session": "me", "file": { "url": "https://your-server.example/assets/update.mp4", "mimetype": "video/mp4" }}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Send latitude (−90 to 90 degrees) and longitude (−180 to 180 degrees), with an optional title. Put session and chatId in the body. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Send a location/GPS coordinates to a contact, group, or channel
application/json- body
Send a location/GPS coordinates to a contact, group, or channel
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthsession*stringWhatsApp session name
1 <= lengthlatitude*numberLatitude coordinate (-90 to 90)
-90 <= value <= 90longitude*numberLongitude coordinate (-180 to 180)
-180 <= value <= 180title?stringOptional location title/label
reply_to?stringOptional message ID to reply to
Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sendLocation' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "15551234567", "session": "me", "latitude": 19.076, "longitude": 72.8777}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Share contact cards using contactsId, an array of WhatsApp contact IDs. Put session and destination chatId in the body. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Send contact information (vCard) to a contact, group, or channel
application/json- body
Send contact information (vCard) to a contact, group, or channel
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthsession*stringWhatsApp session name
1 <= lengthcontactsId*array<string>Array of contact IDs to share (as vCard)
1 <= itemsreply_to?stringOptional message ID to reply to
Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sendContactVcard' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "15551234567", "session": "me", "contactsId": [ "15557654321@c.us" ]}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Send a poll with a question and 2–12 text options. Set multipleAnswers to permit more than one answer. Put session and chatId in the body. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Send a poll/survey to a contact, group, or channel
application/json- body
Send a poll/survey to a contact, group, or channel
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthsession*stringWhatsApp session name
1 <= lengthpoll*Poll configuration with question and options
reply_to?stringOptional message ID to reply to
Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sendPoll' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "15551234567", "session": "me", "poll": { "name": "Which delivery day works for you?", "options": [ "Monday", "Tuesday" ], "multipleAnswers": false }}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Reply to a specific message using its ID in reply_to. Obtain that ID from message history or an incoming webhook. Put session and destination chatId in the body. Confirm delivery with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Reply to a specific message in a chat
application/json- body
Reply to a specific message in a chat
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthsession*stringWhatsApp session name
1 <= lengthtext*stringReply message text
1 <= lengthreply_to*stringMessage ID to reply to (required)
1 <= lengthmentions?array<string>Optional array of contact IDs to mention
Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/reply' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "15551234567", "session": "me", "text": "Your order is ready for collection.", "reply_to": "true_15551234567@c.us_ABC123"}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Mark messages in chatId as read for your connected session. Optionally target a messageId obtained from history or a webhook. This changes the read state visible to the sender.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Mark message(s) as seen/read in a chat
application/json- body
Mark message(s) as seen/read in a chat
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthsession*stringWhatsApp session name
1 <= lengthmessageId?stringOptional specific message ID to mark as seen
Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sendSeen' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "15551234567", "session": "me"}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Show a typing indicator in chatId for your connected session. Call stopTyping when finished; this does not send a message.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Show typing indicator in a chat
application/json- body
Show typing indicator in a chat
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthsession*stringWhatsApp session name
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/startTyping' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "15551234567", "session": "me"}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Stop the typing indicator in chatId for your connected session. This does not send a message.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Stop showing typing indicator in a chat
application/json- body
Stop showing typing indicator in a chat
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthsession*stringWhatsApp session name
1 <= lengthInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/stopTyping' \ -H 'Content-Type: application/json' \ -d '{ "chatId": "15551234567", "session": "me"}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}React to an existing message using messageId from history or a webhook. reaction is the emoji to apply; an empty string removes the reaction.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Add emoji reaction to a message
application/json- body
Add emoji reaction to a message
messageId*stringMessage ID to add reaction to
1 <= lengthsession*stringWhatsApp session name
1 <= lengthreaction*stringEmoji reaction (e.g., "😂", "❤️")
length <= 10Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X PUT 'https://wp-rapidapi.retentionstack.agency/v1/reaction' \ -H 'Content-Type: application/json' \ -d '{ "messageId": "true_15551234567@c.us_ABC123", "session": "me", "reaction": "👍"}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Set star=true to star a message or star=false to remove its star. Use messageId from history or a webhook and your connected session name.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
Star or unstar a message
application/json- body
Star or unstar a message
messageId*stringMessage ID to star/unstar
1 <= lengthsession*stringWhatsApp session name
1 <= lengthstar*booleantrue to star the message, false to unstar
Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X PUT 'https://wp-rapidapi.retentionstack.agency/v1/star' \ -H 'Content-Type: application/json' \ -d '{ "messageId": "true_15551234567@c.us_ABC123", "session": "me", "star": true}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Read message history for chatId and session. limit defaults to 100 and accepts 1–1000. downloadMedia is optional. This endpoint has no documented offset or cursor parameter. Engine response fields vary.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
chatId*stringPhone number (e.g., "1234567890" or "+1234567890"), group ID (e.g., "120363...@g.us"), or channel ID (e.g., "120363...@s.whatsapp.net"). Phone numbers will be automatically formatted with @c.us suffix.
1 <= lengthsession*stringWhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= lengthlimit?integerNumber of messages to retrieve (default: 100, max: 1000)
1 <= value <= 1000100downloadMedia?||Download media files with messages (default: false)
Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/messages?chatId=15551234567&session=me&limit=20'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}