Send OTP
POST https://app.tingting.io/api/v1/auths/send/otp/Authorization header.
Parameters
Recipient’s phone number.
Message text to deliver. Must include the
{otp} placeholder where the OTP value should appear, e.g. "Hi Your OTP is {otp}".Delivery method. Accepted values:
"voice" or "text".Controls whether you supply the OTP or TingTing generates it. Accepted values:
"personnel" (provide your own OTP) or "generated" (auto-generate). Defaults to "generated".Your custom OTP value. Required when
otp_options is "personnel".Length of the auto-generated OTP. Only applies when
otp_options is "generated".Voice name for the call. Required when
sms_send_options is "voice". Accepted values: "np_rija", "np_prashanna", "np_shreegya", "np_binod".The
{otp} placeholder in your message is replaced with the actual OTP value before the message is delivered — whether via voice or text.Example requests
Responses
List sent OTPs
GET https://app.tingting.io/api/v1/auths/list/send-otps/Authorization header.
Example response
Response fields
Total number of OTP records across all pages.
Total number of pages available.
URL to the next page of results.
null if you are on the last page.URL to the previous page of results.
null if you are on the first page.