# User Registration **POST /auth/signup** Registers a new user and returns a JWT token. ## Servers - Local development server: http://localhost:8080/api (Local development server) - Production server: https://api.huy-devops.site/api (Production server) ## Parameters ### Body: application/json (object) - **email** (string(email)) User's email address - **password** (string) User's password - **firstName** (string) User's first name - **lastName** (string) User's last name - **dateOfBirth** (string(date)) User's date of birth - **phoneNumber** (string) User's phone number (optional) ## Responses ### 201 Successful registration #### Body: application/json (object) - **success** (boolean) - **code** (integer(int32)) - **message** (string) - **data** (object) ### 400 Bad Request - Invalid input data #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) ### 500 Internal Server Error #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)