Skip to main content
GET
/
auth
/
verify-email
curl -X GET "https://api.tktchurch.com/v1/auth/verify-email?token=eyJhbGciOiJIUzI1NiIs..."
{
  "status": 200,
  "message": "Email verified successfully"
}
This is a public endpoint that does not require authentication. The verification token in the URL is sufficient for verification.

Query Parameters

token
string
required
The verification token received in the email. This is a JWT token containing the user ID.

Response

A successful request returns HTTP 200 OK status, indicating that the email has been verified. The user’s emailVerified status will be updated to true in the database.

Error Responses

error
object
Error details when the request fails
Common error cases:
  • 400 Bad Request: Missing verification token
  • 401 Unauthorized: Invalid or expired token
  • 404 Not Found: User not found
curl -X GET "https://api.tktchurch.com/v1/auth/verify-email?token=eyJhbGciOiJIUzI1NiIs..."
{
  "status": 200,
  "message": "Email verified successfully"
}