cURL
curl --request POST \ --url https://api.pocketflows.com/sms_templates/{id}/draft_send \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "from": "<string>", "to": "<string>", "variables": {} } '
{ "from": "<string>", "to": "<string>", "message": "<string>" }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The ID of the SMS template
The ID of the phone number to send the SMS from
The phone number to send the SMS to
Variables to use in the email template
A DraftSMSMessage representing what would have been sent
DraftSMSMessage
The phone number the SMS message would be sent from
The phone number the SMS message would be sent to
The message that would be sent