Goal
By the end of this page you’ll have:
- Issued an API key.
- Sent an OTP to a WhatsApp number.
- Seen
otp.senton your webhook (optional).
Total time: under five minutes if the template is already ACTIVE.
Issue an API key
In the dashboard, open OTP Settings → API Key → Create. Copy the plaintext value immediately — Ora Repot shows it exactly once.
# Store the key in your shell — never commit it.
export ORAREPOT_KEY=orp_live_xxxxxxxxxxxxxxxxxxxxxxxxSend your first OTP
curl -sS https://api.orarepot.com/v1/otp/send \
-H "Authorization: Bearer $ORAREPOT_KEY" \
-H "Content-Type: application/json" \
-d '{"to":"+628123456789","template":"otp_login"}'Expected shape: { request_id, status, to, cost_idr }. Status starts as pending then success or failed.
