---
title: "Subscribe the authenticated customer to the newsletter"
method: POST
path: "/newsletters"
tags: ["Newsletter"]
---

# Subscribe the authenticated customer to the newsletter

`POST /newsletters`

## Request

- Base URL: `http://localhost:8000/api/shop`
- URL: `http://localhost:8000/api/shop/newsletters`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-shop-api/docs/newsletters/post.ts> (a function with typed inputs; its response is checked against the schema)

Requires Bearer token. Creates a newsletter subscription for the authenticated customer on the current channel.

## Headers

- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Request body

- object
  - `customerEmail` string, email, required: Email to subscribe (must be unique in subscribers_list).

## Response `201`

Subscribed.

## Other responses

- `400`: Missing customerEmail, or email already subscribed.
- `422`: Validation Error

---

[API](https://skmtc.dev/bagisto/apis/bagisto-shop-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-shop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-shop-api/revisions/f619df36bf29?raw)
