SMS Messages
Draft send an SMS message from an SMS template
Email Templates
- The Email Template object
- GETList all email templates for a business
- POSTCreate an email template
- POSTCreate a new email template using AI
- POSTCopy a project email template into a specific business
- GETRetrieve an email template
- GETPreview an email template
- GETPreview an email template as an image
- POSTUpdate an email template
- DELDelete an email template
Email Template Embeds
Project Email Templates
Business Email Addresses
Project Email Addresses
Emails
SMS Templates
SMS Template Embeds
SMS Messages
Business Phone Numbers
Project Phone Numbers
Campaigns
- The Campaign object
- The Campaign Execution object
- GETList all campaigns
- POSTCreate a campaign
- GETRetrieve a campaign
- GETView a campaign interactively
- GETPreview a campaign
- GETPreview a campaign as an image
- POSTUpdate a campaign
- POSTStart a campaign
- POSTStop a campaign
- DELDelete a campaign
- GETGet the executions of a campaign
Campaign Embeds
Triggers
SMS Messages
Draft send an SMS message from an SMS template
POST
/
sms_templates
/
{id}
/
draft_send
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
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
The ID of the SMS template
Body
application/json
Response
200 - application/json
A DraftSMSMessage
representing what would have been sent
The response is of type object
.
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>"
}