How to pass raw-data into post request using HTTParty

I have to make this request in rails 6:

curl --location --request POST '' \
--header 'Content-Type: application/json' \
--data-raw '{
	"sender_id": "MyApp",
	"text":"Web2Sms237 is an awewome app!",

We usually use HTTParty to make http requests, but i faced some problems trying to pass raw data into the request. I’ve already tried:

result =
        headers: {
          "Content-Type": "application/json",
        body: {
          phone: "+237#{@phone}",
          text: @message,
          flash: false

And in all cases, the response says that no data was passed (all my dara are ok) how can i solve this issue

{"message":"The given data was invalid.","errors":{"phone":["The phone field is required."],"text":["The text field is required."]}}