I may have misunderstood PAT, I thought PAT was a per-agent access token, which means I would have to generate an access token for each agent, track those access tokens somewhere in my system, and use the one applicable for that agent for each call made by my api.
I can get an access token if I use the onIdentityFetched with the client ID on the Agent Chat Details Widget, and I can get the thread_id if I use the Agent Chat Actions. But for the life of me, I can’t seem to get both the token AND the thread id in one place (either the Agent Chat Actions or the Agent Chat Details Widget).
At this point I would settle for either one, but I need both pieces of information!
In the Details Widget I get ALL threads for that chat_id, and I can’t see a way to figure out the current one I’m on.
In the Agent Chat Action you are passing the current thread_id but I can’t get the token…
Sorry, but this is getting very frustrating.