https://retellai.com/?utm_source=discord&utm_medium=seo logo
we use method get-agent for getting agent via API ...
# ❓・ai-evy-support
i
@AI Evy we use method get-agent for getting agent via API https://docs.retellai.com/api-references/get-agent if we try to get a text agent, we got error HTTP 400 {"status":"error","message":"Invalid agent channel"} if we try to get a voice agent, all is fine what is happening?
a
Thanks for tagging me @iraql0bster.. I'll look through relevant sources and get back to you shortly.
### Answer The official documentation for the get-agent API method demonstrates retrieving voice agents, not text agents, and all provided examples and response schemas reference properties specific to voice agent configurations (such as voice_id, voice_model, ambient_sound, etc.) [(1) ]() [(2) ]() . There is no documentation or schema in these sources that describes support for text agents with this endpoint. The HTTP 400 error with the message "Invalid agent channel" when attempting to fetch a text agent indicates that the get-agent API is not designed to handle text agents, only voice agents. This aligns with the documented behavior of the endpoint .
​ To learn more, see the sources I considered: [[1] Get Agent](https://docs.retellai.com/api-references/get-agent) [[2] List Agents](https://docs.retellai.com/api-references/list-agents) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
i
@AI Evy how can I handle text agents via API?
a
Thanks for the follow-up, @iraql0bster.. I'll get back to you soon.
### Answer There is no explicit documentation in the provided sources describing how to handle text agents via the API. The available API references and examples focus on voice agent creation and management, including properties like voice_id, voice_model, and other voice-related configurations [(1) ]() . Check out these potentially useful sources: [API Integration]() , [Create Agent]() If you'd like a general answer based on my knowledge, let me know.
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.