Send a discovery OTP to an email address. The OTP is valid for 10 minutes. Only the most recently sent OTP is valid: when an OTP is sent, all OTPs previously sent to the same email address are invalidated, even if unused or unexpired.
Send Discovery Email OTP
POSThttps://test.stytch.com/v1/b2b/otps/email/discovery/send
Body parameters
email_address* string
login_template_id string
locale string
Response fields
request_id string
status_code int
curl --request POST \
--url https://test.stytch.com/v1/b2b/otps/email/discovery/send \
-u 'PROJECT_ID:SECRET' \
-H 'Content-Type: application/json' \
-d '{
"email_address": "sandbox@stytch.com"
}'
RESPONSE
200
{
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"status_code": 200
}