Get PubNub Channel History
get_pubnub_messagesRetrieve historical messages from PubNub channels with timetoken pagination. Returns message content and metadata in JSON.
Instructions
Fetches historical messages from one or more PubNub channels. Call this tool whenever you need to access past message history. Provide a list of channel names. Returns message content and metadata in JSON format. Supports pagination with start/end timetokens and count limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channels | Yes | List of channel names to fetch history from | |
| start | No | Timetoken delimiting the start (exclusive) of the time slice to pull messages from | |
| end | No | Timetoken delimiting the end (inclusive) of the time slice to pull messages from | |
| count | No | Number of historical messages to return per channel | |
| publishKey | Yes | Publish Key that can be obtained from your keyset by manage_keysets tool with parameter operation list or in PubNub admin portal | |
| subscribeKey | Yes | Subscribe Key that can be obtained from your keyset by manage_keysets tool with parameter operation list or in PubNub admin portal |