curl --request POST \
--url https://api.example.com/auth/signup-email \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>",
"name": "<string>"
}
'{
"token": "<string>",
"message": "<string>"
}Register a new user account with an email address, password, and display name.
curl --request POST \
--url https://api.example.com/auth/signup-email \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>",
"name": "<string>"
}
'{
"token": "<string>",
"message": "<string>"
}x-access'courser-auth-token header on authenticated requests."Login successful"."Email already in use""Error creating account"curl --request POST \
--url http://localhost:8000/auth/signup-email \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]",
"password": "securepassword123",
"name": "Dr. Jane Smith"
}'
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"message": "Login successful"
}
{
"message": "Email already in use"
}
{
"message": "Error creating account"
}