Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
API Reference

Create a transactional mail

Create a transactional mail and add information such as subjects for target groups, media code or successor and predecessor node.

Path Params
string
required

Client ID

Form Data
recipientListIds
array of int64s
required

Comma-separated list of recipient list IDs

recipientListIds*
string
required

Mailing content (plain text)

string
required

Mailing subject

string
required

Mailing sender address

string

This parameter is deprecated. Use "payload.[name]" instead.

string
enum

Media type of the mailing (required only for creation)

Allowed:
string

Subject for a specific target group. Set "subject.[targetGroupId]" in request data (only email).

Does not work with the "Try it out" feature.

string

Reply-to address (only email)

boolean

Toggle whether a mailing can be archived or not

string

Icon meta data. Configure "icon.[attribute]".

Does not work with the "Try it out" feature.

string
enum

Period suggesting for how long a mailing should be archived

Allowed:
boolean

If true, the local part of the reply-to address is reset

string

Reply-to mailing name (only email)

boolean

If true, all payload parameters are deleted. All set parameters within this request remain (only Web Push mailings).

string

Mailing name

string

Payload parameters for Mobile Push and Web Push. Set "payload.[name]" in request data.

Does not work with the "Try it out" feature.

string

Mailing description

string

Mailing sender name (only email)

string

Media code (only email)

date-time

Expiry date (only push mailings, use ISO 8601 format without milliseconds, e.g. 2022-03-03T08:45:07+01:00)

string

Image for the Web Push message

string

Click action for the Web Push message

string
enum

Push type

Allowed:
string

Icon for the Web Push message

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

400

The transactional mail could not be created. Ensure that the required parameters such as "recipientListIds", "mediaType", "subject", "senderAddress" or "content" are correctly added to the request.

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/vnd.optivo.broadmail.v1+json