Rekamedika Docs
Email OTP

POST /email-otp/check-verification-otp

POST
/api/auth/email-otp/check-verification-otp

Verify an email with an OTP

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

email*string

Email address the OTP was sent to

type*string

Type of the OTP

Value in

  • "email-verification"
  • "sign-in"
  • "forget-password"
  • "change-email"
otp*string

OTP to verify

Response Body

application/json

curl -X POST "https://example.com/api/auth/email-otp/check-verification-otp" \  -H "Content-Type: application/json" \  -d '{    "email": "string",    "type": "email-verification",    "otp": "string"  }'
{  "success": true}

Is this page helpful?