Skip to Content
WhatsApp API by Retention Stack

Messages

Send and receive messages

Send text message

POST
/v1/sendText

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.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Send a text message to a contact, group, or channel

application/json
  1. body

Send a text message to a contact, group, or channel

chatId*string

Phone 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.

Length1 <= length
text*string

Message text content

Length1 <= length
session*string

WhatsApp session name

Length1 <= length
reply_to?string

Optional message ID to reply to

mentions?array<string>

Optional array of contact IDs to mention

linkPreview?boolean

Enable link preview for links in the message

linkPreviewHighQuality?boolean

Enable high-quality link preview (requires additional upload to WA servers)

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -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}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Send image

POST
/v1/sendImage

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.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Send an image to a contact, group, or channel

application/json
  1. body

Send an image to a contact, group, or channel

chatId*string

Phone 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.

Length1 <= length
session*string

WhatsApp session name

Length1 <= length
caption?string

Optional caption for the media

reply_to?string

Optional message ID to reply to

mentions?array<string>

Optional array of contact IDs to mention

file*

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -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"  }}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Send file

POST
/v1/sendFile

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.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Send a file (document, PDF, etc.) to a contact, group, or channel

application/json
  1. body

Send a file (document, PDF, etc.) to a contact, group, or channel

chatId*string

Phone 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.

Length1 <= length
session*string

WhatsApp session name

Length1 <= length
caption?string

Optional caption for the media

reply_to?string

Optional message ID to reply to

mentions?array<string>

Optional array of contact IDs to mention

file*

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -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"  }}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Send voice message

POST
/v1/sendVoice

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.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Send a voice/audio message to a contact, group, or channel

application/json
  1. body

Send a voice/audio message to a contact, group, or channel

chatId*string

Phone 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.

Length1 <= length
session*string

WhatsApp session name

Length1 <= length
file*
reply_to?string

Optional message ID to reply to

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -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"  }}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Send video

POST
/v1/sendVideo

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.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Send a video to a contact, group, or channel

application/json
  1. body

Send a video to a contact, group, or channel

chatId*string

Phone 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.

Length1 <= length
session*string

WhatsApp session name

Length1 <= length
caption?string

Optional caption for the media

reply_to?string

Optional message ID to reply to

mentions?array<string>

Optional array of contact IDs to mention

file*

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -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"  }}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Send location

POST
/v1/sendLocation

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.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Send a location/GPS coordinates to a contact, group, or channel

application/json
  1. body

Send a location/GPS coordinates to a contact, group, or channel

chatId*string

Phone 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.

Length1 <= length
session*string

WhatsApp session name

Length1 <= length
latitude*number

Latitude coordinate (-90 to 90)

Range-90 <= value <= 90
longitude*number

Longitude coordinate (-180 to 180)

Range-180 <= value <= 180
title?string

Optional location title/label

reply_to?string

Optional message ID to reply to

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -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}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Send contact vCard

POST
/v1/sendContactVcard

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.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Send contact information (vCard) to a contact, group, or channel

application/json
  1. body

Send contact information (vCard) to a contact, group, or channel

chatId*string

Phone 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.

Length1 <= length
session*string

WhatsApp session name

Length1 <= length
contactsId*array<string>

Array of contact IDs to share (as vCard)

Items1 <= items
reply_to?string

Optional message ID to reply to

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sendContactVcard' \  -H 'Content-Type: application/json' \  -d '{  "chatId": "15551234567",  "session": "me",  "contactsId": [    "15557654321@c.us"  ]}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Send poll

POST
/v1/sendPoll

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.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Send a poll/survey to a contact, group, or channel

application/json
  1. body

Send a poll/survey to a contact, group, or channel

chatId*string

Phone 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.

Length1 <= length
session*string

WhatsApp session name

Length1 <= length
poll*

Poll configuration with question and options

reply_to?string

Optional message ID to reply to

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -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  }}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Reply to message

POST
/v1/reply

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.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Reply to a specific message in a chat

application/json
  1. body

Reply to a specific message in a chat

chatId*string

Phone 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.

Length1 <= length
session*string

WhatsApp session name

Length1 <= length
text*string

Reply message text

Length1 <= length
reply_to*string

Message ID to reply to (required)

Length1 <= length
mentions?array<string>

Optional array of contact IDs to mention

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -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"}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Mark message as seen

POST
/v1/sendSeen

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.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Mark message(s) as seen/read in a chat

application/json
  1. body

Mark message(s) as seen/read in a chat

chatId*string

Phone 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.

Length1 <= length
session*string

WhatsApp session name

Length1 <= length
messageId?string

Optional specific message ID to mark as seen

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/sendSeen' \  -H 'Content-Type: application/json' \  -d '{  "chatId": "15551234567",  "session": "me"}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Start typing indicator

POST
/v1/startTyping

Show a typing indicator in chatId for your connected session. Call stopTyping when finished; this does not send a message.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Show typing indicator in a chat

application/json
  1. body

Show typing indicator in a chat

chatId*string

Phone 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.

Length1 <= length
session*string

WhatsApp session name

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/startTyping' \  -H 'Content-Type: application/json' \  -d '{  "chatId": "15551234567",  "session": "me"}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Stop typing indicator

POST
/v1/stopTyping

Stop the typing indicator in chatId for your connected session. This does not send a message.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Stop showing typing indicator in a chat

application/json
  1. body

Stop showing typing indicator in a chat

chatId*string

Phone 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.

Length1 <= length
session*string

WhatsApp session name

Length1 <= length

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/stopTyping' \  -H 'Content-Type: application/json' \  -d '{  "chatId": "15551234567",  "session": "me"}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Set message reaction

PUT
/v1/reaction

React to an existing message using messageId from history or a webhook. reaction is the emoji to apply; an empty string removes the reaction.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Add emoji reaction to a message

application/json
  1. body

Add emoji reaction to a message

messageId*string

Message ID to add reaction to

Length1 <= length
session*string

WhatsApp session name

Length1 <= length
reaction*string

Emoji reaction (e.g., "😂", "❤️")

Lengthlength <= 10

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X PUT 'https://wp-rapidapi.retentionstack.agency/v1/reaction' \  -H 'Content-Type: application/json' \  -d '{  "messageId": "true_15551234567@c.us_ABC123",  "session": "me",  "reaction": "👍"}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Star or unstar message

PUT
/v1/star

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.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Request Body

Star or unstar a message

application/json
  1. body

Star or unstar a message

messageId*string

Message ID to star/unstar

Length1 <= length
session*string

WhatsApp session name

Length1 <= length
star*boolean

true to star the message, false to unstar

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -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}'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}

Get messages

GET
/v1/messages

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.

Authorization

BearerAuth
headerAuthorizationBearer <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.

Query Parameters

chatId*string

Phone 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.

Length1 <= length
session*string

WhatsApp session name. With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.

Length1 <= length
limit?integer

Number of messages to retrieve (default: 100, max: 1000)

Range1 <= value <= 1000
Default100
downloadMedia?||

Download media files with messages (default: false)

Response Body

Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.

application/json
  1. response
success*false
Value infalse
error*
timestamp*string
Formatdate-time
Example Request
curl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/messages?chatId=15551234567&session=me&limit=20'
Example Response
{  "success": true,  "data": {},  "timestamp": "2026-11-02T00:00:00.000Z"}