cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
246
Views
0
Helpful
1
Replies

How to GET all Direct Messages through API?

PLo1
Level 1
Level 1

Does anyone know how to get all the direct messages via API?  It appears to only send back the latet 100 or so messages.  I have reviewed the API documentation along with the pagination feature, but the response from these API doesn't return a "link" for the next page.  

I have tried both 

Messages - List Messages | Webex for Developers

https://webexapis.com/v1/messages?roomId=********************&max=100

Messages - List Direct Messages | Webex for Developers

https://webexapis.com/v1/messages/direct?personEmail=xxx@xxx.com

Have anyone been able to extract all of their direct messages via these APIs?

 

1 Reply 1

Janos Benyovszki
Cisco Employee
Cisco Employee

@PLo1 I just tested the https://developer.webex.com/docs/api/v1/messages/list-messages API and with it I was able to go up to max=1000 and I got the link in the response header. Can you please test if you get the same result? If not, feel free to open a support case and we'll check further - https://developer.webex.com/support .