POST /auth/send-phone-verification
Send phone verification (SMS OTP)
Send phone verification (SMS OTP)
/auth/send-phone-verificationRequest body
NestAuthSendPhoneVerificationRequestDto
| Field | Type | Required | Description |
|---|---|---|---|
tenantId | string | optional | Tenant ID for multi-tenant applications Example: 123e4567-e89b-12d3-a456-426614174000 |
Examples
Example
{
"tenantId": "123e4567-e89b-12d3-a456-426614174000"
}Responses
200
NestAuthPhoneVerificationSentResponseDto
| Field | Type | Required | Description |
|---|---|---|---|
message | string | required | Response message Example: Verification SMS sent |
Example response
{
"message": "Verification SMS sent"
}Try it
curl -X POST 'https://api.example.com/auth/send-phone-verification' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-d '{"tenantId":"123e4567-e89b-12d3-a456-426614174000"}'