# Email Service

#### Overview&#x20;

* **Email Verification Controller**:  This manages the verification of user emails through OTPs.
* **Offer Controller**: Handles the creation, rejection, and service of loan offers.

#### API Endpoints

```markdown
#### Verify Mail
**URL**: `/api/v1/verifyMail`
**Method**: `POST`
**Description**: Verifies a user's email address using an OTP sent to the provided email.
**Parameters**:
- `email`: The user's email address (required).
- `otp`: The OTP received by the user (required).
**Responses**:
- `200 OK`: Email verified successfully.
- `400 Bad Request`: Invalid email or OTP.
```

#### Schemas

```markdown
#### Schemas

##### VerificationRequest
- `email`: String (required)
- `otp`: String (required)

##### OtpVerificationResponse
- `status`: String (required)
- `message`: String (optional)

##### EmailResponse
- `emailVerified`: Boolean (required)
- `message`: String (optional)

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://p2p-lending-protocol.gitbook.io/peer-lend/backend/email-service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
