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
Parameter [text] value is invalid
Tags: rest api
Jul 29, 2016 at 5:56am   •   2 replies  •  0 likes

Got a "Parameter [text] value is invalid" response message when trying to send SMS via API, what could be the cause of this? There was a linefeed character in the text, I removed it by formatting the text via code but still the error persist.

2 Answers
answered on Jun 24, 2019 at 2:34am  

You need to provide a snippet of you text what you are trying to send. There should not be any issues in a normal case if you text is within the allowed range.

Without getting a snippet of your text it's very difficult to assume what is going wrong.

Here is a very basic sample to API body of SMS API :


{"from":{"phoneNumber":"<your phone From number>"},"to":[{"phoneNumber":"<your To phone number>"},{"phoneNumber":"<your To phone number>"}],"text":"Test sms test"}

answered on Jul 29, 2016 at 8:31am  
Please provide your complete request and response (along with headers).

Have you tried using just a simple text string? The "text" property must be: Text of a message. Max length is 1000 symbols (2-byte UTF-16 encoded). If a character is encoded in 4 bytes in UTF-16 it is treated as 2 characters, thus restricting the maximum message length to 500 symbols.

You can see the documentation for this API resource here:!#RefSMSMessages.html


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