Set the content type to application/json with an explicit UTF-8 charset on the request headers. Without the charset declaration the API rejects non-ASCII message bodies with a 400 while ASCII text sails through, which makes it look like a message problem when it is a header problem. Send accept application/json alongside it, keep the from, to, and text fields in the JSON body, and Unicode messages go through.

Context: Stack Overflow #55037888 (accepted answer): The reporter sent Bangla Unicode text through the Infobip SMS API from Node.js and got HTTP 400, while plain English text worked fine with the same code. Both the request module and axios failed until the request headers were fixed.