You need to implement this endpoint on your side. It must return an array of messages belonging to a conversation between two profiles. This endpoint is called whenever a conversation is enqueued, to keep your chat history and ours in sync. Your endpoint must implement the Chat History OpenAPI webhook specification. You can review the full example to get a better understanding of what needs to be implemented.

Full Example

Let’s simulate a request to https://your-domain.com/my/path?userProfileId=1234&personaProfileId=9999&lastMessageDate=2021-01-25T15:45:00Z. The endpoint will reply with the following response body (JSON):
{
  "messages": [
    {
      "id": "1000",
      "sender": "PERSONA",
      "type": "TEXT",
      "date": "2021-01-25T15:48:00Z",
      "text": "Hey there!"
    },
    {
      "id": "1001",
      "sender": "PERSONA",
      "type": "TEXT",
      "date": "2021-01-25T15:48:20Z",
      "text": "how are you?"
    },
    {
      "id": "1002",
      "sender": "PERSONA",
      "type": "ACTION_POKE",
      "date": "2021-01-25T15:48:30Z"
    },
    {
      "id": "1003",
      "sender": "USER",
      "type": "TEXT",
      "date": "2021-01-25T15:49:20Z",
      "text": "good and you?"
    }
  ]
}