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

# Send Issue

> Send a newsletter issue now, or schedule it when scheduledFor is provided.



## OpenAPI

````yaml /openapi.json post /newsletter/issues/{issueId}/send
openapi: 3.0.3
info:
  title: Maito API Reference
  version: 0.1.0
  description: Supported endpoints for external Maito integrations.
servers:
  - url: https://api.getmaito.com/v1
    description: Maito Cloud
security:
  - bearerAuth: []
tags:
  - name: Newsletter
    description: Manage newsletter settings, subscribers, issues, and analytics.
  - name: Media Uploads
    description: Upload media assets for social and newsletter content.
paths:
  /newsletter/issues/{issueId}/send:
    post:
      tags:
        - Newsletter
      summary: Send Issue
      description: >-
        Send a newsletter issue now, or schedule it when scheduledFor is
        provided.
      operationId: sendNewsletterIssue
      parameters:
        - name: issueId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
          description: Issue ID.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendNewsletterIssuePayload'
            example: {}
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendNewsletterIssueResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/ValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    SendNewsletterIssuePayload:
      type: object
      properties:
        scheduledFor:
          type: string
          format: date-time
          description: When present, schedules the issue instead of sending immediately.
        audience:
          $ref: '#/components/schemas/NewsletterSendAudience'
    SendNewsletterIssueResponse:
      allOf:
        - $ref: '#/components/schemas/ApiSuccess'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/SendNewsletterIssueResult'
    NewsletterSendAudience:
      type: object
      properties:
        mode:
          type: string
          enum:
            - all
            - segment
            - manual
          default: all
        segmentId:
          type: string
        subscriberIds:
          type: array
          items:
            type: string
        excludeSegmentIds:
          type: array
          items:
            type: string
        excludeSubscriberIds:
          type: array
          items:
            type: string
      description: >-
        Use segmentId when mode is segment. Use subscriberIds when mode is
        manual.
    ApiSuccess:
      type: object
      required:
        - ok
        - data
      properties:
        ok:
          type: boolean
          enum:
            - true
        data: {}
    SendNewsletterIssueResult:
      type: object
      additionalProperties: true
    ErrorResponse:
      type: object
      required:
        - ok
        - error
      properties:
        ok:
          type: boolean
          enum:
            - false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          additionalProperties: true
  responses:
    Unauthorized:
      description: The API key is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            ok: false
            error:
              code: UNAUTHORIZED
              message: Authentication required.
    ValidationError:
      description: The request failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            ok: false
            error:
              code: VALIDATION_ERROR
              message: Invalid document query.
              details: []
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      x-default: your-api-key

````