Request OTP
Generate and deliver an OTP. Optionally pass callback_url and callback_secret to receive async flake.verified / flake.failed webhooks on later verify outcomes.
Authorizations
Headers
Body
Recipient's phone number, E.164 digits-only (no '+', e.g. 255712345678)
"255712345678"
Developer app key
"devapp_123456"
Sender ID shown to the recipient. SMS only — silently ignored on call and whatsapp. Defaults to the platform-configured OTP_DEFAULT_SENDER_ID.
"BRIQ OTP"
Length of OTP code
6
OTP expiry time in minutes
10
Delivery channel: sms (default), call (TTS), or whatsapp (uses platform-managed briq_otp template; sender resolution is automatic).
sms, call, whatsapp "sms"
"call"
"whatsapp"
Custom OTP message template. Must contain {code}; {expiry} is also substituted. SMS only — silently ignored on call and whatsapp. WhatsApp wording is fixed by the approved briq_otp Meta template.
"Your OTP is {code}"
Optional HTTPS URL to receive async flake lifecycle webhooks (e.g. flake.verified) for this request. Active for this OTP's lifetime. Must not resolve to private or loopback addresses.
"https://api.example.com/briq/otp-events"
Optional shared secret for HMAC signing (X-Briq-Signature) on callbacks to callback_url.