curl --request POST \
--url https://api.wppfy.com/sender/advanced \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"delayMin": 3,
"delayMax": 6,
"info": "advanced test",
"scheduled_for": 1,
"messages": [
{
"number": "5511999999999",
"type": "text",
"text": "First message"
},
{
"number": "5511999999999",
"type": "button",
"text": "Special Promotion!\nCheck out our amazing offers",
"footerText": "Valid until 12/31/2024",
"imageButton": "https://example.com/promo-banner.jpg",
"choices": [
"View Offers|https://store.example.com/offers",
"Talk to Sales|reply:sales",
"Copy Coupon|copy:PROMO2024"
]
},
{
"number": "5511999999999",
"type": "list",
"text": "Choose your preferred category:",
"listButton": "View Categories",
"choices": [
"[Electronics]",
"Smartphones|electronics_smartphones",
"Notebooks|electronics_notebooks",
"[Clothing]",
"T-shirts|clothing_tshirts",
"Shoes|clothing_shoes"
]
},
{
"number": "5511999999999",
"type": "document",
"file": "https://example.com/doc.pdf",
"docName": "Document.pdf"
},
{
"number": "5511999999999",
"type": "carousel",
"text": "Meet our products",
"choices": [
"[Smartphone XYZ\nThe most advanced smartphone in the line]",
"{https://example.com/product1.jpg}",
"Copy Code|copy:PROD123",
"View on Site|https://example.com/xyz",
"[Notebook ABC\nThe ideal notebook for professionals]",
"{https://example.com/product2.jpg}",
"Copy Code|copy:NOTE456",
"Buy Online|https://example.com/abc"
]
}
]
}
'{
"folder_id": "<string>",
"count": 123,
"status": "queued"
}Creates a new mass messaging with advanced settings, allowing definition of multiple recipients and messages with custom delays.
curl --request POST \
--url https://api.wppfy.com/sender/advanced \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"delayMin": 3,
"delayMax": 6,
"info": "advanced test",
"scheduled_for": 1,
"messages": [
{
"number": "5511999999999",
"type": "text",
"text": "First message"
},
{
"number": "5511999999999",
"type": "button",
"text": "Special Promotion!\nCheck out our amazing offers",
"footerText": "Valid until 12/31/2024",
"imageButton": "https://example.com/promo-banner.jpg",
"choices": [
"View Offers|https://store.example.com/offers",
"Talk to Sales|reply:sales",
"Copy Coupon|copy:PROMO2024"
]
},
{
"number": "5511999999999",
"type": "list",
"text": "Choose your preferred category:",
"listButton": "View Categories",
"choices": [
"[Electronics]",
"Smartphones|electronics_smartphones",
"Notebooks|electronics_notebooks",
"[Clothing]",
"T-shirts|clothing_tshirts",
"Shoes|clothing_shoes"
]
},
{
"number": "5511999999999",
"type": "document",
"file": "https://example.com/doc.pdf",
"docName": "Document.pdf"
},
{
"number": "5511999999999",
"type": "carousel",
"text": "Meet our products",
"choices": [
"[Smartphone XYZ\nThe most advanced smartphone in the line]",
"{https://example.com/product1.jpg}",
"Copy Code|copy:PROD123",
"View on Site|https://example.com/xyz",
"[Notebook ABC\nThe ideal notebook for professionals]",
"{https://example.com/product2.jpg}",
"Copy Code|copy:NOTE456",
"Buy Online|https://example.com/abc"
]
}
]
}
'{
"folder_id": "<string>",
"count": 123,
"status": "queued"
}List of messages to be sent
Show child attributes
Chat ID or recipient number.
"5511999999999"
Message type:
text, image, document, audio, ptt, myaudio, sticker, video, contact, location, poll, list, button, carousel Message text (when type is "text") or media caption
Media URL (when type is image, video, audio, document, etc)
Filename (when type is document)
Whether to generate link previews (when type is text). The preview will be generated automatically from the URL contained in the text.
Custom title for the link preview (optional)
Custom description for the link preview (optional)
URL or base64 data of the image for the link preview (optional)
Whether to use large or small preview (optional, default false)
Full name (when type is contact)
Phone number (when type is contact)
Organization (when type is contact)
Email (when type is contact)
URL (when type is contact)
Latitude (when type is location)
Longitude (when type is location)
Location name (when type is location)
Address (when type is location)
Footer text (when type is list, button, poll, or carousel)
Button text (when type is list, button, poll, or carousel)
List button text (when type is list)
Number of selectable options (when type is poll)
List of choices (when type is list, button, poll, or carousel). For carousel, use specific format with [text], {image}, and buttons
Image URL for the button (when type is button)
Minimum delay between messages (seconds)
x >= 03
Maximum delay between messages (seconds)
x >= 06
Description or information about the mass messaging
"Launch campaign"
Timestamp in milliseconds (unix date) or minutes from now for scheduling
1