Your Auth Proxy config ID, found in Dashboard → AUTH. See Auth Proxy reference for setup.
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>",
"emailCustomization": {
"templateId": "<string>"
}
}'
{
"otpId": "<string>",
"otpEncryptionTargetBundle": "<string>"
}
Auth Proxy
Init OTP
Start a new OTP flow and return a new OTP flow ID.
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>",
"emailCustomization": {
"templateId": "<string>"
}
}'
{
"otpId": "<string>",
"otpEncryptionTargetBundle": "<string>"
}
A successful response returns the following fields:
Was this page helpful?