News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
How can I return all messages with the same conversation ID
Tags: sms and text messaging, rest api
Jul 5, 2020 at 1:40pm   •   3 replies  •  0 likes
James Peragine
I am attempting to return all messages in an SMS conversation using the API and conversation ID.

This is returning not records even though I am getting the conversation ID directly from the previous API call.


My main call

https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store?dateFrom=2020-02-05&dateTo=2020-07-05&direction=Inbound&distinctConversations=true&messageType=SMS&page=1&perPage=100


Returns



{
"id":
1267533910036

"to":[
...
]

"from":{
...
}
"type":
"SMS"
"creationTime":
"2020-06-26T23:56:57.000Z"
"readStatus":
"Read"
"priority":
"Normal"

"attachments":[
...
]
"direction":
"Inbound"
"availability":
"Alive"
"subject":
"For the SBA"
"messageStatus":
"Received"
"conversationId":
6271905464763260000

"conversation":{
...
}
"lastModifiedTime":
"2020-06-28T00:12:27.099Z"
}

When I then try to use the conversation ID to get all messages with this conversation ID it returns no records

https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store?conversationId=6271905464763260000&dateFrom=2020-02-05&dateTo=2020-07-05&direction=Inbound&distinctConversations=true&messageType=SMS&page=1&perPage=100




What am I doing wrong?
3 Answers
answered on Jul 12, 2020 at 9:26am  

That also returns no records


 0
answered on Jul 7, 2020 at 8:31am  

Sorry, I should have mentioned that I tried that too and is also returns zero results.


Are you saying that If I use the ID in the conversation object as an argument in the API call for Conversation ID I should return the records from that conversation? It also returns zero record results.



 0
answered on Jul 5, 2020 at 10:16pm  

Don't use the "conversationId": 6271905464763260000. It is deprecated and present only for legacy purpose. Use the "id" in the "conversation" object instead.


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us