Create campaign draft
POST
https://app.sendapp.ai/api/campaigns/draft
Creates a campaign as a draft. It does not send anything: to send it, use the launch endpoint afterwards. Recipients are chosen by tag; the message can be text or an approved template. In the text you can use the placeholders
{{name}}, {{phone}}, {{email}}. Creating a draft does NOT send messages. To send, an explicit call to the launch endpoint is required.
Parameters
13 · 5 required
apikey
required
Your API Key.
token
required
Account token.
name
required
Campaign name.
channel
required
whatsapp, whatsapp-web or sms.
message_type
required
template, text, text_media or media_only.
message
optional
Message text (for
text / text_media).
template_name
optional
Template name (for
message_type=template).
template_language
optional
Template language.
media_url
optional
Public URL of the media (from the upload endpoint).
media_type
optional
image, audio, video or document.
recipient_type
optional
all (all contacts) or tags (filter by tag). Default all.
tags
optional
Array of recipient tags (if
recipient_type=tags).
scheduled_at
optional
Scheduled send date/time. Omitted = manual send.
Need help with the integration? info@sendapp.live