First, initialize chat

You must initialize with `KustomerCore.init()` before you can execute any additional Core SDK methods

## Examples



## Syntax


ParameterTypeDescription
optionsObject**Optional** An object containing details about the messages you want to fetch. A breakdown of the `options` object is listed below.
function(callbackResponse, error)Function**Optional** A callback that is run after `KustomerCore.getHistoricalMessages()` completes. **callbackResponse** is an object returned to the callback function. See the `callbackResponse` section below to see the properties of the object. **error** is either `undefined` or a native JavaScript Error object.

## `options`

PropertyTypeDescription
conversationIdString**Required** The unique ID of the conversation that you are fetching message history for.
countNumber**Optional** The number of messages you want to fetch. The default value is 25.
beforeDate-time**Optional** Fetch messages before a given date. This is a ISO formatted string, for example, YYYY-MM-DDTHH:MM:SS.SSSZ

### `callbackResponse`

PropertyTypeDescription
messagesArray**Required** A list of messages found on that conversation. See **messages** below for an example of what this looks like.
satisfactionObject**Optional** An object with details about the satisfaction form message in this conversation. See **satisfaction** below for an example of what this looks like.

### `messages`



### `satisfaction`