Getting X-egain-session dynamically

I am struggling with getting/setting the X-egain-session at runtime required for some of the API calls.

The URL parameter __eg_request_token __ (the space between n and _ is intentional) seems to be the magic value through the console.

When I hardcode the X-egain-session header the API call is successful on the article, but I cannot get/set the value dynamically at runtime.

Using <% __eg_request_token __ %> will prompt for the value in the console but I can’t seem to get and set the correct parameters at runtime.

I’ve tried the composite API as well, but I cannot seem to get the required value.

What am I missing?

Hi there,

Were you able to get a resolution to your issue?

Thanks, Mark

No. You have a solution? :wink:

I’m not sure. It depends on what you are trying to do. I’d be happy to talk to you about it, though, and try to figure something out.