v93

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01218121759.7 KB
Sequences

Get sequence

Returns sequence metadata, nodes, and editable email steps.

get/sequences/{sequenceId}

Path parameters

sequenceIdstring required

Sequence ID

Response

Sequence retrieved successfully

successboolean

Example response

{
  "success": true,
  "sequence": {
    "id": "seq_abc123",
    "name": "Welcome Sequence",
    "trigger": "trigger_list",
    "sendingWindow": {
      "enabled": true,
      "timezone": "Europe/Kiev",
      "startTime": "08:00",
      "endTime": "20:00",
      "days": [
        "monday",
        "tuesday",
        "wednesday",
        "thursday",
        "friday"
      ]
    },
    "bccEmails": [
      "cs-team@example.com"
    ],
    "nodes": [
      {
        "id": "node_abc123",
        "automationId": "seq_abc123",
        "nodeType": "action_email",
        "updatedAt": "2026-07-17T10:00:00.000Z",
        "updateHints": {
          "tool": "update_sequence_node",
          "expectedUpdatedAt": "2026-07-17T10:00:00.000Z"
        },
        "position": {
          "x": 300,
          "y": 150
        }
      }
    ],
    "edges": [
      {
        "sourceNodeId": "node_trigger",
        "targetNodeId": "node_welcome_email",
        "condition": {
          "branchId": "branch-0"
        }
      }
    ],
    "graphRevision": "75afbbfe05c1a96dc4f167eecc80b14113a3b76b47fb1b193492ddcd2b1d3e21",
    "emails": [
      {
        "nodeId": "node_abc123",
        "emailId": "email_abc123",
        "stepNumber": 1,
        "name": "Welcome Sequence - Email 1",
        "subject": "Welcome to Acme",
        "previewText": "Start here",
        "attachments": [
          {
            "filename": "guide.pdf",
            "path": "https://example.com/files/guide.pdf"
          }
        ],
        "emailPreset": "minimal",
        "delayNodeId": "node_delay_abc123",
        "delayMs": 259200000,
        "delayMode": "until_date",
        "waitUntil": {
          "field": "renews_at",
          "untilDateField": "event.subscription.renews_at",
          "offset": {
            "days": 1,
            "hours": 2,
            "minutes": 30
          },
          "days": 1,
          "hours": 2,
          "minutes": 30,
          "direction": "before",
          "untilOffsetDirection": "before",
          "missingAction": "exit",
          "untilMissingAction": "exit"
        },
        "delayDisplay": "3 days",
        "delayDescription": "Wait 3 days",
        "blocks": [
          {
            "id": "block_123",
            "type": "html",
            "content": "<h1>Hello</h1>",
            "styles": {
              "backgroundColor": "#f8fafc",
              "backgroundOpacity": 80,
              "textColor": "#111827",
              "borderRadius": 12,
              "borderColor": "#cbd5e1",
              "borderWidth": 1
            },
            "conditions": [
              {
                "id": "c1",
                "value": "plan:pro"
              }
            ]
          }
        ]
      }
    ],
    "stopCondition": {
      "value": "saas.purchase"
    },
    "enrichmentStatus": "complete",
    "emailCount": 2,
    "discountCount": 1,
    "subscriberUpdateCount": 1,
    "enrichedCount": 2
  }
}