Calculate SMS Segments
Returns how many SMS segments a message will use, matching the Twilio segment calculator. Provide either a raw message, or a templateId with variables (the template is rendered first, then counted). This endpoint does not send anything.
Authorizations
Body
Response
Segment usage for the message.
Encoding the message is sent with. Any non-GSM-7 character (emoji, smart quotes, most CJK) forces the whole message to UCS-2.
GSM-7, UCS-2 Number of characters in the message.
Number of SMS segments the message will use.
Max characters per segment for the chosen encoding (160 GSM-7, 70 UCS-2).
Length in GSM-7 units (extended characters such as { } [ ] ~ \ | ^ € cost 2).
Total message size in bits.
