We are trying to make API calls to Genesys through our Node.js application. And for one of that, we need the Agent's Id. We figured that the conversationID is stored in the cookies. So, I was wondering if the agentID is stored in cookies as well?. If yes, what is the cooking name?
P.S. I did check in the cookies list, couldn't find the agentID parameter.
I'm not clear what you're trying to accomplish. The API itself doesn't use cookies. Could you elaborate on which API endpoint you're trying to use and what data you're trying to retrieve?
Sure.
/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing - this is the endpoint I'm trying to connect to. We were able to retrieve conversationId from the browser cookies, which I believe Genesys is storing?. I wanted to know if we can fetch the communicaitonId (for our requirement - the agentID) in a similar way?, provided Genesys is storing that in the cookies as well, which I don't think is happening.
Please don't read values any cookies you didn't create; cookies created by Genesys apps aren't meant for your app and aren't a supported interface for you to access data and can change and at any time without notice.
See the Conversations APIs for a list of API resources you can use with conversations. Specifically, use GET /api/v2/conversations/chats to get a list of active chats for the logged in user. This will give you the conversation IDs for any chats to which the agent is connected. That's your entry point to any further reading or manipulation of the conversation.