<@U04UQ68083H> Can we resend an sms to verify a ph...
# ory-copilot
f
@chilly-king-10285 Can we resend an sms to verify a phone number?
b
A message from kapa.ai
Yes, it is possible to resend an SMS to verify a phone number in Ory Kratos. This functionality is part of the verification flow for phone numbers. Here's what you need to know: 1. The system provides a "Resend code" option as part of the verification process. This is indicated by the UI message with ID 1070008, which has the text "Resend code" [Kratos UI Messages](https://www.ory.sh/docs/kratos/concepts/ui-messages#resend-code-1070008). 2. To enable phone verification via SMS, you need to configure your identity schema to include a phone trait that is marked as verifiable. This can be done by adding the following to your identity schema [Kratos Identity Schema](https://www.ory.sh/docs/kratos/manage-identities/customize-identity-schema#phone-number-and-password):
Copy code
json    "phone": {      "type": "string",      "format": "tel",      "title": "Phone number",      "<http://ory.sh/kratos|ory.sh/kratos>": {        "verification": {          "via": "sms"        }      }    }
3. You also need to configure an SMS channel in your Ory configuration to actually send the SMS messages [Kratos Phone Verification](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#phone-number-verification). 4. When implementing the verification flow in your user interface, you should include an option for the user to request a new verification code. This would typically trigger a new API call to the verification flow endpoint, which would then send a new SMS with a fresh verification code. It's important to note that while the functionality exists, some users have reported issues with phone verification in certain configurations [GitHub Issue](https://github.com/ory/kratos/issues/3799). If you encounter any problems, you may want to double-check your configuration or reach out to Ory support for assistance.