How to get x-journey-session-id

Hi

Is there any api or command to get x-journey-session-id current authenticated live chat? I am required to use /api/v2/webdeployments/token/revoke endpoint to revoke the session however It needs x-journey-session-id.

Thanks

Hi,

There is no api as such to get that info.
Alternatively, you could define your own attribute(s) (in Messenger database). See doc for on getter and setter or implement your own storage.
Then re-use that attribute later when required.

This said, you don't have to set up this value.
When journey context is not set, the service will reuse the values initially configured when initiating the user session.
This is true for other journey context attributes.
Just don't provided them at logout unless you need to.

Hope this helps,

Regards,
V.P.