https://retellai.com/?utm_source=discord&utm_medium=seo logo
The retell AI SMS api only returns 50 records at a...
# 💬・general
c
@AI Evy The retell AI SMS api only returns 50 records at a time now? Is this a recent change?
a
​ To learn more, see the sources I considered: [[1] List Calls](https://docs.retellai.com/api-references/list-calls) ​
### Answer --- Based on the available sources, I don't have specific documentation about an SMS API endpoint that lists SMS/chat records with pagination limits. However, the List Calls API does have a default limit of 50 records with a max of 1000: [(1) ]() >
limit
- Limit the number of calls returned. Default 50, Max 1000. To retrieve more than 1000, use
pagination_key
to continue fetching the next page. If you're querying chat/SMS records, a similar pagination pattern may apply. You can use the
pagination_key
parameter to fetch additional pages beyond the default 50. I don't have information in the sources about whether this is a recent change or if it has always been this way for SMS-specific endpoints. Check out these potentially useful sources: - [Create Outbound SMS]() - [List Calls]() - [Send & receive SMS]() Would you like me to provide a general answer, or would you prefer to reach out to Retell support for specifics on the SMS/chat listing API?
Thanks for tagging me @clientele. 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.
### Answer The documentation for the 1000 call limit is in the List Calls API reference. [(1) ]() Specifically, the
limit
query parameter states: > Limit the number of calls returned. Default 50, Max 1000. To retrieve more than 1000, use pagination_key to continue fetching the next page. You can find this at: [List Calls]()
c
@AI Evy where can I find the exact documentation on the 1000 calls returned
a
Thanks for the follow-up, @clientele. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] List Calls](https://docs.retellai.com/api-references/list-calls) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy Im actually talking about Chat/SMS limits not calls
a
Thanks for the follow-up, @clientele. I'll get back to you soon.
### Answer ### Answer For the List Chat API (
GET /list-chat
) , the documentation does not specify a
limit
parameter or pagination options. [(1) ]() However, the List Chat Agents API does have pagination parameters: [(2) ]() -
limit
- Can range between 1 and 1000, with a default of 1000 -
pagination_key
- Used to continue fetching the next page The List Chat endpoint (
client.chat.list()
) returns chat records but the available documentation doesn't explicitly document a limit parameter for this endpoint. [(1) ]() If you're experiencing a 50-record limit that wasn't there before, this may be a recent change not yet reflected in the documentation I have access to. Check out these potentially useful sources: - [List Chat]() - [List Chat Agents]() For confirmation on whether this is a recent change to the Chat/SMS listing API, I'd recommend reaching out to Retell support directly: - Visit [Contact Sales]() - Visit [)
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 Chat](https://docs.retellai.com/api-references/list-chat) [[2] List Chat Agents](https://docs.retellai.com/api-references/list-chat-agents) ​
c
@AI Evy is this true? "The API simply returns all chats as a flat array with no pagination options"
a
Thanks for the follow-up, @clientele. I'll get back to you soon.
### Answer Based on the List Chat API documentation, the endpoint
GET /list-chat
does not show any query parameters for
limit
or
pagination_key
. [(1) ]() The documented response format shows chats returned as an array:
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) ;
The response example shows a flat array structure
[{ "chat_id": "...", ... }]
without any pagination metadata. However, the documentation I have access to does not explicitly state whether there is a limit or that "all chats" are returned. If you're seeing exactly 50 records returned, there may be an undocumented default limit in place. For confirmation on the actual behavior and any recent changes, I'd recommend reaching out to Retell support: - Visit [Contact Sales]() - Visit [)
​ To learn more, see the sources I considered: [[1] List Chat](https://docs.retellai.com/api-references/list-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy Im being told this: Conclusion: There is currently no way to fetch more than the default 50 chats via the Retell API directly. The API is strictly limited and does not support pagination or limits for the Chat endpoint, unlike the Calls endpoint.
a
Thanks for the follow-up, @clientele. I'll get back to you soon.
### Answer ### Answer I don't have documentation in my available sources that explicitly confirms or denies the 50-chat limit or the lack of pagination for the List Chat endpoint. The sources I have access to discuss: - The List Calls API pagination using
pagination_key
and a default limit of ~1000 records [(1) ]() [(2) ]() [(3) ]() - The Create Chat Completion workflow, which covers creating chats and retrieving chat details [(4) ]() However, none of these sources contain specific details about the List Chat endpoint's pagination behavior or limits. If you're being told there's a strict 50-chat limit with no pagination support, this is information I cannot verify or contradict based on my available documentation. Check out these potentially useful sources: - [List Chat]() - [Create Chat Completion]() - [List Calls]() For definitive confirmation on Chat API limitations, I'd recommend reaching out to Retell support directly: - Visit [Contact Sales]() - Visit [) Would you like me to provide a general answer based on my knowledge, or would you prefer to wait for official confirmation from Retell?
​ To learn more, see the sources I considered: [[1] List calls endpoint broken](https://discord.com/channels/1186424376300679209/1313240095549296802) [[2] Unable to get call logs from API](https://discord.com/channels/1186424376300679209/1308107545453264896) [[3] HI,, is there any limits on api...](https://discord.com/channels/1186424376300679209/1328940416594083972) [[4] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
Hello @clientele , the api will be updated and will be available soon.
c
Do you have an ETA on that?
Thanks!