Skip to main content
POST
Send the step as a test email

Authorizations

Authorization
string
header
required

Your API token (af_…) as the Basic-auth username, with an empty password.

Path Parameters

campaignId
string
required

The campaign's id (24-character hex ObjectId), as returned by POST /business/campaigns or as the campaignId of a GET /business/campaigns row.

stepId
string
required

The sequence step's id, as returned by GET /business/campaigns/{campaignId}/steps (24-character hex ObjectId).

Body

application/json
toEmail
string<email>
required

The address the test is sent to. Any address: it does not have to be a contact or one of your own.

fromEmail
string<email>

The email account to send from: the emailAddress of an active, connected row of GET /business/accounts?channel=email, an account of yours or one shared with you. Omitted: the first active account among those the step sends from or, when the step names none, your first active account.

contactId
string

The contact whose details fill the step's {Variable} tokens and an AI step's writing: a contact on one of the campaign's source lists, as the id of a GET /business/lists/{listId}/rows row (24-character hex ObjectId). Omitted: the first contact of the campaign's first source list.

Response

Success

sent
boolean
required

Always true: the email was handed to the account's provider.

toEmail
string
required

The address the test was sent to.

fromEmail
string
required

The email account it was sent from.

subject
string
required

The subject it was sent with, its variables filled.