---
title: "Send Or Verify Otp"
method: GET
path: "/api/MobileApp/otp_send_and_verify"
tags: ["MobileApp"]
---

# Send Or Verify Otp

`GET /api/MobileApp/otp_send_and_verify`

**Function**: `send_or_verify_otp`
**Type**: API Endpoint (GET)

**Purpose**:  
This function is used to send an OTP to the user's email address or to verify an OTP sent to the user. It is used for user authentication.

**URL**:  
`GET http://<baseURL>/api/MobileApp/otp_send_and_verify`

**Request Headers**:
- **Key** (Header, required):  
  The email address or mobile number of the user to send the OTP to.
- **otp** (Header, optional):  
  The OTP sent to the user to verify.

**Response**:  
A JSON response containing the result of the OTP verification or a message indicating that the OTP has been sent to the user's email address.

**Error Handling**:
- Raises HTTP 404 if the user is not found.
- Raises HTTP 400 if the OTP is invalid or has expired.
- Raises HTTP 500 for any other exceptions encountered during execution.

## Headers

- `Key` string, required
- `otp` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) · [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/leapsurgebi/leapsurgeapi/revisions/5a6b1464bfeb/schema)
