Skip to main content

Integrate

Integrate in your code the custom OTP generation, follow the next steps.

OTP Generation API

Endpoint POST https://apiwa.nuverax.com/api/v1/otp

Payload Request

PropertyRequiredDescription
country_codeCountry code from the phone number.
phone_numberPhone number with 10 digits (eg. 5512345678).
nonceA random string generated by your application, which you’ll verify later included in the Token Id.
code_challengePKCE Code challenge value. We fully recomend to implement PKCE. Read more about PKCE generation here. code_verifier will be requiered on the OTP verify step.

Example Request

curl --location 'https://apiwa.nuverax.com/api/v1/otp' \
--header 'Api-Key: [YOUR_API_KEY]' \
--header 'Content-Type: application/json' \
--data '{
"country_code": "[VALID_COUNTRY_CODE]",
"phone_number": "[VALID_PHONE_NUMBER]"
}'
info

You will need to get a valid Prod or Dev API Key to call the API. Read the next documentation to see how.

Payload Response

PropertyDescription
idOTP Id.