Skip to content

๐Ÿงพ Register Citizen

Endpoint: POST /api/auth/register
Auth Required: โŒ No
Content-Type: application/json


๐Ÿ“Œ Description

This endpoint allows a new citizen to create an account on the CivicEdge platform using an email address and password.

After successful registration: - The user account is created with role citizen - A corresponding profile is initialized - An email verification link is sent to the registered email - Login is restricted until email verification is completed


๐Ÿ” Authentication

No authentication is required for this endpoint.


๐Ÿ“ฅ Request Body

Field Type Required Description
email string โœ… Unique email address
password string โœ… Strong password (min 8 characters)

โœ… Example Request

```http POST /api/auth/register Content-Type: application/json

{ "email": "citizen@example.com", "password": "StrongPassword@123" }