We have completed the configuration par. Now we move to - how to send an SMS. For this, we will start with the message_send node. It can be broken down into three parts.
URL, headers, and parameters. These can be compared to request URLs, request headers, and request parameters.
The request type is POST, so we set the method attribute in the request XML node as “post”. URL will be set to the URI endpoint.
We already have set provider.url with https://api.telnyx.com/v2, so set only /messages as the URL here.
We need to send the content-type, and auth bearer token will be taken from the provider.auth node.
Next, the parameters should be sent as raw data. Each parameter has a name and value. We have spoken about $config.$fields.* above. @recipients and @message are the dynamic values that will be replaced at runtime. Apart from this, if you select an SMS template to send an SMS, you can also pull up @templateid from the template record to send it to the provider. The service provider can map your template to approved templates.