التكرار الآمن وإعادة المحاولة

ترويسة Idempotency-Key الرسمية لـ verify/send وsms/send وnotifications/send. الإشعارات تقبل أيضًا body idempotencyKey؛ التعارض يُرجع IDEMPOTENCY_CONFLICT.

curl -X POST "https://api.algeriaotp.com/v1/verify/send" \
  -H "X-Api-Key: aotp_live_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-42-otp" \
  -d '{"phone":"+213555123456","locale":"fr"}'

Français · العربية · English