> ## 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.

# Subscribe to newsletter



## OpenAPI

````yaml /openapi.json post /newsletter/subscribe
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/subscribe:
    post:
      tags:
        - Newsletter
      summary: Subscribe to newsletter
      operationId: NewsletterController_subscribe
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NewsletterSubscriptionDto'
      responses:
        '201':
          description: Successfully subscribed to newsletter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewsletterResponseDto'
        '400':
          description: Invalid email format or email already subscribed
        '429':
          description: Too many subscription attempts
components:
  schemas:
    NewsletterSubscriptionDto:
      type: object
      properties:
        email:
          type: string
          description: Email address to subscribe to the newsletter
          example: subscriber@example.com
      required:
        - email
    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

````