https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can I filter the list-chat by phone number
# ❓・ai-evy-support
s
@AI Evy Can I filter the list-chat by phone number? I don't want to get all chats and then filter from there
a
Thanks for tagging me @summerpuppet471. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] List Chat](https://docs.retellai.com/api-references/list-chat) [[2] List Chat Agents](https://docs.retellai.com/api-references/list-chat-agents) ​
### Answer Based on the available documentation, the List Chat endpoint (
GET /list-chat
) does not support filtering by phone number or any other query parameters. [(1) ]() The documentation shows it simply returns all chats without filter options:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatResponses = await client.chat.list() ;
console.log(chatResponses) ;
For comparison, the List Chat Agents endpoint does support pagination parameters (
pagination_key
,
pagination_key_version
) , but the List Chat endpoint does not document similar filtering capabilities. [(2) ]() Currently, you would need to retrieve all chats and filter client-side, or you may want to reach out to Retell support to request this as a feature: - [Contact Sales]() - [Retell AI GitHub]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.