POST
https://stoplight.io/mocks/replyteam/reply/765516802
/
sequences
curl --request POST \
  --url https://stoplight.io/mocks/replyteam/reply/765516802/sequences \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123,
  "name": "Sales Outreach 2024",
  "emailAccounts": [
    "sales@company.com",
    "outreach@company.com"
  ],
  "status": "Active",
  "scheduleId": 456,
  "isArchived": false,
  "created": "2024-03-08T14:30:00Z",
  "settings": {
    "emailsCountPerDay": 50,
    "daysToFinishProspect": 14,
    "emailSendingDelaySeconds": 30,
    "dailyThrottling": 200,
    "disableOpensTracking": false,
    "repliesHandlingType": "Mark person as finished",
    "enableLinksTracking": true
  },
  "steps": [
    {
      "id": 1323,
      "type": "Email",
      "number": 1,
      "delayInMinutes": 0,
      "template": {
        "id": 456,
        "subject": "Quick question about {{companyName}}",
        "body": "Hi {{firstName}},\n\nI noticed you'\''re leading initiatives at {{companyName}} and wanted to reach out regarding our solution that could help with your sales automation needs.\n\nWould you be open to a quick chat this week?\n\nBest regards,\nJohn"
      }
    },
    {
      "id": 43432,
      "type": "LinkedIn",
      "number": 2,
      "delayInMinutes": 2880,
      "executionMode": "Automatic",
      "actionType": "Message",
      "data": {
        "content": "Hi {{contact.firstName}}, I noticed your great work at {{contact.company}}. Would love to connect and discuss potential synergies between our companies."
      }
    }
  ]
}'
{
  "id": 123,
  "name": "Sales Outreach 2024",
  "emailAccounts": [
    "sales@company.com",
    "outreach@company.com"
  ],
  "status": "Active",
  "scheduleId": 456,
  "isArchived": false,
  "created": "2024-03-08T14:30:00Z",
  "settings": {
    "emailsCountPerDay": 50,
    "daysToFinishProspect": 14,
    "emailSendingDelaySeconds": 30,
    "dailyThrottling": 200,
    "disableOpensTracking": false,
    "repliesHandlingType": "Mark person as finished",
    "enableLinksTracking": true
  },
  "steps": [
    {
      "id": 1323,
      "type": "Email",
      "number": 1,
      "delayInMinutes": 0,
      "template": {
        "id": 456,
        "subject": "Quick question about {{companyName}}",
        "body": "Hi {{firstName}},\n\nI noticed you're leading initiatives at {{companyName}} and wanted to reach out regarding our solution that could help with your sales automation needs.\n\nWould you be open to a quick chat this week?\n\nBest regards,\nJohn"
      }
    },
    {
      "id": 43432,
      "type": "LinkedIn",
      "number": 2,
      "delayInMinutes": 2880,
      "executionMode": "Automatic",
      "actionType": "Message",
      "data": {
        "content": "Hi {{contact.firstName}}, I noticed your great work at {{contact.company}}. Would love to connect and discuss potential synergies between our companies."
      }
    }
  ]
}

Body

application/json

Response

201 - application/json

Sequence created successfully

The response is of type object.