Skip to main content

Is there a way to get notifications of status changes of outbound SMS. As in we have sent an SMS through the API.. can we subscride to a status change event, becuase initially what you get when yuou create the message is 'Queued' is there a way to register (subscribe) to an event/notification that lets you know that the message sent. Looking at the Notifications Types, is it to do with Message Event? as in I would have to subscribe to /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store?type=SMS&direction=Outbound

to receive status changes on sent messages? would that be correct.

and for Inbound SMS the event is

/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/instant?type=SMS

I'm confused as to why inbound SMS wouldn't just be (whats the difference between Message Event and Instant Message Event?)

/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store?type=SMS&direction=Inbound

and ultimately if I would like to subscribe to any Outbound SMS status changes and any Inbound SMS, can I just do one subscription and 2 event Filters? something like


POST .../restapi/v1.0/subscription
{
"eventFilters": [

"/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store?type=SMS&direction=Inbound",

"/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store?type=SMS&direction=Outbound",

],
"deliveryMode": {
"transportType": "WebHook"
}
}


The event is for getting notified when something has changed in the user message store such as an inbound message readStatus is set "Read", a message is deleted, an outbound message messageStatus is changed etc. You will only get the message id in the payload and you will have to call the message store using the id to get the changed value.

While the /instant?type=SMS is purely for receiving inbound text message with the text and other properties of the message.


I don't mind too much that the message-store event type just returns the Message id,

I can then make a call to get the full details, but I can't see any mention of a message id in the docs here :

Office API Reference | RingCentral Developers


So I'm a bit confused, just seems to return counts? not message ids?

It has uuid notificationId/ownerId/subscriptionId/accountid/extensionid but no mention of messageId/s


How long do apps typically take to get approved? We've been waiting a few days. Any chance of helping us to get it moving along 🙂 Would like to get some real users up and running.

Thanks!



App client id or app name?


Reply