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

# Newsletter Subscribe

> <Warning>If your publisher has no `newsletter_captcha.secret_key` configured but you send `check_for_captcha`, Google will reject the blank secret key and the request will return `400`.</Warning>



## OpenAPI

````yaml /openapi/content-management.json post /publisher/{publisher_id}/newsletter/subscribe/
openapi: 3.1.0
info:
  title: Publive Content Management API
  version: 1.0.0
  description: >-
    Read/write API for managing publisher content: categories, tags, posts, live
    blogs, media, custom content types, custom components, forms, reader
    accounts, and newsletter subscriptions.
servers:
  - url: https://cms.thepublive.com
security:
  - basicAuth: []
tags:
  - name: Categories
  - name: Tags
  - name: Posts
  - name: Live Blogs
  - name: Media Library
  - name: Custom Content Types
  - name: Custom Components
  - name: Forms
  - name: Reader
  - name: Newsletter
paths:
  /publisher/{publisher_id}/newsletter/subscribe/:
    post:
      tags:
        - Newsletter
      summary: Newsletter Subscribe
      description: >-
        <Warning>If your publisher has no `newsletter_captcha.secret_key`
        configured but you send `check_for_captcha`, Google will reject the
        blank secret key and the request will return `400`.</Warning>
      operationId: newsletterSubscribe
      parameters:
        - $ref: '#/components/parameters/PublisherId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                name:
                  type: string
                  default: ''
                group_ids:
                  oneOf:
                    - type: string
                    - type: array
                      items:
                        type: string
                  description: >-
                    Accepts repeated form fields (`group_ids=10&group_ids=20`),
                    a comma-separated string (`"1,2,3"`), or a JSON array.
                check_for_captcha:
                  description: >-
                    Any truthy value activates reCAPTCHA using
                    `newsletter_captcha.secret_key`.
                g-recaptcha-response:
                  type: string
                  description: Required when `check_for_captcha` is present.
              required:
                - email
      responses:
        '200':
          description: Subscribed
          content:
            application/json:
              example:
                status: ok
                message: Subscribed successfully!
        '400':
          description: Captcha failed or validation error
        '409':
          description: Already subscribed
          content:
            application/json:
              example:
                message: Email already exists
      security: []
components:
  parameters:
    PublisherId:
      name: publisher_id
      in: path
      required: true
      schema:
        type: string
      description: Your Publisher ID
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic Auth using your Publive API key pair, base64-encoded.

````