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
{
"to":[
"from":{
"attachments":[
"conversation":{
}
"uri":
"id":
1267533910036
...
]
...
}
"type":
"SMS"
"creationTime":
"2020-06-26T23:56:57.000Z"
"readStatus":
"Read"
"priority":
"Normal"
...
]
"direction":
"Inbound"
"availability":
"Alive"
"subject":
"For the SBA"
"messageStatus":
"Received"
"conversationId":
6271905464763260000
...
}
"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
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
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