Last Updated: February 25, 2026
Herald exposes a REST API built on Next.js API Routes. All endpoints return JSON responses and follow standard HTTP status codes.
Production: https://auth.todayscarolinian.com/api
Development: http://localhost:3000/api
Authenticate user with email and password.
Request Body:
{
"email": "[email protected]",
"password": "SecurePassword123!",
"rememberMe": false // optional, defaults to false
}
Response (200 OK):
{
"success": true,
"data": {
"user": {
"uid": "abc123xyz789",
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"position": "Staff Writer",
"mustChangePassword": false
},
"redirectUrl": "/profile" // or original returnUrl
}
}
Error Responses:
400 - Missing email or password401 - Invalid credentials429 - Rate limit exceeded (5 attempts in 15 min)Side Effects: