B2B Saas Authentication

/

API reference

/

Email one-time passcodes (OTP)

/

Discovery

/

Send discovery OTP

Send Discovery Email OTP

POSThttps://test.stytch.com/v1/b2b/otps/email/discovery/send

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.


Body parameters


email_address*string

login_template_idstring

localestring

Response fields


request_idstring

status_codeint
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
}