Enum to specify whether to send OTP code via SMS or email
Email or phone number to send the OTP code to
A successful response returns the following fields:
Unique identifier for an OTP flow.
otpEncryptionTargetBundle
Signed bundle containing a target encryption key to use when submitting OTP codes.
curl --request POST \
--url https://authproxy.turnkey.com/v1/otp_init_v2 \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Auth-Proxy-Config-Id: <string> (see Authorizations)" \
--data '{
"otpType": "<string>",
"contact": "<string>"
}'
{
"otpId": "<string>",
"otpEncryptionTargetBundle": "<string>"
}