get_messages
Retrieve messages from an Instagram conversation thread, including sender, text, media type, and timestamps; paginate with amount and offset.
Instructions
Get messages from a thread.
Args: thread_id: ID of the thread to get messages from. amount: Maximum number of messages to fetch (default: 20). offset: Skip the N most recent messages (default: 0).
Returns: Object with 'thread_id', 'messages' (sender, text, media_type, timestamp, seen_since when viewer's, share for a shared reel/post/story), 'count', 'offset', 'has_more'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | ||
| offset | No | ||
| thread_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||