provider Otp POST
/v1/otps/email/login_or_create @utdk/stytch
/v1/otps/email/login_or_create Loginorcreate
Send a one-time passcode (OTP) to a User using their email. If the email is not associated with a User already, a User will be created.
### Next steps
Collect the OTP which was delivered to the User. Call [Authenticate OTP](https://stytch.com/docs/api/authenticate-otp) using the OTP `code` along with the `phone_id` found in the response as the `method_id`.
Try it
Authentication
Configure credentials for Stytch API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import stytch from '@utdk/stytch';
await stytch.apiOtpV1OtpEmailLoginorcreate()