post https://external-api.xtremepush.com/api/external/otp/generate
Used to create and send one-time passwords (OTPs) to users for secure authentication.
Examples
Generate a one-time password (OTP) for a user profile. The example below shows how to send an OTP via SMS using the service_id
and user_id
.
curl --request POST \
--url https://external-api.xtremepush.com/api/otp/generate \
--header 'content-type: application/json' \
--data '{
"service_id": "<integration-id>",
"id": "<user-id>",
"id_type": "user_id",
"send_by": "id",
"mobile_number": "",
"channel": "sms"
}'
Example Use Case
Send an OTP to a user identified by their user_id
to verify their identity during login or transaction confirmation. Replace <integration-id>
and <user-id>
with actual values from your integration setup.