Retrieve messages from a thread using cursor-based pagination.
Base64-encoded pagination cursor. If not provided, returns the latest 20 messages.
Controls the direction of message retrieval. When false (default), returns messages older than the cursor. When true, returns messages newer than the cursor.