curl --request POST \
--url https://api.example.com/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>",
"displayName": "<string>"
}
'{
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>",
"displayName": "<string>",
"avatarUrl": {},
"createdAt": "<string>"
},
"accessToken": "<string>"
}curl --request POST \
--url https://api.example.com/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>",
"displayName": "<string>"
}
'{
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>",
"displayName": "<string>",
"avatarUrl": {},
"createdAt": "<string>"
},
"accessToken": "<string>"
}curl -X POST https://api.neuronmeet.com/auth/register \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securePassword123",
"displayName": "John Doe"
}'
{
"user": {
"id": "clx1234567890abcdef",
"email": "[email protected]",
"name": "John Doe",
"displayName": "John Doe",
"avatarUrl": null,
"createdAt": "2024-03-15T10:30:00.000Z"
},
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
{
"statusCode": 409,
"message": "Email already registered",
"error": "Conflict"
}
{
"statusCode": 400,
"message": [
"email must be an email",
"password must be longer than or equal to 8 characters",
"displayName must be longer than or equal to 2 characters"
],
"error": "Bad Request"
}