Chats

Load older messages

post/v1/accounts/{account_id}/chats/{chat}/history

Request

  • Base URL: https://api.whatsmcp.com
  • URL: https://api.whatsmcp.com/v1/accounts/{account_id}/chats/{chat}/history
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Path parameters

account_idstring required
chatstring required

Request body

countinteger

how many older messages to ask the phone for, 1-500; defaults to 50

Response

OK

answeredboolean required

the phone answered in time; false means it may still answer later (it must be online) — read the chat again in a minute

importedinteger required

of those, how many were new here; 0 with answered=true usually means you reached the start of what the phone holds

receivedinteger required

messages the phone sent back

statusstring required

ok (the request reached the phone) or refused (nothing was asked)

Changes

No recorded changes to this operation across all 1 revision of this API.