Skip to main content

Send Patient OTP (v1)

Method & Path

POST /api/v1/public/labs/patient-otp/send

Description

Send a one-time code to the patient's phone so they can access lab results. The OTP is sent regardless of workspace SMS balance, and the cost is recorded per matched workspace under "مريض طلب تحليل مختبر".

Authentication

None: Public endpoint. Persona access: Customer (patient).

Headers

  • Content-Type: application/json

Request Body

{
"phone": "+972592123456"
}

Response 200 OK

{
"message": "OTP code sent successfully."
}

Common Errors

  • 400 Bad Request: Invalid or missing phone number.
  • 422 Unprocessable Entity: Too many OTP requests.
  • 500 Internal Server Error: Unexpected server error.