Create campaign where you will use your custom HTML template [Rate limited]

📘

Email type of created campaign

Campaigns that are created using this endpoint require your own custom HTML templates to be added via API using /campaigns/:id/content endpoint or directly in MailerLite application.

Here is more details about ab_settings object.

All fields are required!

Parameter

Type

Description

values

array

Must contain two values. It depends on send_type.

For example, if send_type equals to sender these values are used as sender names for AB test.

If send_type equals to subject these values are used as subjects for AB test.

send_type

string

Available values:

  • sender
  • subject

ab_win_type

string

It defines how winner will be selected.

Available values:

  • opens
  • clicks

winner_after

integer

It defines how long AB test is active.

Pay attention that this is only a number and type is defined as winner_after_type

winner_after_type

string

Available values:

  • d - days
  • h - hours

split_part

integer

It defines size of every test group in percents equally.

Available range: 5-25

Language
Authentication
Header
Response
Click Try It! to start a request and see the response here!