Alright @Emmad_Altaf got a lengthy response from the platform team ![]()
- If you only needs to get all messages from one thread, you can use
Return all Messagesendpoint and pass thethread_idquery parameter: Nylas v3 Email, Calendar, and Contacts API docs | Nylas Docs -
- If you only needs to get the number of messages from one thread, you can use
Return a threadendpoint. There is a field calledmessage_idsin the response. The number of messages is the size ofmessage_idsarray: Nylas v3 Email, Calendar, and Contacts API docs | Nylas Docs
- If you only needs to get the number of messages from one thread, you can use
-
- We do not support expanding message bodies for
Return all threads, because the pagination will become very complex. We will have to paginate both the messages in each thread, and the thread list itself.
- We do not support expanding message bodies for
-
- However, there is a way to get around this problem. You can call
Return all Threadsfirst. For each thread returned, then expand the messages by making anotherReturn all messagescall.
- However, there is a way to get around this problem. You can call
Hope this helps ![]()