Get previous user session details in webhook call

We have an application and it communicates through the webhook. I want to access the previous communication history of the same webhook user sent previously. Appreciate your help with this.

I tried to call the session history API passing webhook from id as userId in API call. But it didn’t work.
https://developer.kore.ai/docs/bots/api-guide/sessions-api/
https://developer.kore.ai/docs/bots/channel-enablement/adding-webhook-channel/