Automations

Add an email to an automation

Changed on
post/automations/{id}/emails

Request

  • Base URL
    https://api.sendfox.com
  • Auth
    OAuth 2
    Authorization codehttps://sendfox.com/oauth/authorize
    Token URLhttps://sendfox.com/oauth/token

Request body

subjectstring required

Can use personalization tags, such as {{contact.first_name | there}}.

preview_textstring nullable

Inbox preview text

htmlstring required

Can use personalization tags. SendFox adds the unsubscribe footer. Paragraphs are spaced on save the same way as when creating a campaign.

from_namestring

Required unless the account has saved a default sender in Account Settings.

from_emailstring email

Required unless the account has saved a default sender in Account Settings.

reply_to_emailstring email nullable

Where replies go. Empty uses the account's default reply-to, then from_email.

delay_hoursinteger

Hours to wait before sending (default 24, first email defaults to 0)

Response

Automation email created

idinteger
type'email' | 'condition'
automation_idinteger
campaign_idinteger nullable

The step's email. Null for a condition.

parent_item_idinteger nullable

The condition this step's path belongs to. Null for a step in the main flow.

branch'yes' | 'no' | 'null' nullable
delay_hoursinteger

Hours to wait before this step. For a condition, the wait before the contact is checked.

send_orderinteger
condition_type'opened_previous' | 'clicked_previous' | 'has_tag' | 'on_list' | 'null' nullable

What a condition checks. "Previous" is the nearest email before the condition.

condition_list_idinteger nullable
condition_contact_tag_idinteger nullable
condition_email_link_idinteger nullable

For clicked_previous, the link that must be clicked. Null means any link.

yes_path_endsboolean

Whether contacts leave the automation at the end of the Yes path, instead of continuing after the condition.

no_path_endsboolean

Whether contacts leave the automation at the end of the No path, instead of continuing after the condition.

created_atstring date-time
updated_atstring date-time

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      the request property became optional

    • info

      the request property became optional

    • info

      added the non-success response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property to the response with the status