Fetches messages for a conversation identified by the business phone number and the customer (target) phone number. Results are ordered newest first. Omit startKey on the first request. For each following batch, set startKey to the lastEvaluatedKey value returned by the previous response.
startKey. To fetch the next batch, take lastEvaluatedKey from the previous response and send it as startKey in the next request. That object has the shape { "messageId": "<string>", "createdAt": <number> } (Unix time in milliseconds).Use startKey only after the first page: set it to lastEvaluatedKey from the prior response to fetch the next batch.
Business / sender phone number ID
Customer (other party) phone number ID
Pagination cursor. Returned as lastEvaluatedKey in the response; send the same object as startKey on the next request to load the next batch. Shape: { "messageId": "<string>", "createdAt": <number> } (Unix milliseconds). Omit startKey on the first request.
Messages and pagination metadata