CreateSubscribe
Endpoint
POST /api/subscribe
Request Headers
{
"Accept": "application/json",
"Content-Type": "application/json"
}
Request Body
{
"email": "[email protected]"
}
Response Body (200)
{
"message": "Subscriber added successfully",
"data": {
"id": 4,
"email": "[email protected]",
"created_at": "2025-11-06 11:24:45"
}
}
Response Body (422)
{
"message": "The email has already been taken.",
"errors": {
"email": [
"The email has already been taken."
]
}
}
12 November 2025