For more information on using API

GET http://webapi.mymarketing.co.il/api/automations/{id}/EmailCampaignSteps

Get all the steps in the automation that are for email campaigns

Request Information

URI Parameters

Name

Description

Type

Additional information

id

Automation id

integer

Required

Body Parameters

None.

Response Information

Resource Description

ApiAutomationEmailStepInfoList

Name

Description

Type

Additional information

total_items

Total steps count

integer
automations_emails_steps_info

List of automation steps

Response Formats

application/json, text/json

Sample:
{
  "total_items": 1,
  "automations_emails_steps_info": [
    {
      "email_name": "sample string 1",
      "user_profile_id": 2,
      "email_subject": "sample string 3",
      "preheader": "sample string 4",
      "attachment_file_name": "sample string 5",
      "attachment_file_url": "sample string 6",
      "id": 1,
      "is_designed": true,
      "type": "EmailCampaign",
      "object_id": 1,
      "is_active": true,
      "step_type": "EmailCampaign",
      "working_days": [
        {
          "day": 1,
          "from": "00:00:00.1234567",
          "to": "00:00:00.1234567"
        },
        {
          "day": 1,
          "from": "00:00:00.1234567",
          "to": "00:00:00.1234567"
        }
      ]
    },
    {
      "email_name": "sample string 1",
      "user_profile_id": 2,
      "email_subject": "sample string 3",
      "preheader": "sample string 4",
      "attachment_file_name": "sample string 5",
      "attachment_file_url": "sample string 6",
      "id": 1,
      "is_designed": true,
      "type": "EmailCampaign",
      "object_id": 1,
      "is_active": true,
      "step_type": "EmailCampaign",
      "working_days": [
        {
          "day": 1,
          "from": "00:00:00.1234567",
          "to": "00:00:00.1234567"
        },
        {
          "day": 1,
          "from": "00:00:00.1234567",
          "to": "00:00:00.1234567"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<ApiAutomationEmailStepInfoList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <automations_emails_steps_info>
    <ApiAutomationEmailStepInfo>
      <attachment_file_name>sample string 5</attachment_file_name>
      <attachment_file_url>sample string 6</attachment_file_url>
      <email_name>sample string 1</email_name>
      <email_subject>sample string 3</email_subject>
      <id>1</id>
      <is_active>true</is_active>
      <is_designed>true</is_designed>
      <object_id>1</object_id>
      <preheader>sample string 4</preheader>
      <step_type>EmailCampaign</step_type>
      <type>EmailCampaign</type>
      <user_profile_id>2</user_profile_id>
      <working_days>
        <ApiAutomationExtendedDetailsWorkingDays>
          <day>1</day>
          <from>PT0.1234567S</from>
          <to>PT0.1234567S</to>
        </ApiAutomationExtendedDetailsWorkingDays>
        <ApiAutomationExtendedDetailsWorkingDays>
          <day>1</day>
          <from>PT0.1234567S</from>
          <to>PT0.1234567S</to>
        </ApiAutomationExtendedDetailsWorkingDays>
      </working_days>
    </ApiAutomationEmailStepInfo>
    <ApiAutomationEmailStepInfo>
      <attachment_file_name>sample string 5</attachment_file_name>
      <attachment_file_url>sample string 6</attachment_file_url>
      <email_name>sample string 1</email_name>
      <email_subject>sample string 3</email_subject>
      <id>1</id>
      <is_active>true</is_active>
      <is_designed>true</is_designed>
      <object_id>1</object_id>
      <preheader>sample string 4</preheader>
      <step_type>EmailCampaign</step_type>
      <type>EmailCampaign</type>
      <user_profile_id>2</user_profile_id>
      <working_days>
        <ApiAutomationExtendedDetailsWorkingDays>
          <day>1</day>
          <from>PT0.1234567S</from>
          <to>PT0.1234567S</to>
        </ApiAutomationExtendedDetailsWorkingDays>
        <ApiAutomationExtendedDetailsWorkingDays>
          <day>1</day>
          <from>PT0.1234567S</from>
          <to>PT0.1234567S</to>
        </ApiAutomationExtendedDetailsWorkingDays>
      </working_days>
    </ApiAutomationEmailStepInfo>
  </automations_emails_steps_info>
  <total_items>1</total_items>
</ApiAutomationEmailStepInfoList>