<@U04UQ68083H> can i use <https://textbee.dev/> fo...
# ory-copilot
s
@chilly-king-10285 can i use https://textbee.dev/ for sms 2FA?
b
A message from kapa.ai
Ory supports SMS-based 2FA (multi-factor authentication) by sending one-time codes to users via an SMS gateway of your choice. The integration is done by configuring Ory to send SMS messages to a webhook endpoint. Ory does not require a specific SMS provider; instead, it sends the code, phone number, and metadata to the configured webhook URL, which should then handle the actual SMS delivery. If https://textbee.dev/ provides an HTTP API or webhook endpoint for sending SMS, you can use it with Ory by configuring the SMS channel to point to TextBee's endpoint. The documentation provides an example of setting up a custom SMS provider using a webhook URL, which you would adapt to TextBee's API requirements:
Copy code
bash ory patch identity-config --project ${project_id} \   --add '/courier/channels=[{"id":"sms","request_config":{"method":"PUT","body":"<base64://ZnVuY3Rpb24oY3R4KSB7DQpjdHg6IGN0eCwNCn0>=","url":"<https://your-textbee-endpoint>"}}]'
You will need to ensure that the request format matches what TextBee expects. For more details, see the [SMS delivery configuration documentation](https://www.ory.sh/docs/kratos/emails-sms/sending-sms) and the [MFA via SMS guide](https://www.ory.sh/docs/kratos/mfa/mfa-via-sms). In summary: Yes, you can use TextBee for SMS 2FA with Ory, as long as it provides an HTTP API endpoint that you can configure in Ory’s SMS channel settings. The knowledge sources do not mention TextBee specifically, but they confirm that any compatible HTTP-based SMS service can be used.