Skip to main content
POST
/
v1
/
send_campaign
Send Campaign
curl --request POST \
  --url https://api.campaigncleaner.com/v1/send_campaign \
  --header 'Content-Type: application/json' \
  --data '
{
  "send_campaign": {
    "campaign_html": "<html><body>Your Campaign HTML</body></html>",
    "campaign_name": "My Campaign",
    "adjust_font_colors": true,
    "adjust_font_size": true,
    "min_font_size_allowed": 10,
    "max_font_size_allowed": 32,
    "convert_h_to_p_tags": false,
    "convert_tables_to_divs": false,
    "custom_info": "",
    "host_extensionless_images": false,
    "inline_css": true,
    "inline_css_important": false,
    "media_queries_important": true,
    "preserve_media_queries": true,
    "relative_links_base_url": "",
    "remove_classes_and_ids": true,
    "remove_comments": true,
    "remove_control_non_printable": false,
    "remove_css_inheritance": true,
    "remove_image_height": true,
    "remove_successive_punctuation": true,
    "replace_diacritics": true,
    "replace_non_ascii_characters": true,
    "resize_and_host": true,
    "webhook_url": "",
    "surrounding_div": {
      "max_width": 600,
      "text_align": "left",
      "font_size": 15,
      "center_to_parent": true
    }
  }
}
'
{
  "campaign": {
    "id": "8e754ce1-c2df-11ed-9848-003048d8d533"
  }
}

Headers

X-CC-API-Key
string

Body

application/json

The body is of type object.

Response

200 - application/json

OK

The response is of type object.