Api to fetch live agent ID through Agent

Hi Team,

Need clarification on the following two questions:

  1. Can we identify agent id from agent email address ? Is there any API to fetch Agent ID from Agent email address ?

  2. Can we transfer the chat to a preferred live agent ? Like if customer -1 wants always to chat with Agent-4 .
    Basically the use case is like, There will be customer to agent mapping already defined and the chats must be allocated only to the specified agents