Create User
Registers a new user account.
Headers
- Type: stringx
-api -key requiredAPI key for authentication
Body·
required
application/json
- Type: stringFormat: emailemailrequired
- Type: stringpasswordmin length:8Format: passwordrequired
a hint to UIs to mask the input
- Type: stringusernamemin length:3max length:50required
- Type: stringfirst
Name Optional
- Type: stringsur
Name Optional
Responses
- 201
User created successfully.
- application/json
Request Example for post/api/user/registerUser
curl https://demo.api.whispchat.com/api/user/registerUser \
--request POST \
--header 'x-api-key: ' \
--header 'Content-Type: application/json' \
--data '{
"username": "johndoe",
"firstName": "John",
"surName": "Doe",
"email": "john.doe@example.com",
"password": "SecureP@ss123"
}'
No Body