Appearance
Newsletter Subscribe
Subscribe an email address to the newsletter.
Endpoint
POST /newsletter/subscribe1
Request
Headers
Content-Type: application/json1
Body
json
{
"email": "user@example.com"
}1
2
3
2
3
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Valid email address to subscribe |
Response
Success (201 Created)
json
{
"data": null,
"messages": [
{
"title": "Successfully subscribed to the newsletter."
}
]
}1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Error (400 Bad Request)
json
{
"errors": [
{
"message": "Validation failed"
}
]
}1
2
3
4
5
6
7
2
3
4
5
6
7
Error (409 Conflict)
json
{
"errors": [
{
"message": "This email is already subscribed to the newsletter."
}
]
}1
2
3
4
5
6
7
2
3
4
5
6
7
Notes
- No authentication required (public endpoint)
- Email is added to Brevo subscriber list
- Welcome email sent via Resend
- Duplicate subscriptions return 409 Conflict
- GDPR-compliant unsubscribe link included in emails