curl --request POST \
--url https://api.example.com/auth/signup \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"email": "<string>",
"password": "<string>"
}
'{
"token": "<string>",
"error": "<string>"
}Create a new user account with email and password
curl --request POST \
--url https://api.example.com/auth/signup \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"email": "<string>",
"password": "<string>"
}
'{
"token": "<string>",
"error": "<string>"
}{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
{
"error": "Invalid request: Missing required fields"
}
{
"error": "An unexpected error occurred. Please try again later."
}
curl -X POST https://api.planttogether.com/auth/signup \
-H "Content-Type: application/json" \
-d '{
"displayName": "John Doe",
"email": "[email protected]",
"password": "securePassword123"
}'