SMS Templates
Create 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 Templates
Create an SMS template
POST
/
businesses
/
{id}
/
sms_templates
curl --request POST \
--url https://api.pocketflows.com/businesses/{id}/sms_templates \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"message": "<string>",
"one_off": true
}'
{
"id": "<string>",
"name": "<string>",
"message": "<string>",
"estimated_sms_segments": 123,
"estimated_segments": {
"sms": 123,
"mms": 123
}
}
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 business
Body
application/json
Response
200 - application/json
The created SMSTemplate
object
The response is of type object
.
curl --request POST \
--url https://api.pocketflows.com/businesses/{id}/sms_templates \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"message": "<string>",
"one_off": true
}'
{
"id": "<string>",
"name": "<string>",
"message": "<string>",
"estimated_sms_segments": 123,
"estimated_segments": {
"sms": 123,
"mms": 123
}
}