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

# Get all newsletter subscriptions (Admin only)



## OpenAPI

````yaml /openapi.json get /newsletter
openapi: 3.0.0
info:
  title: Uptime Monitor API
  description: >-
    API documentation for the Uptime Monitor application. This API allows users
    to create and manage website monitors, perform checks, and view statistics.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.justanotheruptime.com
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: projects
    description: Project management endpoints
  - name: monitors
    description: Monitor management endpoints
  - name: checks
    description: Check-related endpoints
  - name: statistics
    description: Monitor statistics endpoints
paths:
  /newsletter:
    get:
      tags:
        - Newsletter
      summary: Get all newsletter subscriptions (Admin only)
      operationId: NewsletterController_findAll
      parameters:
        - name: active
          required: true
          in: query
          schema:
            type: boolean
      responses:
        '200':
          description: Returns all newsletter subscriptions
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NewsletterResponseDto'
      security:
        - bearer: []
components:
  schemas:
    NewsletterResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the newsletter subscription
          example: 123e4567-e89b-12d3-a456-426614174000
        email:
          type: string
          description: Email address of the subscriber
          example: subscriber@example.com
        active:
          type: boolean
          description: Flag indicating if the subscription is active
          example: true
        subscribedAt:
          format: date-time
          type: string
          description: Date and time when the user subscribed
          example: '2025-03-15T10:30:00Z'
        unsubscribedAt:
          format: date-time
          type: string
          description: Date and time when the user unsubscribed, if applicable
          example: null
          nullable: true
        createdAt:
          format: date-time
          type: string
          description: Date and time when the subscription record was created
          example: '2025-03-15T10:30:00Z'
        updatedAt:
          format: date-time
          type: string
          description: Date and time when the subscription record was last updated
          example: '2025-03-15T10:30:00Z'
      required:
        - id
        - email
        - active
        - subscribedAt
        - unsubscribedAt
        - createdAt
        - updatedAt
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````