Use cases
Appointment confirmation
Confirm bookings for clinics, salons and service centres with a code, so slots aren't held by fake numbers.
- The customer picks a slot and gives their number. Your server holds the slot for a few minutes and sends a code with
purpose: "appointment". - The customer types the code. On
valid: true, your server confirms the booking; otherwise the hold expires and the slot is free again.
The message reads, for example: "عيادة الأمل: رمز تأكيد موعدك 7305، صالح 5 دقائق، لا تشاركه."
Notes
- Make the hold slightly longer than the code's validity (5 minutes by default), so a customer typing the code at the last second still gets the slot.
- Limit how many slots one number can hold at once.
- For reminders the day before, use your own SMS or WhatsApp messages: OTP.ps sends verification codes only.