How do I add a line break in my SMS message?

Updated 2 weeks ago

To add a new line in the message body of outgoing SMS messages, there are a few options:

  • Use "<br>" in the message body e.g. "Here is my first line<br>here is my second line"
  • Encode a new line as %0a. For example, you could send a message like the following:

"Body=Here+is+my+first+line%0aHere+is+my+second+line"

  • Use a new line in your body string e.g. 

"Body=Here+is+my+first+line

Here+is+my+second+line"

  • If you're using a JSON request body, you can use "\r\n" e.g. "body" : "Here is my first line\r\nhere is my second line",

How Did We Do?