# Api to fetch live agent ID through Agent

**URL:** <https://tiledesk.discourse.group/t/api-to-fetch-live-agent-id-through-agent/449>\
**Category:** Community Support\
**Created:** [June 14, 2024, 7:27am UTC](https://tiledesk.discourse.group/t/api-to-fetch-live-agent-id-through-agent/449 "2024-06-14T07:27:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![salman](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@salman](https://tiledesk.discourse.group/u/salman)\
**Post date:** [June 14, 2024, 7:27am UTC](https://tiledesk.discourse.group/t/api-to-fetch-live-agent-id-through-agent/449/1 "2024-06-14T07:27:00Z")

</div>

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
