Endpoint
Request body
string
required
Recipient’s phone number in E.164 format, e.g.
+919876543210.integer
default:"6"
Number of digits in the generated code. Accepts 4–8.
integer
default:"300"
How long the code stays valid.
string
Name of the approved authentication template to use. If omitted, Tanvik uses the most recently approved authentication-category template on your account — if you don’t have one yet, the request fails with
no_default_otp_template.Response
string
Unique identifier for this OTP request (a UUID) — pass this to the verify endpoint.
string
sent once accepted by WhatsApp.string
ISO 8601 timestamp when the code stops being valid.
Response
OTP messages use WhatsApp authentication-category templates, which have separate approval and pricing from marketing/utility templates. See Create Templates.