> ## Documentation Index
> Fetch the complete documentation index at: https://docs.walead.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Campaign Sequence

> Returns only the sequencer: steps ordered and messages (variants) of each step

## Overview

Returns the complete message sequence for a campaign, including all steps and their message variants. This is a focused endpoint that returns only the sequencer data, making it ideal when you need to manage or display the campaign flow without additional campaign metadata.

## What is a Sequence?

A sequence is the ordered series of steps that WaLead executes when reaching out to leads:

* **Steps**: Individual actions in your outreach (invitation, message, profile visit, screener)
* **Variants**: Different versions of messages for A/B testing (only for message and screener steps)
* **Order**: Steps are executed in order with configurable delays between them

## Response Structure

The response includes:

* Campaign ID and name
* Array of steps ordered by execution sequence
* For each step: type, delay, and message variants
* For each variant: message body, order, enabled status, and AI tools configuration

## Use Cases

* Display the campaign sequence in your UI
* Export campaign templates
* Analyze message variants and A/B testing setup
* Validate sequence configuration before starting a campaign


## OpenAPI

````yaml GET /v1/campaigns/{id}/sequence
openapi: 3.1.0
info:
  title: WaLead API
  description: >-
    WaLead Public API for managing LinkedIn outreach campaigns, leads, and
    analytics
  version: 1.0.0
  contact:
    name: WaLead Support
    url: https://walead.ai
servers:
  - url: https://app-api.walead.ai/api
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /v1/campaigns/{id}/sequence:
    get:
      summary: Get Campaign Sequence
      description: >-
        Returns only the sequencer: steps ordered and messages (variants) of
        each step
      parameters:
        - name: id
          in: path
          description: Campaign ID
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Campaign sequence retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignSequence'
        '401':
          description: Unauthorized - Invalid API Key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Campaign not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CampaignSequence:
      type: object
      properties:
        campaignId:
          type: string
          description: Campaign identifier
        campaignName:
          type: string
          description: Campaign name
        steps:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: Step ID
              type:
                type: string
                enum:
                  - invitation
                  - message
                  - visit_profile
                  - screener
                description: Step type
              order:
                type: integer
                description: Step position in sequence
              delay:
                type: integer
                description: Delay in days
              stopOnReply:
                type: boolean
                description: Stop sequence on reply
              genericBody:
                type: string
                nullable: true
                description: Generic message template
              messages:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    body:
                      type: string
                    order:
                      type: integer
                    isDisabled:
                      type: boolean
                    icpDefinitionRaw:
                      type: string
                      nullable: true
                    aiTools:
                      type: array
                      items:
                        $ref: '#/components/schemas/AITool'
                description: Message variants for this step
          description: Ordered array of campaign steps
    Error:
      type: object
      required:
        - statusCode
        - message
      properties:
        statusCode:
          type: integer
          description: HTTP status code
        message:
          type: string
          description: Error message
    AITool:
      type: object
      properties:
        name:
          type: string
          description: AI tool name
        key:
          type: string
          description: AI tool unique key
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Generate from your WaLead dashboard.

````