News & Announcements User Community Developer Community

Welcome to the RingCentral Community

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

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
Weird "Boundary" in presence response when requesting for multiple extensions
Tags: extension
Dec 15, 2016 at 5:13pm   •   3 replies  •  0 likes

When requesting presence information for multiple extensions (,1943182015,etc...), I get a weird "boundary" in the response that is messing everything up.

Content-Type: application/json    {    "response" : [ {      "href" : "";,      "status" : 200,      "responseDescription" : "OK"    }, {      "href" : "";,      "status" : 200,      "responseDescription" : "OK"    } ]  }  --Boundary_3591_2052943368_1481849425687  Content-Type: application/json    {    "uri" : "";,    "extension" : {      "uri" : "";,      "id" : 1868975015,      "extensionNumber" : "101"    },    "presenceStatus" : "Available",    "telephonyStatus" : "NoCall",    "userStatus" : "Available",    "dndStatus" : "TakeAllCalls"  }  --Boundary_3591_2052943368_1481849425687  Content-Type: application/json    {    "uri" : "";,    "extension" : {      "uri" : "";,      "id" : 1943182015,      "extensionNumber" : "10732"    },    "presenceStatus" : "Offline"  }  --Boundary_3591_2052943368_1481849425687

This appears to be a bug, and should be fixed. It would be really nice to be able to pull the 30 extension presences at a time, since the bulk presence request ( does not work. See for more information. If this is a "feature", could I get some explanation as why it exists?


3 Answers
answered on Mar 26, 2020 at 1:22pm  

Why on earth would you have decided on this design decision? Here's a real-life example on why multipart output is a bad idea:

The message-store API call allows for multiple IDs to be passed, great! That way I can check the status for a bunch of faxes in one go, and not worry about the rate limit.

However, if I use the .NET SDK, the call to MessageStore("string of ids") throws an error, because it isn't valid JSON being returned. Your own SDK does not work with a function of your API because of this dumb design decision. So I can either loop through each message ID (wasteful) or roll my own HttpClient code to parse this nonsense.

You should be returning an array of MessageStore objects, not individual ones separated by essentially nonsense.

answered on Dec 15, 2016 at 11:21pm  

answered on Dec 15, 2016 at 9:04pm  
It's indeed a feature and standard. It's the multipart/mixed content type.


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

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

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