Error in JSON request to SMS.ir API

Hi everyone :waving_hand:
I’m working with Kodular and trying to send a JSON request to SMS.ir API.
Here is my JSON and the API URL:

{"mobile":"989308657810","templateId":678614,"parameters":[{"name":"Code","value":"123456"}]}

https://api.sms.ir/v1/send/verify

But Kodular gives me 2 errors.
I’ve attached a screenshot of my blocks and the error messages.

Can you please help me to fix it?
Thanks :folded_hands:

Hi dear,

Welcome to the Kodular community!

show the errors you’re getting.

And be careful not to show your API keys in the community (I’ve hidden them for you)

The only error I get is: responseContent (and sometimes just 0).
It seems the request doesn’t reach the SMS API server at all.

The API documentation is in Arabic :scream: :rofl: (The translation doesn’t help much)

  • In the headers, I think you need to use Accept: application/json or application/xml (use JSON).
  • The method for /verify is POST, not PUT.
  • And in the name parameter, I think you need a # at the beginning.

your json structure is correct