Skip to main content

Hi, 

I was trying to call an employee agent through agent API but I am getting below error when passing bypassUser as true: 

"error": "AgentApiException",

 "message": "Bad Request: Invalid user ID provided on start session: " 

 

And when I am passing bypassUser as false, the employee agent's action is not getting called. 

 

Am I missing something? Please let me know! Thanks!

2 个回答
  1. 2025年10月29日 10:56

    So, if in your Agent API request, if you pass 

    bypassUser=true

    then Agent gets invoked as user associated to the agent as per documentation

    If you set this flag as false, the user associated to Connected app is referenced while invoking agent. 

    So make sure if you are setting this as true your agent user has necessary permissions

0/9000