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

# Update a sequence

> <small>_Requires the `sequences:write` scope (or a broader one that includes it)._</small>

Change part of a sequence and leave the rest. settings merges key by key; account lists replace what's there.



## OpenAPI

````yaml /api-reference/bundled.yaml patch /v3/sequences/{id}
openapi: 3.1.0
info:
  version: 3.0.0
  title: Reply API
  description: API for managing email sequences, contacts, and automation workflows
servers:
  - url: https://api.reply.io
security:
  - bearerAuth: []
tags:
  - name: Contacts
    description: Manage individual contacts
  - name: Contact Lists
    description: Manage contact lists and contact membership
  - name: Accounts
    description: Manage accounts (companies/organizations)
  - name: Account Lists
    description: Manage account lists and account membership
  - name: Custom Fields
    description: Manage custom contact fields
  - name: Prompt Actions
    description: Save reusable AI prompts and run them on contacts to fill custom fields
  - name: Contact Blacklist Rules
    description: Manage blacklist rules for domains, emails, and email exceptions
  - name: Live Data
    description: >-
      Find new contacts via Live Data searches and read typeahead values for the
      Live Data / Autopilot filter sidebar
  - name: Contact Enrichment
    description: >-
      Enrich contacts with emails, phone numbers, LinkedIn data, and AI-filled
      custom fields
  - name: Email Validations
    description: Estimate and schedule asynchronous email validation jobs
  - name: AI SDR Web Search
    description: Find contacts via AI-driven web search and review past searches
  - name: Sequences
    description: Manage email automation sequences
  - name: Sequence Steps
    description: Manage individual steps in sequences
  - name: Sequence Contacts
    description: Manage contacts within sequences
  - name: Sequence Folders
    description: Organize sequences into folders
  - name: Email Accounts
    description: Manage email accounts used for sending and receiving
  - name: Sequence Email Accounts
    description: Manage email accounts linked to sequences
  - name: LinkedIn Accounts
    description: Manage LinkedIn accounts for outreach
  - name: Sequence LinkedIn Accounts
    description: Manage LinkedIn accounts linked to sequences
  - name: Sequence Templates
    description: Manage sequence templates
  - name: Email Templates
    description: Manage email templates and template folders
  - name: Voices
    description: Manage cloned voices used for AI voice message steps
  - name: Schedules
    description: Manage email send schedules and timing
  - name: Holiday Calendars
    description: Manage holiday calendars for scheduling
  - name: Inbox
    description: >-
      Manage inbox threads — list/filter, read state, replies, category
      assignment, and meeting-intent flagging
  - name: Inbox Categories
    description: Manage per-team inbox thread categories and assign threads to them
  - name: Direct Outreach
    description: >-
      Send one-off outreach directly to a contact outside of any sequence —
      direct emails and LinkedIn connection requests, messages, InMails, and
      voice messages
  - name: Tasks
    description: Manage tasks and to-do items
  - name: Reports
    description: >-
      Generate and access performance reports across email, calls, tasks,
      LinkedIn, and team performance
  - name: AI SDR Sequences
    description: >-
      Manage AI SDR sequences and their AI SDR-specific settings — create, read
      settings, partial update, autopilot enable/disable/force-start, approval
      mode, sequence structure, and playbook/knowledge-base connections
  - name: AI SDR Sequence Structures
    description: >-
      Browse the sequence structures — reusable outlines of AI SDR sequence
      steps — that can be applied to AI SDR sequences
  - name: AI SDR Strategist
    description: Trigger AI Strategist runs
  - name: AI SDR Playbooks
    description: >-
      Manage AI SDR playbooks — tone, voice, and style guides applied during
      personalized message generation
  - name: AI SDR Knowledge Bases
    description: >-
      Manage AI SDR knowledge bases — collections of documents, links, reply
      handlers, and reengagement cards that inform the agent's responses
  - name: AI SDR Offers
    description: >-
      Manage AI SDR offers — bundles of company-context inputs (ICP, pain
      points, value propositions, etc.) used to personalize outreach
  - name: AI SDR Pending Approvals
    description: >-
      Review, send, regenerate, and provide feedback on AI-generated messages
      awaiting human approval
  - name: AI SDR Sequence Preview
    description: >-
      Read and regenerate per-contact previews of the messages a sequence will
      send, and provide feedback on preview messages
  - name: AI SDR Insights
    description: Read AI SDR insights for sequence contacts
  - name: AI SDR Intent Signals
    description: >-
      Read Reply industry IDs and technology slugs used in AI SDR intent-signal
      configuration (typeahead)
  - name: AI Prompts
    description: >-
      Manage the AI prompts used to configure sequence steps, and preview the
      output a prompt produces
  - name: AI SDR Learnings
    description: >-
      Manage the standing rules that shape how the AI writes — list, read,
      create, partially update and delete AI learnings
  - name: Registration
    description: Register the contact that domain purchases are filed under
  - name: Domains
    description: Find domains available to buy for outreach
  - name: Purchased Domains
    description: >-
      List the domains your team bought, with their subscription, setup and
      renewal state, and renew them
  - name: Pre-warmed Domains
    description: >-
      Find pre-warmed domains on sale, with mailboxes that are already warming,
      and list the ones your team bought
  - name: Mailboxes
    description: >-
      Add mailboxes to domains your team already bought, priced before you
      order, and reconnect them
  - name: User Account
    description: Account information and authentication verification
  - name: Teams
    description: Add existing users of your organization to its teams
  - name: Settings
    description: Manage team and user settings
  - name: Billing
    description: Subscription details and monthly active contacts usage
  - name: Rate Limits
    description: Your API rate limits, your current usage and the packages that raise them
  - name: Support Requests
    description: Raise and follow support requests with Reply's support team
  - name: Webhooks
    description: Manage webhook subscriptions and inspect delivery history
  - name: Background Jobs
    description: >-
      Track and cancel asynchronous background operations (e.g., email
      validation)
  - name: Attachments
    description: >-
      Upload file attachments used across email templates, sequence steps, and
      direct emails
paths:
  /v3/sequences/{id}:
    patch:
      tags:
        - Sequences
      summary: Update a sequence
      description: >-
        <small>_Requires the `sequences:write` scope (or a broader one that
        includes it)._</small>


        Change part of a sequence and leave the rest. settings merges key by
        key; account lists replace what's there.
      operationId: UpdateSequence
      parameters:
        - name: id
          in: path
          required: true
          description: Sequence Id
          schema:
            type: integer
            minimum: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              title: Sequence Update Model
              description: >-
                Model for updating an existing sequence.

                All fields are optional — only include the fields you want to
                change (PATCH semantics).
              properties:
                name:
                  type: string
                  description: Name of the sequence
                scheduleId:
                  type: integer
                  minimum: 1
                  description: ID of the schedule to use
                settings:
                  type: object
                  title: Sequence Settings
                  description: Settings configuration for a sequence
                  required:
                    - emailsCountPerDay
                    - daysToFinishProspect
                    - emailSendingDelaySeconds
                    - dailyThrottling
                    - disableOpensTracking
                    - repliesHandlingType
                    - enableLinksTracking
                  properties:
                    emailsCountPerDay:
                      type: integer
                      description: Maximum number of emails sent daily
                    daysToFinishProspect:
                      type: integer
                      description: Days taken for a prospect to finish
                    emailSendingDelaySeconds:
                      type: integer
                      description: Delay between sending emails in seconds
                    dailyThrottling:
                      type: integer
                      description: Number of prospects processed within 24-hour period
                    useDailyThrottling:
                      type: boolean
                      description: Whether daily throttling is enabled
                    disableOpensTracking:
                      type: boolean
                      description: Whether to disable email open tracking
                    repliesHandlingType:
                      type: string
                      enum:
                        - markAsFinished
                        - continueSending
                      description: How replies are handled
                    enableLinksTracking:
                      type: boolean
                      description: Whether to enable link tracking
                    isSendingPlainTextEnabled:
                      type: boolean
                      description: Whether to send emails as plain text instead of HTML
                    isListUnsubscribeHeaderEnabled:
                      type: boolean
                      description: >-
                        Whether to include a List-Unsubscribe header in all
                        emails from this sequence
                    isSameDomainSendingLimitEnabled:
                      type: boolean
                      description: >-
                        Whether to limit the number of contacts from the same
                        domain contacted per day
                    numberOfSameDomainSendingLimit:
                      type: integer
                      nullable: true
                      description: >-
                        Maximum number of same-domain contacts per day
                        (applicable when `isSameDomainSendingLimitEnabled` is
                        true)
                    matchProspectToEmailAccountProvider:
                      type: boolean
                      description: >-
                        Whether to match prospect email provider to sender email
                        provider
                    callIsAutomatic:
                      type: boolean
                      description: Whether calls are handled automatically in this sequence
                    taskIsAutomatic:
                      type: boolean
                      description: Whether tasks are handled automatically in this sequence
                    generatedTaskOwner:
                      type: string
                      nullable: true
                      enum:
                        - contact
                        - sequence
                      default: sequence
                      description: >-
                        Who owns generated tasks — the contact owner or the
                        sequence owner. Defaults to `sequence` when omitted.
                emailAccounts:
                  type: array
                  items:
                    type: integer
                    format: int64
                    minimum: 1
                  description: Array of email account IDs
                linkedInAccounts:
                  type: array
                  items:
                    type: integer
                    minimum: 1
                  description: Array of LinkedIn account IDs
      responses:
        '200':
          description: Sequence updated successfully
          content:
            application/json:
              schema:
                title: Sequence
                description: >-
                  Full representation of a sequence, including its schedule and
                  the email and LinkedIn accounts used to send from it.
                allOf:
                  - type: object
                    properties:
                      id:
                        type: integer
                        readOnly: true
                        description: Unique identifier for the sequence
                      ownerUserId:
                        type: integer
                        readOnly: true
                        description: Identifier of the user who owns the sequence
                      name:
                        type: string
                        description: Name of the sequence
                      created:
                        type: string
                        format: date-time
                        readOnly: true
                        description: Sequence creation timestamp with timezone offset
                      status:
                        type: string
                        enum:
                          - new
                          - active
                          - paused
                        readOnly: true
                        description: Current status of the sequence
                      isArchived:
                        type: boolean
                        readOnly: true
                        description: Indicates if the sequence is archived
                      health:
                        type: string
                        description: >-
                          Overall health status of the sequence. Indicates
                          whether the sequence can operate normally or has
                          issues that need attention.


                          - `healthy` — Sequence is functioning normally with no
                          issues

                          - `stalled` — Sequence has stalled and is not
                          progressing

                          - `degraded` — Sequence is running but with reduced
                          effectiveness

                          - `blocked` — Sequence cannot proceed due to critical
                          issues
                        enum:
                          - healthy
                          - stalled
                          - degraded
                          - blocked
                        readOnly: true
                    example:
                      id: 12345
                      ownerUserId: 42
                      name: Sales Outreach
                      created: '2024-03-08T10:00:00+00:00'
                      status: active
                      isArchived: false
                      health: healthy
                  - type: object
                    properties:
                      scheduleId:
                        type: integer
                        description: Schedule ID
                      emailAccounts:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: integer
                              format: int64
                              description: Email account ID
                            email:
                              type: string
                              description: Email address
                          required:
                            - id
                            - email
                        description: Email accounts used to send emails for this sequence
                      linkedInAccounts:
                        type: array
                        items:
                          type: object
                          title: Sequence LinkedIn Account
                          description: A LinkedIn account linked to a sequence
                          properties:
                            id:
                              type: integer
                              description: Unique identifier for the LinkedIn account
                            name:
                              type: string
                              description: Name of the LinkedIn account
                            profileUrl:
                              type: string
                              nullable: true
                              description: LinkedIn profile URL
                            status:
                              type: string
                              enum:
                                - disabled
                                - enabled
                                - dailyLimitReached
                                - cookieInvalid
                              description: Current status of the LinkedIn account
                          example:
                            id: 42
                            name: John Doe
                            profileUrl: https://www.linkedin.com/in/johndoe
                            status: enabled
                        description: LinkedIn accounts linked to this sequence
                      settings:
                        type: object
                        title: Sequence Settings
                        description: Settings configuration for a sequence
                        required:
                          - emailsCountPerDay
                          - daysToFinishProspect
                          - emailSendingDelaySeconds
                          - dailyThrottling
                          - disableOpensTracking
                          - repliesHandlingType
                          - enableLinksTracking
                        properties:
                          emailsCountPerDay:
                            type: integer
                            description: Maximum number of emails sent daily
                          daysToFinishProspect:
                            type: integer
                            description: Days taken for a prospect to finish
                          emailSendingDelaySeconds:
                            type: integer
                            description: Delay between sending emails in seconds
                          dailyThrottling:
                            type: integer
                            description: >-
                              Number of prospects processed within 24-hour
                              period
                          useDailyThrottling:
                            type: boolean
                            description: Whether daily throttling is enabled
                          disableOpensTracking:
                            type: boolean
                            description: Whether to disable email open tracking
                          repliesHandlingType:
                            type: string
                            enum:
                              - markAsFinished
                              - continueSending
                            description: How replies are handled
                          enableLinksTracking:
                            type: boolean
                            description: Whether to enable link tracking
                          isSendingPlainTextEnabled:
                            type: boolean
                            description: >-
                              Whether to send emails as plain text instead of
                              HTML
                          isListUnsubscribeHeaderEnabled:
                            type: boolean
                            description: >-
                              Whether to include a List-Unsubscribe header in
                              all emails from this sequence
                          isSameDomainSendingLimitEnabled:
                            type: boolean
                            description: >-
                              Whether to limit the number of contacts from the
                              same domain contacted per day
                          numberOfSameDomainSendingLimit:
                            type: integer
                            nullable: true
                            description: >-
                              Maximum number of same-domain contacts per day
                              (applicable when `isSameDomainSendingLimitEnabled`
                              is true)
                          matchProspectToEmailAccountProvider:
                            type: boolean
                            description: >-
                              Whether to match prospect email provider to sender
                              email provider
                          callIsAutomatic:
                            type: boolean
                            description: >-
                              Whether calls are handled automatically in this
                              sequence
                          taskIsAutomatic:
                            type: boolean
                            description: >-
                              Whether tasks are handled automatically in this
                              sequence
                          generatedTaskOwner:
                            type: string
                            nullable: true
                            enum:
                              - contact
                              - sequence
                            default: sequence
                            description: >-
                              Who owns generated tasks — the contact owner or
                              the sequence owner. Defaults to `sequence` when
                              omitted.
                      steps:
                        type: array
                        items:
                          title: Sequence Step
                          discriminator:
                            propertyName: type
                            mapping:
                              email: '#/components/schemas/email.type'
                              linkedIn: '#/components/schemas/linkedin.type'
                              call: '#/components/schemas/call.type'
                              sms: '#/components/schemas/sms.type'
                              whatsApp: '#/components/schemas/whatsapp.type'
                              zapier: '#/components/schemas/zapier.type'
                              task: '#/components/schemas/task.type'
                              condition: '#/components/schemas/condition.type'
                          oneOf:
                            - type: object
                              title: Email
                              description: Email step with variant configuration
                              properties:
                                id:
                                  type: integer
                                  nullable: true
                                  readOnly: true
                                  description: Unique identifier for the step
                                parentId:
                                  type: integer
                                  nullable: true
                                  description: ID of the parent step (for branching)
                                ifConditionPositive:
                                  type: boolean
                                  nullable: true
                                  description: >-
                                    Whether this step is on the positive branch
                                    of a condition
                                type:
                                  type: string
                                  enum:
                                    - email
                                  description: Step type discriminator
                                delayInMinutes:
                                  type: integer
                                  minimum: 0
                                  description: >-
                                    Delay in minutes before executing this step.
                                    Defaults to 0 when omitted on create; when
                                    omitted on update, the current value is
                                    kept.
                                executionMode:
                                  type: string
                                  description: Execution mode for the email step
                                  enum:
                                    - automatic
                                    - manual
                                variants:
                                  type: array
                                  description: Array of email variants (A/B test versions)
                                  items:
                                    type: object
                                    title: Email Variant
                                    description: >-
                                      Individual email variant within an email
                                      step.
                                    properties:
                                      id:
                                        type: integer
                                        description: Unique identifier for this email variant
                                      subject:
                                        type: string
                                        nullable: true
                                        description: >-
                                          Email subject line. Variable names are
                                          case-sensitive, for example
                                          `{{FirstName}}`. See `GET
                                          /v3/email-templates/variables` for the
                                          full list. Unknown variables can be
                                          rejected with 400.
                                      message:
                                        type: string
                                        nullable: true
                                        description: >-
                                          Email message content. Variable names
                                          are case-sensitive, for example
                                          `{{FirstName}}`. See `GET
                                          /v3/email-templates/variables` for the
                                          full list. Unknown variables can be
                                          rejected with 400.
                                      attachmentIds:
                                        type: array
                                        nullable: true
                                        writeOnly: true
                                        maxItems: 3
                                        items:
                                          type: integer
                                        description: >-
                                          **Write-only.** IDs of previously
                                          uploaded attachments to attach to this
                                          variant. Upload files via `POST
                                          /v3/attachments` first to obtain
                                          attachment IDs.

                                          A variant may carry up to 3 attachments.
                                          Omit to leave attachments unset.

                                          Not returned on read — use
                                          `hasAttachments` to detect presence.
                                      hasAttachments:
                                        type: boolean
                                        readOnly: true
                                        description: >-
                                          Whether the variant has any attachments.
                                          Returned on read; ignored on write.
                              required:
                                - type
                                - executionMode
                                - variants
                            - title: LinkedIn
                              description: >-
                                LinkedIn step with action type
                                sub-discriminator. Uses type "linkedIn" with a
                                second discriminator actionType to select the
                                specific LinkedIn action.
                              discriminator:
                                propertyName: actionType
                                mapping:
                                  message: '#/components/schemas/linkedin-message.type'
                                  connect: '#/components/schemas/linkedin-connect.type'
                                  inMail: '#/components/schemas/linkedin-inmail.type'
                                  viewProfile: >-
                                    #/components/schemas/linkedin-view-profile.type
                                  endorseSkills: >-
                                    #/components/schemas/linkedin-endorse-skills.type
                                  voiceMessage: >-
                                    #/components/schemas/linkedin-voice-message.type
                                  aiVoiceMessage: >-
                                    #/components/schemas/linkedin-ai-voice-message.type
                                  likeRecentPosts: >-
                                    #/components/schemas/linkedin-like-recent-posts.type
                                  followProfile: >-
                                    #/components/schemas/linkedin-follow-profile.type
                                  commentOnRecentPost: >-
                                    #/components/schemas/linkedin-comment-on-recent-post.type
                              oneOf:
                                - type: object
                                  title: LinkedIn Message
                                  description: LinkedIn message action step
                                  properties:
                                    id:
                                      type: integer
                                      nullable: true
                                      readOnly: true
                                      description: Unique identifier for the step
                                    parentId:
                                      type: integer
                                      nullable: true
                                      description: ID of the parent step (for branching)
                                    ifConditionPositive:
                                      type: boolean
                                      nullable: true
                                      description: >-
                                        Whether this step is on the positive
                                        branch of a condition
                                    type:
                                      type: string
                                      enum:
                                        - linkedIn
                                      description: Step type discriminator
                                    actionType:
                                      type: string
                                      enum:
                                        - message
                                      description: LinkedIn action type discriminator
                                    delayInMinutes:
                                      type: integer
                                      minimum: 0
                                      description: >-
                                        Delay in minutes before executing this
                                        step. Defaults to 0 when omitted on
                                        create; when omitted on update, the
                                        current value is kept.
                                    executionMode:
                                      type: string
                                      description: Execution mode for the action
                                      enum:
                                        - automatic
                                        - manual
                                    variants:
                                      type: array
                                      description: >-
                                        Array of LinkedIn message variants (A/B
                                        test versions)
                                      items:
                                        type: object
                                        title: LinkedIn Variant
                                        description: >-
                                          Individual LinkedIn message/connect
                                          variant
                                        properties:
                                          id:
                                            type: integer
                                            description: >-
                                              Unique identifier for this LinkedIn
                                              variant
                                          message:
                                            type: string
                                            description: >-
                                              Message content. Variable names are
                                              case-sensitive, for example
                                              `{{FirstName}}`. See `GET
                                              /v3/email-templates/variables` for the
                                              full list.
                                          isEnabled:
                                            type: boolean
                                            description: Indicates whether the variant is enabled
                                        required:
                                          - message
                                          - isEnabled
                                  required:
                                    - type
                                    - actionType
                                    - executionMode
                                    - variants
                                - type: object
                                  title: LinkedIn Connect
                                  description: LinkedIn connect action step
                                  properties:
                                    id:
                                      type: integer
                                      nullable: true
                                      readOnly: true
                                      description: Unique identifier for the step
                                    parentId:
                                      type: integer
                                      nullable: true
                                      description: ID of the parent step (for branching)
                                    ifConditionPositive:
                                      type: boolean
                                      nullable: true
                                      description: >-
                                        Whether this step is on the positive
                                        branch of a condition
                                    type:
                                      type: string
                                      enum:
                                        - linkedIn
                                      description: Step type discriminator
                                    actionType:
                                      type: string
                                      enum:
                                        - connect
                                      description: LinkedIn action type discriminator
                                    delayInMinutes:
                                      type: integer
                                      minimum: 0
                                      description: >-
                                        Delay in minutes before executing this
                                        step. Defaults to 0 when omitted on
                                        create; when omitted on update, the
                                        current value is kept.
                                    executionMode:
                                      type: string
                                      description: Execution mode for the action
                                      enum:
                                        - automatic
                                        - manual
                                    variants:
                                      type: array
                                      description: >-
                                        Array of LinkedIn connect variants (A/B
                                        test versions). Message is optional, max
                                        300 characters.
                                      items:
                                        type: object
                                        title: LinkedIn Variant
                                        description: >-
                                          Individual LinkedIn message/connect
                                          variant
                                        properties:
                                          id:
                                            type: integer
                                            description: >-
                                              Unique identifier for this LinkedIn
                                              variant
                                          message:
                                            type: string
                                            description: >-
                                              Message content. Variable names are
                                              case-sensitive, for example
                                              `{{FirstName}}`. See `GET
                                              /v3/email-templates/variables` for the
                                              full list.
                                          isEnabled:
                                            type: boolean
                                            description: Indicates whether the variant is enabled
                                        required:
                                          - message
                                          - isEnabled
                                  required:
                                    - type
                                    - actionType
                                    - executionMode
                                    - variants
                                - type: object
                                  title: LinkedIn InMail
                                  description: LinkedIn InMail action step
                                  properties:
                                    id:
                                      type: integer
                                      nullable: true
                                      readOnly: true
                                      description: Unique identifier for the step
                                    parentId:
                                      type: integer
                                      nullable: true
                                      description: ID of the parent step (for branching)
                                    ifConditionPositive:
                                      type: boolean
                                      nullable: true
                                      description: >-
                                        Whether this step is on the positive
                                        branch of a condition
                                    type:
                                      type: string
                                      enum:
                                        - linkedIn
                                      description: Step type discriminator
                                    actionType:
                                      type: string
                                      enum:
                                        - inMail
                                      description: LinkedIn action type discriminator
                                    delayInMinutes:
                                      type: integer
                                      minimum: 0
                                      description: >-
                                        Delay in minutes before executing this
                                        step. Defaults to 0 when omitted on
                                        create; when omitted on update, the
                                        current value is kept.
                                    executionMode:
                                      type: string
                                      description: Execution mode for the InMail
                                      enum:
                                        - automatic
                                        - manual
                                    variants:
                                      type: array
                                      description: >-
                                        Array of LinkedIn InMail variants (A/B
                                        test versions)
                                      items:
                                        type: object
                                        title: LinkedIn InMail Variant
                                        description: Individual LinkedIn InMail variant
                                        properties:
                                          id:
                                            type: integer
                                            description: >-
                                              Unique identifier for this LinkedIn
                                              InMail variant
                                          subject:
                                            type: string
                                            description: >-
                                              InMail subject line. Variable names are
                                              case-sensitive, for example
                                              `{{FirstName}}`. See `GET
                                              /v3/email-templates/variables` for the
                                              full list.
                                          message:
                                            type: string
                                            description: >-
                                              InMail message content. Variable names
                                              are case-sensitive, for example
                                              `{{FirstName}}`. See `GET
                                              /v3/email-templates/variables` for the
                                              full list.
                                          isEnabled:
                                            type: boolean
                                            description: Indicates whether the variant is enabled
                                        required:
                                          - subject
                                          - message
                                          - isEnabled
                                  required:
                                    - type
                                    - actionType
                                    - executionMode
                                    - variants
                                - type: object
                                  title: LinkedIn View Profile
                                  description: LinkedIn view profile action step
                                  properties:
                                    id:
                                      type: integer
                                      nullable: true
                                      readOnly: true
                                      description: Unique identifier for the step
                                    parentId:
                                      type: integer
                                      nullable: true
                                      description: ID of the parent step (for branching)
                                    ifConditionPositive:
                                      type: boolean
                                      nullable: true
                                      description: >-
                                        Whether this step is on the positive
                                        branch of a condition
                                    type:
                                      type: string
                                      enum:
                                        - linkedIn
                                      description: Step type discriminator
                                    actionType:
                                      type: string
                                      enum:
                                        - viewProfile
                                      description: LinkedIn action type discriminator
                                    delayInMinutes:
                                      type: integer
                                      minimum: 0
                                      description: >-
                                        Delay in minutes before executing this
                                        step. Defaults to 0 when omitted on
                                        create; when omitted on update, the
                                        current value is kept.
                                    executionMode:
                                      type: string
                                      description: Execution mode for the action
                                      enum:
                                        - automatic
                                        - manual
                                    description:
                                      type: string
                                      description: >-
                                        Description or notes for the profile
                                        view
                                  required:
                                    - type
                                    - actionType
                                    - executionMode
                                - type: object
                                  title: LinkedIn Endorse Skills
                                  description: LinkedIn endorse skills action step
                                  properties:
                                    id:
                                      type: integer
                                      nullable: true
                                      readOnly: true
                                      description: Unique identifier for the step
                                    parentId:
                                      type: integer
                                      nullable: true
                                      description: ID of the parent step (for branching)
                                    ifConditionPositive:
                                      type: boolean
                                      nullable: true
                                      description: >-
                                        Whether this step is on the positive
                                        branch of a condition
                                    type:
                                      type: string
                                      enum:
                                        - linkedIn
                                      description: Step type discriminator
                                    actionType:
                                      type: string
                                      enum:
                                        - endorseSkills
                                      description: LinkedIn action type discriminator
                                    delayInMinutes:
                                      type: integer
                                      minimum: 0
                                      description: >-
                                        Delay in minutes before executing this
                                        step. Defaults to 0 when omitted on
                                        create; when omitted on update, the
                                        current value is kept.
                                    numberOfSkills:
                                      type: integer
                                      minimum: 1
                                      maximum: 3
                                      description: Number of skills to endorse (1-3)
                                  required:
                                    - type
                                    - actionType
                                    - numberOfSkills
                                - type: object
                                  title: LinkedIn Voice Message
                                  description: >-
                                    LinkedIn voice message action step that
                                    sends a pre-recorded audio message. Upload
                                    the recording with `POST
                                    /v3/attachments/voice` and pass the returned
                                    `id` as `voiceAttachmentId`.
                                  properties:
                                    id:
                                      type: integer
                                      nullable: true
                                      readOnly: true
                                      description: Unique identifier for the step
                                    parentId:
                                      type: integer
                                      nullable: true
                                      description: ID of the parent step (for branching)
                                    ifConditionPositive:
                                      type: boolean
                                      nullable: true
                                      description: >-
                                        Whether this step is on the positive
                                        branch of a condition
                                    type:
                                      type: string
                                      enum:
                                        - linkedIn
                                      description: Step type discriminator
                                    actionType:
                                      type: string
                                      enum:
                                        - voiceMessage
                                      description: LinkedIn action type discriminator
                                    delayInMinutes:
                                      type: integer
                                      minimum: 0
                                      description: >-
                                        Delay in minutes before executing this
                                        step. Defaults to 0 when omitted on
                                        create; when omitted on update, the
                                        current value is kept.
                                    voiceAttachmentId:
                                      type: integer
                                      nullable: true
                                      description: >-
                                        ID of the recording returned by `POST
                                        /v3/attachments/voice`. The recording
                                        must be uploaded by a member of your
                                        team. When the step has several
                                        recordings, this is the recording of its
                                        first variant; manage the others with
                                        the step variants endpoints. `null` in
                                        responses for a step that holds no
                                        recording.
                                  required:
                                    - type
                                    - actionType
                                    - voiceAttachmentId
                                - type: object
                                  title: LinkedIn AI Voice Message
                                  description: >-
                                    LinkedIn AI voice message action step. The
                                    message text is converted to speech at send
                                    time using the voice linked to the sending
                                    LinkedIn account, falling back to the team's
                                    default voice.
                                  properties:
                                    id:
                                      type: integer
                                      nullable: true
                                      readOnly: true
                                      description: Unique identifier for the step
                                    parentId:
                                      type: integer
                                      nullable: true
                                      description: ID of the parent step (for branching)
                                    ifConditionPositive:
                                      type: boolean
                                      nullable: true
                                      description: >-
                                        Whether this step is on the positive
                                        branch of a condition
                                    type:
                                      type: string
                                      enum:
                                        - linkedIn
                                      description: Step type discriminator
                                    actionType:
                                      type: string
                                      enum:
                                        - aiVoiceMessage
                                      description: LinkedIn action type discriminator
                                    delayInMinutes:
                                      type: integer
                                      minimum: 0
                                      description: >-
                                        Delay in minutes before executing this
                                        step. Defaults to 0 when omitted on
                                        create; when omitted on update, the
                                        current value is kept.
                                    message:
                                      type: string
                                      description: >-
                                        Text spoken in the generated voice
                                        message. Supports the same variables as
                                        other message steps. Variable names are
                                        case-sensitive, for example
                                        `{{FirstName}}`. See `GET
                                        /v3/email-templates/variables` for the
                                        full list.
                                    speed:
                                      type: number
                                      format: double
                                      nullable: true
                                      minimum: 0.5
                                      maximum: 2
                                      description: >-
                                        Playback speed of the generated speech.
                                        Omit to use the default speed.
                                    backgroundNoiseId:
                                      type: integer
                                      nullable: true
                                      description: >-
                                        Background noise preset mixed into the
                                        generated audio. Valid IDs come from
                                        `GET /v3/voices/background-noises`. Omit
                                        for no background noise.
                                  required:
                                    - type
                                    - actionType
                                    - message
                                - type: object
                                  title: LinkedIn Like Recent Posts
                                  description: LinkedIn like recent posts action step
                                  properties:
                                    id:
                                      type: integer
                                      nullable: true
                                      readOnly: true
                                      description: Unique identifier for the step
                                    parentId:
                                      type: integer
                                      nullable: true
                                      description: ID of the parent step (for branching)
                                    ifConditionPositive:
                                      type: boolean
                                      nullable: true
                                      description: >-
                                        Whether this step is on the positive
                                        branch of a condition
                                    type:
                                      type: string
                                      enum:
                                        - linkedIn
                                      description: Step type discriminator
                                    actionType:
                                      type: string
                                      enum:
                                        - likeRecentPosts
                                      description: LinkedIn action type discriminator
                                    delayInMinutes:
                                      type: integer
                                      minimum: 0
                                      description: >-
                                        Delay in minutes before executing this
                                        step. Defaults to 0 when omitted on
                                        create; when omitted on update, the
                                        current value is kept.
                                  required:
                                    - type
                                    - actionType
                                - type: object
                                  title: LinkedIn Follow Profile
                                  description: LinkedIn follow profile action step
                                  properties:
                                    id:
                                      type: integer
                                      nullable: true
                                      readOnly: true
                                      description: Unique identifier for the step
                                    parentId:
                                      type: integer
                                      nullable: true
                                      description: ID of the parent step (for branching)
                                    ifConditionPositive:
                                      type: boolean
                                      nullable: true
                                      description: >-
                                        Whether this step is on the positive
                                        branch of a condition
                                    type:
                                      type: string
                                      enum:
                                        - linkedIn
                                      description: Step type discriminator
                                    actionType:
                                      type: string
                                      enum:
                                        - followProfile
                                      description: LinkedIn action type discriminator
                                    delayInMinutes:
                                      type: integer
                                      minimum: 0
                                      description: >-
                                        Delay in minutes before executing this
                                        step. Defaults to 0 when omitted on
                                        create; when omitted on update, the
                                        current value is kept.
                                  required:
                                    - type
                                    - actionType
                                - type: object
                                  title: LinkedIn Comment On Recent Post
                                  description: >-
                                    LinkedIn comment on a recent post action
                                    step. The AI writes a comment on the
                                    contact's most recent post using the

                                    instructions in `aiPromptText`. Use the AI
                                    prompt preview endpoints to check what a
                                    prompt produces before saving

                                    it on a step. How many of these comments an
                                    account posts per day is governed by that
                                    LinkedIn account's own daily

                                    limits, not by this step.
                                  properties:
                                    id:
                                      type: integer
                                      nullable: true
                                      readOnly: true
                                      description: Unique identifier for the step
                                    parentId:
                                      type: integer
                                      nullable: true
                                      description: ID of the parent step (for branching)
                                    ifConditionPositive:
                                      type: boolean
                                      nullable: true
                                      description: >-
                                        Whether this step is on the positive
                                        branch of a condition
                                    type:
                                      type: string
                                      enum:
                                        - linkedIn
                                      description: Step type discriminator
                                    actionType:
                                      type: string
                                      enum:
                                        - commentOnRecentPost
                                      description: LinkedIn action type discriminator
                                    delayInMinutes:
                                      type: integer
                                      minimum: 0
                                      description: >-
                                        Delay in minutes before executing this
                                        step. Defaults to 0 when omitted on
                                        create; when omitted on update, the
                                        current value is kept.
                                    aiPromptText:
                                      type: string
                                      description: >-
                                        The instructions the AI follows when
                                        writing the comment
                                    skipIfNoPostsInDays:
                                      type: integer
                                      nullable: true
                                      description: >-
                                        Skip the contact when their most recent
                                        post is older than this many days
                                    skipTopics:
                                      type: array
                                      items:
                                        type: string
                                      description: >-
                                        Topics the AI should refuse to comment
                                        on. The step is skipped when the post
                                        matches one of these.
                                  required:
                                    - type
                                    - actionType
                                    - aiPromptText
                            - type: object
                              title: Call
                              description: Call step with script/notes
                              properties:
                                id:
                                  type: integer
                                  nullable: true
                                  readOnly: true
                                  description: Unique identifier for the step
                                parentId:
                                  type: integer
                                  nullable: true
                                  description: ID of the parent step (for branching)
                                ifConditionPositive:
                                  type: boolean
                                  nullable: true
                                  description: >-
                                    Whether this step is on the positive branch
                                    of a condition
                                type:
                                  type: string
                                  enum:
                                    - call
                                  description: Step type discriminator
                                delayInMinutes:
                                  type: integer
                                  minimum: 0
                                  description: >-
                                    Delay in minutes before executing this step.
                                    Defaults to 0 when omitted on create; when
                                    omitted on update, the current value is
                                    kept.
                                message:
                                  type: string
                                  description: Notes or script for the call
                              required:
                                - type
                            - type: object
                              title: SMS
                              description: SMS step with message content
                              properties:
                                id:
                                  type: integer
                                  nullable: true
                                  readOnly: true
                                  description: Unique identifier for the step
                                parentId:
                                  type: integer
                                  nullable: true
                                  description: ID of the parent step (for branching)
                                ifConditionPositive:
                                  type: boolean
                                  nullable: true
                                  description: >-
                                    Whether this step is on the positive branch
                                    of a condition
                                type:
                                  type: string
                                  enum:
                                    - sms
                                  description: Step type discriminator
                                delayInMinutes:
                                  type: integer
                                  minimum: 0
                                  description: >-
                                    Delay in minutes before executing this step.
                                    Defaults to 0 when omitted on create; when
                                    omitted on update, the current value is
                                    kept.
                                executionMode:
                                  type: string
                                  description: Execution mode for the SMS step
                                  enum:
                                    - automatic
                                    - manual
                                message:
                                  type: string
                                  description: >-
                                    SMS message content. Variable names are
                                    case-sensitive, for example `{{FirstName}}`.
                                    See `GET /v3/email-templates/variables` for
                                    the full list. Unknown variables can be
                                    rejected with 400.
                              required:
                                - type
                                - executionMode
                                - message
                            - type: object
                              title: WhatsApp
                              description: WhatsApp step with message content
                              properties:
                                id:
                                  type: integer
                                  nullable: true
                                  readOnly: true
                                  description: Unique identifier for the step
                                parentId:
                                  type: integer
                                  nullable: true
                                  description: ID of the parent step (for branching)
                                ifConditionPositive:
                                  type: boolean
                                  nullable: true
                                  description: >-
                                    Whether this step is on the positive branch
                                    of a condition
                                type:
                                  type: string
                                  enum:
                                    - whatsApp
                                  description: Step type discriminator
                                delayInMinutes:
                                  type: integer
                                  minimum: 0
                                  description: >-
                                    Delay in minutes before executing this step.
                                    Defaults to 0 when omitted on create; when
                                    omitted on update, the current value is
                                    kept.
                                message:
                                  type: string
                                  description: >-
                                    WhatsApp message content. Variable names are
                                    case-sensitive, for example `{{FirstName}}`.
                                    See `GET /v3/email-templates/variables` for
                                    the full list.
                              required:
                                - type
                                - message
                            - type: object
                              title: Zapier
                              description: Zapier integration step
                              properties:
                                id:
                                  type: integer
                                  nullable: true
                                  readOnly: true
                                  description: Unique identifier for the step
                                parentId:
                                  type: integer
                                  nullable: true
                                  description: ID of the parent step (for branching)
                                ifConditionPositive:
                                  type: boolean
                                  nullable: true
                                  description: >-
                                    Whether this step is on the positive branch
                                    of a condition
                                type:
                                  type: string
                                  enum:
                                    - zapier
                                  description: Step type discriminator
                                delayInMinutes:
                                  type: integer
                                  minimum: 0
                                  description: >-
                                    Delay in minutes before executing this step.
                                    Defaults to 0 when omitted on create; when
                                    omitted on update, the current value is
                                    kept.
                                name:
                                  type: string
                                  description: Name of the Zapier step
                                action:
                                  type: string
                                  description: Zapier action type
                                  enum:
                                    - immediately
                                    - wait
                              required:
                                - type
                                - name
                                - action
                            - type: object
                              title: Task
                              description: Task step for manual actions
                              properties:
                                id:
                                  type: integer
                                  nullable: true
                                  readOnly: true
                                  description: Unique identifier for the step
                                parentId:
                                  type: integer
                                  nullable: true
                                  description: ID of the parent step (for branching)
                                ifConditionPositive:
                                  type: boolean
                                  nullable: true
                                  description: >-
                                    Whether this step is on the positive branch
                                    of a condition
                                type:
                                  type: string
                                  enum:
                                    - task
                                  description: Step type discriminator
                                delayInMinutes:
                                  type: integer
                                  minimum: 0
                                  description: >-
                                    Delay in minutes before executing this step.
                                    Defaults to 0 when omitted on create; when
                                    omitted on update, the current value is
                                    kept.
                                actionType:
                                  type: string
                                  description: Type of task action to perform
                                  enum:
                                    - toDo
                                    - meeting
                                description:
                                  type: string
                                  description: Task description or instructions
                              required:
                                - type
                                - actionType
                                - description
                            - type: object
                              title: Condition
                              description: >-
                                Condition step that evaluates rules before
                                proceeding
                              properties:
                                id:
                                  type: integer
                                  nullable: true
                                  readOnly: true
                                  description: Unique identifier for the step
                                parentId:
                                  type: integer
                                  nullable: true
                                  description: ID of the parent step (for branching)
                                ifConditionPositive:
                                  type: boolean
                                  nullable: true
                                  description: >-
                                    Whether this step is on the positive branch
                                    of a condition
                                type:
                                  type: string
                                  enum:
                                    - condition
                                  description: Step type discriminator
                                delayInMinutes:
                                  type: integer
                                  minimum: 0
                                  description: >-
                                    Delay in minutes before executing this step.
                                    Defaults to 0 when omitted on create; when
                                    omitted on update, the current value is
                                    kept.
                                waitInMinutes:
                                  type: integer
                                  minimum: 0
                                  description: >-
                                    Wait time in minutes for condition
                                    evaluation. Defaults to 0 when omitted on
                                    create; when omitted on update, the current
                                    value is kept. A condition with a
                                    `linkedInConnectionStatus` rule needs at
                                    least 120 - a lower value is raised to 120
                                    on create and rejected with 400 on update.
                                conditions:
                                  type: array
                                  minItems: 1
                                  maxItems: 20
                                  description: >-
                                    Conditions on the contact, in the same shape
                                    as the contacts filter, joined with AND; one
                                    condition per field. `GET
                                    /v3/sequences/steps/condition/fields` lists
                                    the fields, their operators, value types and
                                    allowed values. `currentStepId` and
                                    `currentStepDisplayName` refer to this
                                    sequence's steps, so steps created together
                                    with the sequence in `POST /v3/sequences`
                                    cannot use them; add such a step with `POST
                                    /v3/sequences/{id}/steps`. A condition
                                    returned with `invalid: true` is kept when a
                                    PUT of the same step sends it back
                                    unchanged, and rejected anywhere else.
                                  items:
                                    type: object
                                    title: Filter condition
                                    description: >-
                                      One field's rules: an `operator` with its
                                      `value`, an `and` list of rules that must
                                      all match, or an `or` list of
                                      alternatives.
                                    properties:
                                      field:
                                        type: string
                                        description: Field name from the fields list.
                                      customFieldKey:
                                        type: string
                                        description: >-
                                          Set on `customFields` conditions. The
                                          custom field's key (its id).
                                      operator:
                                        type: string
                                        description: >-
                                          One of the filter operators. On an
                                          `invalid` condition, the condition name
                                          as stored.
                                      value:
                                        title: Filter condition value
                                        description: >-
                                          The value the operator compares against;
                                          its shape is the operator's `valueType`
                                          in the fields list.
                                        anyOf:
                                          - type: string
                                          - type: number
                                          - type: boolean
                                          - type: array
                                            minItems: 1
                                            maxItems: 200
                                            items:
                                              anyOf:
                                                - type: string
                                                - type: number
                                          - type: object
                                            title: Filter date range
                                            description: >-
                                              Calendar days for `between`, both
                                              inclusive, compared in UTC.
                                            required:
                                              - from
                                              - to
                                            properties:
                                              from:
                                                type: string
                                                format: date
                                                description: First day of the range (`yyyy-MM-dd`).
                                              to:
                                                type: string
                                                format: date
                                                description: >-
                                                  Last day of the range (`yyyy-MM-dd`),
                                                  not before `from`.
                                      and:
                                        type: array
                                        description: Rules on this field that must all match.
                                        items:
                                          type: object
                                          title: Filter condition branch
                                          description: >-
                                            One operator and its value inside a
                                            condition's `and` or `or` list.
                                          required:
                                            - operator
                                          properties:
                                            operator:
                                              type: string
                                              title: Filter operator
                                              description: >-
                                                Comparison a filter condition applies.
                                                Matched case-insensitively. All date
                                                comparisons are in UTC. `between`,
                                                `isToday` and `exactlyDaysAgo` match
                                                whole UTC calendar days, starting at
                                                00:00 UTC; `withinLastDays` and
                                                `moreThanDaysAgo` count N days back from
                                                the current UTC time.
                                              enum:
                                                - equals
                                                - notEquals
                                                - in
                                                - notIn
                                                - contains
                                                - notContains
                                                - containsAny
                                                - containsAll
                                                - startsWith
                                                - greaterThan
                                                - lessThan
                                                - isEmpty
                                                - isNotEmpty
                                                - between
                                                - withinLastDays
                                                - moreThanDaysAgo
                                                - isToday
                                                - exactlyDaysAgo
                                            value:
                                              title: Filter condition value
                                              description: >-
                                                The value the operator compares against;
                                                its shape is the operator's `valueType`
                                                in the fields list.
                                              anyOf:
                                                - type: string
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  minItems: 1
                                                  maxItems: 200
                                                  items:
                                                    anyOf:
                                                      - type: string
                                                      - type: number
                                                - type: object
                                                  title: Filter date range
                                                  description: >-
                                                    Calendar days for `between`, both
                                                    inclusive, compared in UTC.
                                                  required:
                                                    - from
                                                    - to
                                                  properties:
                                                    from:
                                                      type: string
                                                      format: date
                                                      description: First day of the range (`yyyy-MM-dd`).
                                                    to:
                                                      type: string
                                                      format: date
                                                      description: >-
                                                        Last day of the range (`yyyy-MM-dd`),
                                                        not before `from`.
                                      or:
                                        type: array
                                        description: >-
                                          Alternatives on this field, any of which
                                          may match.
                                        items:
                                          type: object
                                          title: Filter condition branch
                                          description: >-
                                            One operator and its value inside a
                                            condition's `and` or `or` list.
                                          required:
                                            - operator
                                          properties:
                                            operator:
                                              type: string
                                              title: Filter operator
                                              description: >-
                                                Comparison a filter condition applies.
                                                Matched case-insensitively. All date
                                                comparisons are in UTC. `between`,
                                                `isToday` and `exactlyDaysAgo` match
                                                whole UTC calendar days, starting at
                                                00:00 UTC; `withinLastDays` and
                                                `moreThanDaysAgo` count N days back from
                                                the current UTC time.
                                              enum:
                                                - equals
                                                - notEquals
                                                - in
                                                - notIn
                                                - contains
                                                - notContains
                                                - containsAny
                                                - containsAll
                                                - startsWith
                                                - greaterThan
                                                - lessThan
                                                - isEmpty
                                                - isNotEmpty
                                                - between
                                                - withinLastDays
                                                - moreThanDaysAgo
                                                - isToday
                                                - exactlyDaysAgo
                                            value:
                                              title: Filter condition value
                                              description: >-
                                                The value the operator compares against;
                                                its shape is the operator's `valueType`
                                                in the fields list.
                                              anyOf:
                                                - type: string
                                                - type: number
                                                - type: boolean
                                                - type: array
                                                  minItems: 1
                                                  maxItems: 200
                                                  items:
                                                    anyOf:
                                                      - type: string
                                                      - type: number
                                                - type: object
                                                  title: Filter date range
                                                  description: >-
                                                    Calendar days for `between`, both
                                                    inclusive, compared in UTC.
                                                  required:
                                                    - from
                                                    - to
                                                  properties:
                                                    from:
                                                      type: string
                                                      format: date
                                                      description: First day of the range (`yyyy-MM-dd`).
                                                    to:
                                                      type: string
                                                      format: date
                                                      description: >-
                                                        Last day of the range (`yyyy-MM-dd`),
                                                        not before `from`.
                                      invalid:
                                        type: boolean
                                        description: >-
                                          Condition steps only. `true` when the
                                          stored rule has no V3 condition;
                                          `field`, `operator` and `value` then
                                          hold the stored property, condition and
                                          value. A PUT of the same step keeps such
                                          a condition when it is sent back
                                          unchanged.
                                    example:
                                      field: stage
                                      or:
                                        - operator: equals
                                          value: Interested
                                        - operator: isEmpty
                              required:
                                - type
                                - conditions
                        description: >-
                          Array of sequence steps, ordered by their position
                          number in the sequence
                example:
                  id: 123
                  ownerUserId: 42
                  name: Sales Outreach 2024
                  status: active
                  created: '2024-03-08T14:30:00+00:00'
                  isArchived: false
                  health: degraded
                  scheduleId: 1
                  emailAccounts:
                    - id: 1
                      email: sales@company.com
                    - id: 2
                      email: outreach@company.com
                  linkedInAccounts:
                    - id: 42
                      name: John Doe
                      profileUrl: https://www.linkedin.com/in/johndoe
                      status: enabled
                  settings:
                    emailsCountPerDay: 50
                    daysToFinishProspect: 14
                    emailSendingDelaySeconds: 30
                    dailyThrottling: 200
                    disableOpensTracking: false
                    repliesHandlingType: markAsFinished
                    enableLinksTracking: true
                  steps:
                    - id: 1323
                      type: email
                      delayInMinutes: 0
                      executionMode: automatic
                      variants:
                        - id: 1
                          subject: Quick question about {{Company}}
                          message: >-
                            <p>Hi {{FirstName}},</p><p>I noticed you are leading
                            initiatives at {{Company}} and wanted to reach
                            out.</p><p>Best regards, John</p>
                    - id: 43432
                      type: linkedIn
                      actionType: message
                      delayInMinutes: 2880
                      executionMode: automatic
                      variants:
                        - id: 2
                          message: >-
                            Hi {{FirstName}}, I noticed your great work at
                            {{Company}}. Would love to connect!
                          isEnabled: true
        '400':
          description: Validation failure on the route parameter or request body
          content:
            application/problem+json:
              schema:
                allOf:
                  - allOf:
                      - type: object
                        title: Problem Details
                        description: >-
                          Bare RFC 9457 problem-details envelope. Returned by
                          middleware-level errors

                          that don't carry domain context: 401 Unauthorized
                          (auth middleware),

                          429 Too Many Requests (rate-limit middleware), and
                          route-level 404 / 405 /

                          415 (framework middleware).


                          Business and validation responses extend this envelope
                          and add additional

                          fields — see `business-problem.model.yaml` (adds
                          `code` slug) and

                          `validation-problem.model.yaml` (adds `errors[]`
                          array).
                        properties:
                          title:
                            type: string
                            description: Short, human-readable summary of the problem.
                          status:
                            type: integer
                            description: HTTP status code.
                            minimum: 100
                            maximum: 599
                          detail:
                            type: string
                            description: >-
                              Human-readable explanation specific to this
                              occurrence.
                      - type: object
                        properties:
                          errors:
                            type: array
                            description: >-
                              List of field-level validation errors. Always
                              non-empty when this

                              envelope is returned. Each entry pins a single
                              offending field

                              via JSON Pointer plus a sanitized detail string.
                            items:
                              type: object
                              title: Validation Error
                              description: A single field-level validation error.
                              properties:
                                pointer:
                                  type: string
                                  description: >-
                                    JSON Pointer (RFC 6901) to the offending
                                    field — e.g.

                                    `/steps/0/subject`.


                                    * An empty string (`""`) means the error
                                    applies to the whole
                                      request body (e.g. body is missing or unparseable).
                                    * For route or query parameter failures the
                                    pointer is the parameter
                                      name (e.g. `id`, `top`).
                                  example: /steps/0/subject
                                detail:
                                  type: string
                                  description: >-
                                    Sanitized, human-readable explanation of
                                    this field's error. One of a

                                    small set of templates — `"Field is
                                    required."`, `"Value has an

                                    invalid type."`, `"Value has an invalid
                                    format."`, `"Request body is

                                    not valid JSON."`, `"The request body is
                                    required and cannot be

                                    empty."` — or a FluentValidator message on
                                    body endpoints.
                                  example: Field is required.
                    title: Validation Problem
                    description: >-
                      Input-validation error response at 400. Returned when the
                      request body

                      fails binding, FluentValidator rules, or when route/query
                      parameter

                      attribute validation (`[Range]`, `[Required]`) fails.
                      Route, query, and

                      body errors are combined into a single `errors[]` array —
                      clients should

                      not assume one error per request.
                  - example:
                      title: Validation failed
                      status: 400
                      detail: The request body contains validation errors.
                      errors:
                        - pointer: /name
                          detail: Field is required.
              example:
                title: Validation failed
                status: 400
                detail: One or more validation errors occurred.
                errors:
                  - pointer: id
                    detail: The field id must be between 1 and 2147483647.
        '401':
          description: >-
            Unauthorized. The response body is empty; check the
            `WWW-Authenticate` header for the expected scheme.
          content:
            application/problem+json:
              schema:
                allOf:
                  - type: object
                    title: Problem Details
                    description: >-
                      Bare RFC 9457 problem-details envelope. Returned by
                      middleware-level errors

                      that don't carry domain context: 401 Unauthorized (auth
                      middleware),

                      429 Too Many Requests (rate-limit middleware), and
                      route-level 404 / 405 /

                      415 (framework middleware).


                      Business and validation responses extend this envelope and
                      add additional

                      fields — see `business-problem.model.yaml` (adds `code`
                      slug) and

                      `validation-problem.model.yaml` (adds `errors[]` array).
                    properties:
                      title:
                        type: string
                        description: Short, human-readable summary of the problem.
                      status:
                        type: integer
                        description: HTTP status code.
                        minimum: 100
                        maximum: 599
                      detail:
                        type: string
                        description: >-
                          Human-readable explanation specific to this
                          occurrence.
                  - example:
                      title: Unauthorized
                      status: 401
                      detail: Authentication credentials are missing or invalid.
        '403':
          description: User lacks permission to view/update this sequence
          content:
            application/problem+json:
              schema:
                allOf:
                  - allOf:
                      - type: object
                        title: Problem Details
                        description: >-
                          Bare RFC 9457 problem-details envelope. Returned by
                          middleware-level errors

                          that don't carry domain context: 401 Unauthorized
                          (auth middleware),

                          429 Too Many Requests (rate-limit middleware), and
                          route-level 404 / 405 /

                          415 (framework middleware).


                          Business and validation responses extend this envelope
                          and add additional

                          fields — see `business-problem.model.yaml` (adds
                          `code` slug) and

                          `validation-problem.model.yaml` (adds `errors[]`
                          array).
                        properties:
                          title:
                            type: string
                            description: Short, human-readable summary of the problem.
                          status:
                            type: integer
                            description: HTTP status code.
                            minimum: 100
                            maximum: 599
                          detail:
                            type: string
                            description: >-
                              Human-readable explanation specific to this
                              occurrence.
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              Stable, machine-readable error slug in the form

                              `"<resource>.<variant>"`.


                              * `resource` is the camelCased domain — e.g.
                              `sequence`,
                                `contact`, `inboxThread`, `blacklistDomainRule`.
                              * `variant` is the camelCased specific failure
                              mode — e.g.
                                `notFound`, `forbidden`, `duplicateName`, `globalRuleReadOnly`.

                              Use `code` for programmatic error handling; use
                              `detail` for

                              user-facing messages. Slugs are stable across
                              server-side enum

                              reorderings and never change meaning under a given
                              resource.
                            pattern: ^[a-z][a-zA-Z0-9]*(\.[a-z][a-zA-Z0-9]*)+$
                            example: sequence.notFound
                    title: Business Problem
                    description: >-
                      Domain error response carrying a stable, namespaced error
                      slug.

                      Emitted for most 4xx responses (business 400, 403, 404,
                      409, …) and

                      for 503 when a downstream dependency is unavailable.
                  - example:
                      title: Forbidden
                      status: 403
                      detail: You do not have permission to access this resource.
                      code: sequence.forbidden
              example:
                title: Forbidden
                status: 403
                detail: You do not have permission to view this sequence.
                code: sequence.forbidden
        '404':
          description: >-
            Sequence or referenced resource (scheduler, email account, template,
            LinkedIn account) not found
          content:
            application/problem+json:
              schema:
                allOf:
                  - allOf:
                      - type: object
                        title: Problem Details
                        description: >-
                          Bare RFC 9457 problem-details envelope. Returned by
                          middleware-level errors

                          that don't carry domain context: 401 Unauthorized
                          (auth middleware),

                          429 Too Many Requests (rate-limit middleware), and
                          route-level 404 / 405 /

                          415 (framework middleware).


                          Business and validation responses extend this envelope
                          and add additional

                          fields — see `business-problem.model.yaml` (adds
                          `code` slug) and

                          `validation-problem.model.yaml` (adds `errors[]`
                          array).
                        properties:
                          title:
                            type: string
                            description: Short, human-readable summary of the problem.
                          status:
                            type: integer
                            description: HTTP status code.
                            minimum: 100
                            maximum: 599
                          detail:
                            type: string
                            description: >-
                              Human-readable explanation specific to this
                              occurrence.
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              Stable, machine-readable error slug in the form

                              `"<resource>.<variant>"`.


                              * `resource` is the camelCased domain — e.g.
                              `sequence`,
                                `contact`, `inboxThread`, `blacklistDomainRule`.
                              * `variant` is the camelCased specific failure
                              mode — e.g.
                                `notFound`, `forbidden`, `duplicateName`, `globalRuleReadOnly`.

                              Use `code` for programmatic error handling; use
                              `detail` for

                              user-facing messages. Slugs are stable across
                              server-side enum

                              reorderings and never change meaning under a given
                              resource.
                            pattern: ^[a-z][a-zA-Z0-9]*(\.[a-z][a-zA-Z0-9]*)+$
                            example: sequence.notFound
                    title: Business Problem
                    description: >-
                      Domain error response carrying a stable, namespaced error
                      slug.

                      Emitted for most 4xx responses (business 400, 403, 404,
                      409, …) and

                      for 503 when a downstream dependency is unavailable.
                  - example:
                      title: Not Found
                      status: 404
                      detail: The requested resource was not found.
                      code: sequence.notFound
              example:
                title: Not Found
                status: 404
                detail: Sequence with ID 42 is not found.
                code: sequence.notFound
        '409':
          description: Sequence is archived and cannot be updated
          content:
            application/problem+json:
              schema:
                allOf:
                  - allOf:
                      - type: object
                        title: Problem Details
                        description: >-
                          Bare RFC 9457 problem-details envelope. Returned by
                          middleware-level errors

                          that don't carry domain context: 401 Unauthorized
                          (auth middleware),

                          429 Too Many Requests (rate-limit middleware), and
                          route-level 404 / 405 /

                          415 (framework middleware).


                          Business and validation responses extend this envelope
                          and add additional

                          fields — see `business-problem.model.yaml` (adds
                          `code` slug) and

                          `validation-problem.model.yaml` (adds `errors[]`
                          array).
                        properties:
                          title:
                            type: string
                            description: Short, human-readable summary of the problem.
                          status:
                            type: integer
                            description: HTTP status code.
                            minimum: 100
                            maximum: 599
                          detail:
                            type: string
                            description: >-
                              Human-readable explanation specific to this
                              occurrence.
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              Stable, machine-readable error slug in the form

                              `"<resource>.<variant>"`.


                              * `resource` is the camelCased domain — e.g.
                              `sequence`,
                                `contact`, `inboxThread`, `blacklistDomainRule`.
                              * `variant` is the camelCased specific failure
                              mode — e.g.
                                `notFound`, `forbidden`, `duplicateName`, `globalRuleReadOnly`.

                              Use `code` for programmatic error handling; use
                              `detail` for

                              user-facing messages. Slugs are stable across
                              server-side enum

                              reorderings and never change meaning under a given
                              resource.
                            pattern: ^[a-z][a-zA-Z0-9]*(\.[a-z][a-zA-Z0-9]*)+$
                            example: sequence.notFound
                    title: Business Problem
                    description: >-
                      Domain error response carrying a stable, namespaced error
                      slug.

                      Emitted for most 4xx responses (business 400, 403, 404,
                      409, …) and

                      for 503 when a downstream dependency is unavailable.
                  - example:
                      title: Conflict
                      status: 409
                      detail: A resource with this name already exists.
                      code: sequence.duplicateName
              example:
                title: Conflict
                status: 409
                detail: Cannot update sequence with ID 42 because it is archived.
                code: sequence.archived
        '429':
          description: Too Many Requests
          headers:
            Retry-After:
              description: Seconds to wait before retrying
              schema:
                type: integer
                minimum: 1
          content:
            application/problem+json:
              schema:
                allOf:
                  - type: object
                    title: Problem Details
                    description: >-
                      Bare RFC 9457 problem-details envelope. Returned by
                      middleware-level errors

                      that don't carry domain context: 401 Unauthorized (auth
                      middleware),

                      429 Too Many Requests (rate-limit middleware), and
                      route-level 404 / 405 /

                      415 (framework middleware).


                      Business and validation responses extend this envelope and
                      add additional

                      fields — see `business-problem.model.yaml` (adds `code`
                      slug) and

                      `validation-problem.model.yaml` (adds `errors[]` array).
                    properties:
                      title:
                        type: string
                        description: Short, human-readable summary of the problem.
                      status:
                        type: integer
                        description: HTTP status code.
                        minimum: 100
                        maximum: 599
                      detail:
                        type: string
                        description: >-
                          Human-readable explanation specific to this
                          occurrence.
              example:
                title: Too Many Requests
                status: 429
                detail: API calls quota exceeded! maximum admitted 100 per 1m.
components:
  schemas:
    email.type:
      type: object
      title: Email
      description: Email step with variant configuration
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - email
          description: Step type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        executionMode:
          type: string
          description: Execution mode for the email step
          enum:
            - automatic
            - manual
        variants:
          type: array
          description: Array of email variants (A/B test versions)
          items:
            type: object
            title: Email Variant
            description: Individual email variant within an email step.
            properties:
              id:
                type: integer
                description: Unique identifier for this email variant
              subject:
                type: string
                nullable: true
                description: >-
                  Email subject line. Variable names are case-sensitive, for
                  example `{{FirstName}}`. See `GET
                  /v3/email-templates/variables` for the full list. Unknown
                  variables can be rejected with 400.
              message:
                type: string
                nullable: true
                description: >-
                  Email message content. Variable names are case-sensitive, for
                  example `{{FirstName}}`. See `GET
                  /v3/email-templates/variables` for the full list. Unknown
                  variables can be rejected with 400.
              attachmentIds:
                type: array
                nullable: true
                writeOnly: true
                maxItems: 3
                items:
                  type: integer
                description: >-
                  **Write-only.** IDs of previously uploaded attachments to
                  attach to this variant. Upload files via `POST
                  /v3/attachments` first to obtain attachment IDs.

                  A variant may carry up to 3 attachments. Omit to leave
                  attachments unset.

                  Not returned on read — use `hasAttachments` to detect
                  presence.
              hasAttachments:
                type: boolean
                readOnly: true
                description: >-
                  Whether the variant has any attachments. Returned on read;
                  ignored on write.
      required:
        - type
        - executionMode
        - variants
    linkedin.type:
      title: LinkedIn
      description: >-
        LinkedIn step with action type sub-discriminator. Uses type "linkedIn"
        with a second discriminator actionType to select the specific LinkedIn
        action.
      discriminator:
        propertyName: actionType
        mapping:
          message: '#/components/schemas/linkedin-message.type'
          connect: '#/components/schemas/linkedin-connect.type'
          inMail: '#/components/schemas/linkedin-inmail.type'
          viewProfile: '#/components/schemas/linkedin-view-profile.type'
          endorseSkills: '#/components/schemas/linkedin-endorse-skills.type'
          voiceMessage: '#/components/schemas/linkedin-voice-message.type'
          aiVoiceMessage: '#/components/schemas/linkedin-ai-voice-message.type'
          likeRecentPosts: '#/components/schemas/linkedin-like-recent-posts.type'
          followProfile: '#/components/schemas/linkedin-follow-profile.type'
          commentOnRecentPost: '#/components/schemas/linkedin-comment-on-recent-post.type'
      oneOf:
        - type: object
          title: LinkedIn Message
          description: LinkedIn message action step
          properties:
            id:
              type: integer
              nullable: true
              readOnly: true
              description: Unique identifier for the step
            parentId:
              type: integer
              nullable: true
              description: ID of the parent step (for branching)
            ifConditionPositive:
              type: boolean
              nullable: true
              description: Whether this step is on the positive branch of a condition
            type:
              type: string
              enum:
                - linkedIn
              description: Step type discriminator
            actionType:
              type: string
              enum:
                - message
              description: LinkedIn action type discriminator
            delayInMinutes:
              type: integer
              minimum: 0
              description: >-
                Delay in minutes before executing this step. Defaults to 0 when
                omitted on create; when omitted on update, the current value is
                kept.
            executionMode:
              type: string
              description: Execution mode for the action
              enum:
                - automatic
                - manual
            variants:
              type: array
              description: Array of LinkedIn message variants (A/B test versions)
              items:
                type: object
                title: LinkedIn Variant
                description: Individual LinkedIn message/connect variant
                properties:
                  id:
                    type: integer
                    description: Unique identifier for this LinkedIn variant
                  message:
                    type: string
                    description: >-
                      Message content. Variable names are case-sensitive, for
                      example `{{FirstName}}`. See `GET
                      /v3/email-templates/variables` for the full list.
                  isEnabled:
                    type: boolean
                    description: Indicates whether the variant is enabled
                required:
                  - message
                  - isEnabled
          required:
            - type
            - actionType
            - executionMode
            - variants
        - type: object
          title: LinkedIn Connect
          description: LinkedIn connect action step
          properties:
            id:
              type: integer
              nullable: true
              readOnly: true
              description: Unique identifier for the step
            parentId:
              type: integer
              nullable: true
              description: ID of the parent step (for branching)
            ifConditionPositive:
              type: boolean
              nullable: true
              description: Whether this step is on the positive branch of a condition
            type:
              type: string
              enum:
                - linkedIn
              description: Step type discriminator
            actionType:
              type: string
              enum:
                - connect
              description: LinkedIn action type discriminator
            delayInMinutes:
              type: integer
              minimum: 0
              description: >-
                Delay in minutes before executing this step. Defaults to 0 when
                omitted on create; when omitted on update, the current value is
                kept.
            executionMode:
              type: string
              description: Execution mode for the action
              enum:
                - automatic
                - manual
            variants:
              type: array
              description: >-
                Array of LinkedIn connect variants (A/B test versions). Message
                is optional, max 300 characters.
              items:
                type: object
                title: LinkedIn Variant
                description: Individual LinkedIn message/connect variant
                properties:
                  id:
                    type: integer
                    description: Unique identifier for this LinkedIn variant
                  message:
                    type: string
                    description: >-
                      Message content. Variable names are case-sensitive, for
                      example `{{FirstName}}`. See `GET
                      /v3/email-templates/variables` for the full list.
                  isEnabled:
                    type: boolean
                    description: Indicates whether the variant is enabled
                required:
                  - message
                  - isEnabled
          required:
            - type
            - actionType
            - executionMode
            - variants
        - type: object
          title: LinkedIn InMail
          description: LinkedIn InMail action step
          properties:
            id:
              type: integer
              nullable: true
              readOnly: true
              description: Unique identifier for the step
            parentId:
              type: integer
              nullable: true
              description: ID of the parent step (for branching)
            ifConditionPositive:
              type: boolean
              nullable: true
              description: Whether this step is on the positive branch of a condition
            type:
              type: string
              enum:
                - linkedIn
              description: Step type discriminator
            actionType:
              type: string
              enum:
                - inMail
              description: LinkedIn action type discriminator
            delayInMinutes:
              type: integer
              minimum: 0
              description: >-
                Delay in minutes before executing this step. Defaults to 0 when
                omitted on create; when omitted on update, the current value is
                kept.
            executionMode:
              type: string
              description: Execution mode for the InMail
              enum:
                - automatic
                - manual
            variants:
              type: array
              description: Array of LinkedIn InMail variants (A/B test versions)
              items:
                type: object
                title: LinkedIn InMail Variant
                description: Individual LinkedIn InMail variant
                properties:
                  id:
                    type: integer
                    description: Unique identifier for this LinkedIn InMail variant
                  subject:
                    type: string
                    description: >-
                      InMail subject line. Variable names are case-sensitive,
                      for example `{{FirstName}}`. See `GET
                      /v3/email-templates/variables` for the full list.
                  message:
                    type: string
                    description: >-
                      InMail message content. Variable names are case-sensitive,
                      for example `{{FirstName}}`. See `GET
                      /v3/email-templates/variables` for the full list.
                  isEnabled:
                    type: boolean
                    description: Indicates whether the variant is enabled
                required:
                  - subject
                  - message
                  - isEnabled
          required:
            - type
            - actionType
            - executionMode
            - variants
        - type: object
          title: LinkedIn View Profile
          description: LinkedIn view profile action step
          properties:
            id:
              type: integer
              nullable: true
              readOnly: true
              description: Unique identifier for the step
            parentId:
              type: integer
              nullable: true
              description: ID of the parent step (for branching)
            ifConditionPositive:
              type: boolean
              nullable: true
              description: Whether this step is on the positive branch of a condition
            type:
              type: string
              enum:
                - linkedIn
              description: Step type discriminator
            actionType:
              type: string
              enum:
                - viewProfile
              description: LinkedIn action type discriminator
            delayInMinutes:
              type: integer
              minimum: 0
              description: >-
                Delay in minutes before executing this step. Defaults to 0 when
                omitted on create; when omitted on update, the current value is
                kept.
            executionMode:
              type: string
              description: Execution mode for the action
              enum:
                - automatic
                - manual
            description:
              type: string
              description: Description or notes for the profile view
          required:
            - type
            - actionType
            - executionMode
        - type: object
          title: LinkedIn Endorse Skills
          description: LinkedIn endorse skills action step
          properties:
            id:
              type: integer
              nullable: true
              readOnly: true
              description: Unique identifier for the step
            parentId:
              type: integer
              nullable: true
              description: ID of the parent step (for branching)
            ifConditionPositive:
              type: boolean
              nullable: true
              description: Whether this step is on the positive branch of a condition
            type:
              type: string
              enum:
                - linkedIn
              description: Step type discriminator
            actionType:
              type: string
              enum:
                - endorseSkills
              description: LinkedIn action type discriminator
            delayInMinutes:
              type: integer
              minimum: 0
              description: >-
                Delay in minutes before executing this step. Defaults to 0 when
                omitted on create; when omitted on update, the current value is
                kept.
            numberOfSkills:
              type: integer
              minimum: 1
              maximum: 3
              description: Number of skills to endorse (1-3)
          required:
            - type
            - actionType
            - numberOfSkills
        - type: object
          title: LinkedIn Voice Message
          description: >-
            LinkedIn voice message action step that sends a pre-recorded audio
            message. Upload the recording with `POST /v3/attachments/voice` and
            pass the returned `id` as `voiceAttachmentId`.
          properties:
            id:
              type: integer
              nullable: true
              readOnly: true
              description: Unique identifier for the step
            parentId:
              type: integer
              nullable: true
              description: ID of the parent step (for branching)
            ifConditionPositive:
              type: boolean
              nullable: true
              description: Whether this step is on the positive branch of a condition
            type:
              type: string
              enum:
                - linkedIn
              description: Step type discriminator
            actionType:
              type: string
              enum:
                - voiceMessage
              description: LinkedIn action type discriminator
            delayInMinutes:
              type: integer
              minimum: 0
              description: >-
                Delay in minutes before executing this step. Defaults to 0 when
                omitted on create; when omitted on update, the current value is
                kept.
            voiceAttachmentId:
              type: integer
              nullable: true
              description: >-
                ID of the recording returned by `POST /v3/attachments/voice`.
                The recording must be uploaded by a member of your team. When
                the step has several recordings, this is the recording of its
                first variant; manage the others with the step variants
                endpoints. `null` in responses for a step that holds no
                recording.
          required:
            - type
            - actionType
            - voiceAttachmentId
        - type: object
          title: LinkedIn AI Voice Message
          description: >-
            LinkedIn AI voice message action step. The message text is converted
            to speech at send time using the voice linked to the sending
            LinkedIn account, falling back to the team's default voice.
          properties:
            id:
              type: integer
              nullable: true
              readOnly: true
              description: Unique identifier for the step
            parentId:
              type: integer
              nullable: true
              description: ID of the parent step (for branching)
            ifConditionPositive:
              type: boolean
              nullable: true
              description: Whether this step is on the positive branch of a condition
            type:
              type: string
              enum:
                - linkedIn
              description: Step type discriminator
            actionType:
              type: string
              enum:
                - aiVoiceMessage
              description: LinkedIn action type discriminator
            delayInMinutes:
              type: integer
              minimum: 0
              description: >-
                Delay in minutes before executing this step. Defaults to 0 when
                omitted on create; when omitted on update, the current value is
                kept.
            message:
              type: string
              description: >-
                Text spoken in the generated voice message. Supports the same
                variables as other message steps. Variable names are
                case-sensitive, for example `{{FirstName}}`. See `GET
                /v3/email-templates/variables` for the full list.
            speed:
              type: number
              format: double
              nullable: true
              minimum: 0.5
              maximum: 2
              description: >-
                Playback speed of the generated speech. Omit to use the default
                speed.
            backgroundNoiseId:
              type: integer
              nullable: true
              description: >-
                Background noise preset mixed into the generated audio. Valid
                IDs come from `GET /v3/voices/background-noises`. Omit for no
                background noise.
          required:
            - type
            - actionType
            - message
        - type: object
          title: LinkedIn Like Recent Posts
          description: LinkedIn like recent posts action step
          properties:
            id:
              type: integer
              nullable: true
              readOnly: true
              description: Unique identifier for the step
            parentId:
              type: integer
              nullable: true
              description: ID of the parent step (for branching)
            ifConditionPositive:
              type: boolean
              nullable: true
              description: Whether this step is on the positive branch of a condition
            type:
              type: string
              enum:
                - linkedIn
              description: Step type discriminator
            actionType:
              type: string
              enum:
                - likeRecentPosts
              description: LinkedIn action type discriminator
            delayInMinutes:
              type: integer
              minimum: 0
              description: >-
                Delay in minutes before executing this step. Defaults to 0 when
                omitted on create; when omitted on update, the current value is
                kept.
          required:
            - type
            - actionType
        - type: object
          title: LinkedIn Follow Profile
          description: LinkedIn follow profile action step
          properties:
            id:
              type: integer
              nullable: true
              readOnly: true
              description: Unique identifier for the step
            parentId:
              type: integer
              nullable: true
              description: ID of the parent step (for branching)
            ifConditionPositive:
              type: boolean
              nullable: true
              description: Whether this step is on the positive branch of a condition
            type:
              type: string
              enum:
                - linkedIn
              description: Step type discriminator
            actionType:
              type: string
              enum:
                - followProfile
              description: LinkedIn action type discriminator
            delayInMinutes:
              type: integer
              minimum: 0
              description: >-
                Delay in minutes before executing this step. Defaults to 0 when
                omitted on create; when omitted on update, the current value is
                kept.
          required:
            - type
            - actionType
        - type: object
          title: LinkedIn Comment On Recent Post
          description: >-
            LinkedIn comment on a recent post action step. The AI writes a
            comment on the contact's most recent post using the

            instructions in `aiPromptText`. Use the AI prompt preview endpoints
            to check what a prompt produces before saving

            it on a step. How many of these comments an account posts per day is
            governed by that LinkedIn account's own daily

            limits, not by this step.
          properties:
            id:
              type: integer
              nullable: true
              readOnly: true
              description: Unique identifier for the step
            parentId:
              type: integer
              nullable: true
              description: ID of the parent step (for branching)
            ifConditionPositive:
              type: boolean
              nullable: true
              description: Whether this step is on the positive branch of a condition
            type:
              type: string
              enum:
                - linkedIn
              description: Step type discriminator
            actionType:
              type: string
              enum:
                - commentOnRecentPost
              description: LinkedIn action type discriminator
            delayInMinutes:
              type: integer
              minimum: 0
              description: >-
                Delay in minutes before executing this step. Defaults to 0 when
                omitted on create; when omitted on update, the current value is
                kept.
            aiPromptText:
              type: string
              description: The instructions the AI follows when writing the comment
            skipIfNoPostsInDays:
              type: integer
              nullable: true
              description: >-
                Skip the contact when their most recent post is older than this
                many days
            skipTopics:
              type: array
              items:
                type: string
              description: >-
                Topics the AI should refuse to comment on. The step is skipped
                when the post matches one of these.
          required:
            - type
            - actionType
            - aiPromptText
    call.type:
      type: object
      title: Call
      description: Call step with script/notes
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - call
          description: Step type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        message:
          type: string
          description: Notes or script for the call
      required:
        - type
    sms.type:
      type: object
      title: SMS
      description: SMS step with message content
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - sms
          description: Step type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        executionMode:
          type: string
          description: Execution mode for the SMS step
          enum:
            - automatic
            - manual
        message:
          type: string
          description: >-
            SMS message content. Variable names are case-sensitive, for example
            `{{FirstName}}`. See `GET /v3/email-templates/variables` for the
            full list. Unknown variables can be rejected with 400.
      required:
        - type
        - executionMode
        - message
    whatsapp.type:
      type: object
      title: WhatsApp
      description: WhatsApp step with message content
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - whatsApp
          description: Step type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        message:
          type: string
          description: >-
            WhatsApp message content. Variable names are case-sensitive, for
            example `{{FirstName}}`. See `GET /v3/email-templates/variables` for
            the full list.
      required:
        - type
        - message
    zapier.type:
      type: object
      title: Zapier
      description: Zapier integration step
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - zapier
          description: Step type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        name:
          type: string
          description: Name of the Zapier step
        action:
          type: string
          description: Zapier action type
          enum:
            - immediately
            - wait
      required:
        - type
        - name
        - action
    task.type:
      type: object
      title: Task
      description: Task step for manual actions
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - task
          description: Step type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        actionType:
          type: string
          description: Type of task action to perform
          enum:
            - toDo
            - meeting
        description:
          type: string
          description: Task description or instructions
      required:
        - type
        - actionType
        - description
    condition.type:
      type: object
      title: Condition
      description: Condition step that evaluates rules before proceeding
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - condition
          description: Step type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        waitInMinutes:
          type: integer
          minimum: 0
          description: >-
            Wait time in minutes for condition evaluation. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept. A condition with a `linkedInConnectionStatus` rule needs at
            least 120 - a lower value is raised to 120 on create and rejected
            with 400 on update.
        conditions:
          type: array
          minItems: 1
          maxItems: 20
          description: >-
            Conditions on the contact, in the same shape as the contacts filter,
            joined with AND; one condition per field. `GET
            /v3/sequences/steps/condition/fields` lists the fields, their
            operators, value types and allowed values. `currentStepId` and
            `currentStepDisplayName` refer to this sequence's steps, so steps
            created together with the sequence in `POST /v3/sequences` cannot
            use them; add such a step with `POST /v3/sequences/{id}/steps`. A
            condition returned with `invalid: true` is kept when a PUT of the
            same step sends it back unchanged, and rejected anywhere else.
          items:
            type: object
            title: Filter condition
            description: >-
              One field's rules: an `operator` with its `value`, an `and` list
              of rules that must all match, or an `or` list of alternatives.
            properties:
              field:
                type: string
                description: Field name from the fields list.
              customFieldKey:
                type: string
                description: >-
                  Set on `customFields` conditions. The custom field's key (its
                  id).
              operator:
                type: string
                description: >-
                  One of the filter operators. On an `invalid` condition, the
                  condition name as stored.
              value:
                title: Filter condition value
                description: >-
                  The value the operator compares against; its shape is the
                  operator's `valueType` in the fields list.
                anyOf:
                  - type: string
                  - type: number
                  - type: boolean
                  - type: array
                    minItems: 1
                    maxItems: 200
                    items:
                      anyOf:
                        - type: string
                        - type: number
                  - type: object
                    title: Filter date range
                    description: >-
                      Calendar days for `between`, both inclusive, compared in
                      UTC.
                    required:
                      - from
                      - to
                    properties:
                      from:
                        type: string
                        format: date
                        description: First day of the range (`yyyy-MM-dd`).
                      to:
                        type: string
                        format: date
                        description: >-
                          Last day of the range (`yyyy-MM-dd`), not before
                          `from`.
              and:
                type: array
                description: Rules on this field that must all match.
                items:
                  type: object
                  title: Filter condition branch
                  description: >-
                    One operator and its value inside a condition's `and` or
                    `or` list.
                  required:
                    - operator
                  properties:
                    operator:
                      type: string
                      title: Filter operator
                      description: >-
                        Comparison a filter condition applies. Matched
                        case-insensitively. All date comparisons are in UTC.
                        `between`, `isToday` and `exactlyDaysAgo` match whole
                        UTC calendar days, starting at 00:00 UTC;
                        `withinLastDays` and `moreThanDaysAgo` count N days back
                        from the current UTC time.
                      enum:
                        - equals
                        - notEquals
                        - in
                        - notIn
                        - contains
                        - notContains
                        - containsAny
                        - containsAll
                        - startsWith
                        - greaterThan
                        - lessThan
                        - isEmpty
                        - isNotEmpty
                        - between
                        - withinLastDays
                        - moreThanDaysAgo
                        - isToday
                        - exactlyDaysAgo
                    value:
                      title: Filter condition value
                      description: >-
                        The value the operator compares against; its shape is
                        the operator's `valueType` in the fields list.
                      anyOf:
                        - type: string
                        - type: number
                        - type: boolean
                        - type: array
                          minItems: 1
                          maxItems: 200
                          items:
                            anyOf:
                              - type: string
                              - type: number
                        - type: object
                          title: Filter date range
                          description: >-
                            Calendar days for `between`, both inclusive,
                            compared in UTC.
                          required:
                            - from
                            - to
                          properties:
                            from:
                              type: string
                              format: date
                              description: First day of the range (`yyyy-MM-dd`).
                            to:
                              type: string
                              format: date
                              description: >-
                                Last day of the range (`yyyy-MM-dd`), not before
                                `from`.
              or:
                type: array
                description: Alternatives on this field, any of which may match.
                items:
                  type: object
                  title: Filter condition branch
                  description: >-
                    One operator and its value inside a condition's `and` or
                    `or` list.
                  required:
                    - operator
                  properties:
                    operator:
                      type: string
                      title: Filter operator
                      description: >-
                        Comparison a filter condition applies. Matched
                        case-insensitively. All date comparisons are in UTC.
                        `between`, `isToday` and `exactlyDaysAgo` match whole
                        UTC calendar days, starting at 00:00 UTC;
                        `withinLastDays` and `moreThanDaysAgo` count N days back
                        from the current UTC time.
                      enum:
                        - equals
                        - notEquals
                        - in
                        - notIn
                        - contains
                        - notContains
                        - containsAny
                        - containsAll
                        - startsWith
                        - greaterThan
                        - lessThan
                        - isEmpty
                        - isNotEmpty
                        - between
                        - withinLastDays
                        - moreThanDaysAgo
                        - isToday
                        - exactlyDaysAgo
                    value:
                      title: Filter condition value
                      description: >-
                        The value the operator compares against; its shape is
                        the operator's `valueType` in the fields list.
                      anyOf:
                        - type: string
                        - type: number
                        - type: boolean
                        - type: array
                          minItems: 1
                          maxItems: 200
                          items:
                            anyOf:
                              - type: string
                              - type: number
                        - type: object
                          title: Filter date range
                          description: >-
                            Calendar days for `between`, both inclusive,
                            compared in UTC.
                          required:
                            - from
                            - to
                          properties:
                            from:
                              type: string
                              format: date
                              description: First day of the range (`yyyy-MM-dd`).
                            to:
                              type: string
                              format: date
                              description: >-
                                Last day of the range (`yyyy-MM-dd`), not before
                                `from`.
              invalid:
                type: boolean
                description: >-
                  Condition steps only. `true` when the stored rule has no V3
                  condition; `field`, `operator` and `value` then hold the
                  stored property, condition and value. A PUT of the same step
                  keeps such a condition when it is sent back unchanged.
            example:
              field: stage
              or:
                - operator: equals
                  value: Interested
                - operator: isEmpty
      required:
        - type
        - conditions
    linkedin-message.type:
      type: object
      title: LinkedIn Message
      description: LinkedIn message action step
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - linkedIn
          description: Step type discriminator
        actionType:
          type: string
          enum:
            - message
          description: LinkedIn action type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        executionMode:
          type: string
          description: Execution mode for the action
          enum:
            - automatic
            - manual
        variants:
          type: array
          description: Array of LinkedIn message variants (A/B test versions)
          items:
            type: object
            title: LinkedIn Variant
            description: Individual LinkedIn message/connect variant
            properties:
              id:
                type: integer
                description: Unique identifier for this LinkedIn variant
              message:
                type: string
                description: >-
                  Message content. Variable names are case-sensitive, for
                  example `{{FirstName}}`. See `GET
                  /v3/email-templates/variables` for the full list.
              isEnabled:
                type: boolean
                description: Indicates whether the variant is enabled
            required:
              - message
              - isEnabled
      required:
        - type
        - actionType
        - executionMode
        - variants
    linkedin-connect.type:
      type: object
      title: LinkedIn Connect
      description: LinkedIn connect action step
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - linkedIn
          description: Step type discriminator
        actionType:
          type: string
          enum:
            - connect
          description: LinkedIn action type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        executionMode:
          type: string
          description: Execution mode for the action
          enum:
            - automatic
            - manual
        variants:
          type: array
          description: >-
            Array of LinkedIn connect variants (A/B test versions). Message is
            optional, max 300 characters.
          items:
            type: object
            title: LinkedIn Variant
            description: Individual LinkedIn message/connect variant
            properties:
              id:
                type: integer
                description: Unique identifier for this LinkedIn variant
              message:
                type: string
                description: >-
                  Message content. Variable names are case-sensitive, for
                  example `{{FirstName}}`. See `GET
                  /v3/email-templates/variables` for the full list.
              isEnabled:
                type: boolean
                description: Indicates whether the variant is enabled
            required:
              - message
              - isEnabled
      required:
        - type
        - actionType
        - executionMode
        - variants
    linkedin-inmail.type:
      type: object
      title: LinkedIn InMail
      description: LinkedIn InMail action step
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - linkedIn
          description: Step type discriminator
        actionType:
          type: string
          enum:
            - inMail
          description: LinkedIn action type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        executionMode:
          type: string
          description: Execution mode for the InMail
          enum:
            - automatic
            - manual
        variants:
          type: array
          description: Array of LinkedIn InMail variants (A/B test versions)
          items:
            type: object
            title: LinkedIn InMail Variant
            description: Individual LinkedIn InMail variant
            properties:
              id:
                type: integer
                description: Unique identifier for this LinkedIn InMail variant
              subject:
                type: string
                description: >-
                  InMail subject line. Variable names are case-sensitive, for
                  example `{{FirstName}}`. See `GET
                  /v3/email-templates/variables` for the full list.
              message:
                type: string
                description: >-
                  InMail message content. Variable names are case-sensitive, for
                  example `{{FirstName}}`. See `GET
                  /v3/email-templates/variables` for the full list.
              isEnabled:
                type: boolean
                description: Indicates whether the variant is enabled
            required:
              - subject
              - message
              - isEnabled
      required:
        - type
        - actionType
        - executionMode
        - variants
    linkedin-view-profile.type:
      type: object
      title: LinkedIn View Profile
      description: LinkedIn view profile action step
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - linkedIn
          description: Step type discriminator
        actionType:
          type: string
          enum:
            - viewProfile
          description: LinkedIn action type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        executionMode:
          type: string
          description: Execution mode for the action
          enum:
            - automatic
            - manual
        description:
          type: string
          description: Description or notes for the profile view
      required:
        - type
        - actionType
        - executionMode
    linkedin-endorse-skills.type:
      type: object
      title: LinkedIn Endorse Skills
      description: LinkedIn endorse skills action step
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - linkedIn
          description: Step type discriminator
        actionType:
          type: string
          enum:
            - endorseSkills
          description: LinkedIn action type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        numberOfSkills:
          type: integer
          minimum: 1
          maximum: 3
          description: Number of skills to endorse (1-3)
      required:
        - type
        - actionType
        - numberOfSkills
    linkedin-voice-message.type:
      type: object
      title: LinkedIn Voice Message
      description: >-
        LinkedIn voice message action step that sends a pre-recorded audio
        message. Upload the recording with `POST /v3/attachments/voice` and pass
        the returned `id` as `voiceAttachmentId`.
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - linkedIn
          description: Step type discriminator
        actionType:
          type: string
          enum:
            - voiceMessage
          description: LinkedIn action type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        voiceAttachmentId:
          type: integer
          nullable: true
          description: >-
            ID of the recording returned by `POST /v3/attachments/voice`. The
            recording must be uploaded by a member of your team. When the step
            has several recordings, this is the recording of its first variant;
            manage the others with the step variants endpoints. `null` in
            responses for a step that holds no recording.
      required:
        - type
        - actionType
        - voiceAttachmentId
    linkedin-ai-voice-message.type:
      type: object
      title: LinkedIn AI Voice Message
      description: >-
        LinkedIn AI voice message action step. The message text is converted to
        speech at send time using the voice linked to the sending LinkedIn
        account, falling back to the team's default voice.
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - linkedIn
          description: Step type discriminator
        actionType:
          type: string
          enum:
            - aiVoiceMessage
          description: LinkedIn action type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        message:
          type: string
          description: >-
            Text spoken in the generated voice message. Supports the same
            variables as other message steps. Variable names are case-sensitive,
            for example `{{FirstName}}`. See `GET /v3/email-templates/variables`
            for the full list.
        speed:
          type: number
          format: double
          nullable: true
          minimum: 0.5
          maximum: 2
          description: >-
            Playback speed of the generated speech. Omit to use the default
            speed.
        backgroundNoiseId:
          type: integer
          nullable: true
          description: >-
            Background noise preset mixed into the generated audio. Valid IDs
            come from `GET /v3/voices/background-noises`. Omit for no background
            noise.
      required:
        - type
        - actionType
        - message
    linkedin-like-recent-posts.type:
      type: object
      title: LinkedIn Like Recent Posts
      description: LinkedIn like recent posts action step
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - linkedIn
          description: Step type discriminator
        actionType:
          type: string
          enum:
            - likeRecentPosts
          description: LinkedIn action type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
      required:
        - type
        - actionType
    linkedin-follow-profile.type:
      type: object
      title: LinkedIn Follow Profile
      description: LinkedIn follow profile action step
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - linkedIn
          description: Step type discriminator
        actionType:
          type: string
          enum:
            - followProfile
          description: LinkedIn action type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
      required:
        - type
        - actionType
    linkedin-comment-on-recent-post.type:
      type: object
      title: LinkedIn Comment On Recent Post
      description: >-
        LinkedIn comment on a recent post action step. The AI writes a comment
        on the contact's most recent post using the

        instructions in `aiPromptText`. Use the AI prompt preview endpoints to
        check what a prompt produces before saving

        it on a step. How many of these comments an account posts per day is
        governed by that LinkedIn account's own daily

        limits, not by this step.
      properties:
        id:
          type: integer
          nullable: true
          readOnly: true
          description: Unique identifier for the step
        parentId:
          type: integer
          nullable: true
          description: ID of the parent step (for branching)
        ifConditionPositive:
          type: boolean
          nullable: true
          description: Whether this step is on the positive branch of a condition
        type:
          type: string
          enum:
            - linkedIn
          description: Step type discriminator
        actionType:
          type: string
          enum:
            - commentOnRecentPost
          description: LinkedIn action type discriminator
        delayInMinutes:
          type: integer
          minimum: 0
          description: >-
            Delay in minutes before executing this step. Defaults to 0 when
            omitted on create; when omitted on update, the current value is
            kept.
        aiPromptText:
          type: string
          description: The instructions the AI follows when writing the comment
        skipIfNoPostsInDays:
          type: integer
          nullable: true
          description: >-
            Skip the contact when their most recent post is older than this many
            days
        skipTopics:
          type: array
          items:
            type: string
          description: >-
            Topics the AI should refuse to comment on. The step is skipped when
            the post matches one of these.
      required:
        - type
        - actionType
        - aiPromptText
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Authenticate every request with a Bearer token. Pass your Reply API key
        in the

        `Authorization` header:


        ```

        Authorization: Bearer <your-api-key>

        ```


        Get your API key from the Reply dashboard: **Settings → API Key**.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.