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

# Add a follow-up step to a broadcast sequence



## OpenAPI

````yaml /openapi.json post /v1/broadcasts/{broadcastId}/steps
openapi: 3.0.3
info:
  title: Emailr API
  version: 1.0.0
servers:
  - url: https://api.emailr.dev
    description: Production
security: []
tags:
  - name: emails
    description: Email sending and management
  - name: contacts
    description: Contact management
  - name: templates
    description: Email template management
  - name: domains
    description: Domain verification and management
  - name: webhooks
    description: Webhook configuration
  - name: broadcasts
    description: Broadcast campaign management
  - name: segments
    description: Contact segmentation
paths:
  /v1/broadcasts/{broadcastId}/steps:
    post:
      tags:
        - sequences
      summary: Add a follow-up step to a broadcast sequence
      operationId: createSequenceStep
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: broadcastId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSequenceStepRequest'
      responses:
        '200':
          description: Step created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SequenceStep'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Broadcast not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    CreateSequenceStepRequest:
      type: object
      properties:
        step_number:
          type: integer
          minimum: 1
          description: Position in the sequence. If omitted, appended to the end.
        delay_hours:
          type: integer
          minimum: 0
          description: Hours to wait before sending this step.
          example: 72
        subject:
          type: string
          nullable: true
          maxLength: 998
        html_content:
          type: string
          nullable: true
        text_content:
          type: string
          nullable: true
        template_id:
          type: string
          nullable: true
          format: uuid
      required:
        - delay_hours
    SequenceStep:
      type: object
      properties:
        id:
          type: string
          format: uuid
        broadcast_id:
          type: string
          format: uuid
        step_number:
          type: integer
          minimum: 1
          description: Position of this step in the sequence (1-indexed).
          example: 1
        delay_hours:
          type: integer
          minimum: 0
          description: >-
            Hours to wait before sending this step (after the previous step or
            initial send).
          example: 72
        subject:
          type: string
          nullable: true
          description: >-
            Optional subject override. When null, the follow-up uses 'Re:
            <original subject>' so it threads as a reply.
        html_content:
          type: string
          nullable: true
        text_content:
          type: string
          nullable: true
        template_id:
          type: string
          nullable: true
          format: uuid
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - broadcast_id
        - step_number
        - delay_hours
        - subject
        - html_content
        - text_content
        - template_id
        - created_at
        - updated_at
    Error:
      type: object
      properties:
        error:
          type: string
          example: An error occurred
        code:
          type: string
          example: VALIDATION_ERROR
        details: {}
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API key authentication. Use your API key as the bearer token.

````