This endpoint sends an SMS verification code to a given phone number. The user receives a one-time password (OTP) via SMS.
Request
Body Params application/json
Request Code Samples
curl --location --request POST 'https://admin.letschat.ch/api/auth/user/code' \
--header 'Content-Type: application/json' \
--data-raw '{
"phone": "string"
}'
Responses
application/json {
"message": "SMS_CODE_HAS_BEEN_SENT",
"data": {
"userId": "67b9f20c001aef4f23ed"
}
}
Modified at 2025-02-23 17:52:59