POST
/
sms_templates
/
{id}
/
draft_send
Draft send an SMS message from an SMS template
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>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the SMS template

Body

application/json
from
string
required

The ID of the phone number to send the SMS from

to
string
required

The phone number to send the SMS to

variables
object

Variables to use in the email template

Response

200 - application/json

A DraftSMSMessage representing what would have been sent

from
string
required

The phone number the SMS message would be sent from

to
string
required

The phone number the SMS message would be sent to

message
string
required

The message that would be sent