--- title: "Get message center data" slug: "webview-get-message-center-data" description: "Retrieve push notification history with getMessageCenterData, filter by date range, limit, and custom user identifiers." updated: 2026-02-11T11:18:31Z published: 2026-02-11T11:18:31Z canonical: "academy.insiderone.com/webview-get-message-center-data" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Get message center data The getMessageCenterData method allows you to retrieve messages from the Message Center API where each message is represented as a dictionary. | Parameter | Type | Description | Required | | --- | --- | --- | --- | | startDate | Date | Messages after this date (inclusive) | Yes | | endDate | Date | Messages before this date (exclusive) | Yes | | limit | Integer | Batch size (max # of messages) | Yes | **Method signature** ```typescript getMessageCenterData(startDate: date, endDate: date, limit: int) : Promise<[any]> ``` **Method example** ```typescript const endDate = new Date(); const startDate = new Date(); startDate.setDate(endDate.getDate() - 30); const messages = await window.insider.getMessageCenterData(startDate, endDate, 50); ```