https://retellai.com/?utm_source=discord&utm_medium=seo logo
im trying to create a module in make to make an ap...
# ❓・ai-evy-support
s
@AI Evy im trying to create a module in make to make an api call to list all agents..what should i put in the url
a
Thanks for tagging me @sean_82673. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] List Voice Agents](https://docs.retellai.com/api-references/list-agents) [[2] List Chat Agents](https://docs.retellai.com/api-references/list-chat-agents) [[3] URGENT: 404 Error - Cannot Retrieve Agent agent_24a7b7382eca64e0fcbe118931 via API](https://discord.com/channels/1186424376300679209/1382991998654480505) ​
### Answer There are two separate endpoints depending on the agent type: For Voice Agents:
Copy code
GET /list-agents
[(1) ]() For Chat Agents:
Copy code
GET /list-chat-agents
[(2) ]() The base URL is ` [(3) ]() So your full URLs would be: - Voice agents: ` - Chat agents: ` Make sure to include the Authorization header with your API key in the format
Bearer YOUR_RETELL_API_KEY
. [(2) ]() , [(1) ]() Important: The
/list-agents
endpoint only returns voice agents, not chat agents. If you need all agents, you'll need to call both endpoints and merge the results on your end. [(7) ]()
s
how do i set up a call transfer to human