Verify OTP

POST /user/verify-otp/

The POST /user/verify-otp/ endpoint allows users to verify an OTP (One-Time Password) sent to their email.


Parameters

Field

Type

Required

Description

Constraints

email

string (email)

Yes

The email address of the user.

Minimum length: 1

otp_code

string

Yes

The 6-digit OTP code.

Length: 6


Request Body Example

{
  "email": "user@example.com",
  "otp_code": "123456"
}

Responses

201 Created

The OTP verification was successful.

Response Body Example:

{
  "email": "user@example.com",
  "otp_code": "123456"
}

Last updated