Skip to Main Content
Status Under review
Created by Brandon Hein
Created on May 4, 2022

Add ExtensionId to message-store phone number objects

I'm listening to the /account/~/extension/~/message-store/instant?type=SMS webhook events, to obtain inbound text messages per extension. I have ALL extensions on my account coming into one endpoint.

It'd also follow a 'standard' thats close to the Telephony events.


Current:

"body": {
"id": "{sms id}",
"to": [{
"phoneNumber": "{my phone number}",
"name": "{my name}",
"location": "{approx phone location}",
"target": true
}],
"from": {
"phoneNumber": "{their phone number}",
"location": "{approx phone location}"
}
}

Idea/Proposal:

"body": {
"id": "{sms id}",
"to": [{
"extensionId": "{my extension id}", <---- just need add this
"phoneNumber": "{my phone number}",
"name": "{my name}",
"location": "{approx phone location}",
"target": true
}],
"from": {
"phoneNumber": "{their phone number}",
"location": "{approx phone location}"
}
}