AuthnAuthzAPI
  1. Authentication
  • Overview
  • Authentication
    • Register a new user
      POST
    • Verify email address
      POST
  1. Authentication

Verify email address

Developing
POST
/verify-email
Verify a user's email address by a code sent via email.

Request

Body Params application/jsonRequired

Examples

Responses

🟒200Email Verified
application/json
Body

🟠400Validation Error
🟠404User Not Found
🟠409Email Already Verified
🟠400Invalid or Expired Token
πŸ”΄500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:3000/api/v1/verify-email' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "marilie94@hotmail.com",
    "code": "648737"
}'
Response Response Example
200 - Example
{
    "status": "success",
    "message": "Email address has been verified successfully.",
    "access_token": "a8aa1bcad10b088db1d9b3c2c621478b2998d27754325302ec8a137b5de4cd4f",
    "data": {
        "id": "e248410cae999ebb4d71853bb5f8a12d4198faca",
        "name": "Gerard Beer",
        "email": "rudy.maggio22@yahoo.com",
        "profile_picture": "https://avatars.githubusercontent.com/u/62897699",
        "account_status": "active",
        "last_login_geolocation": {
            "country_code": "TN",
            "country": "Gabon",
            "region": "Anaisstad",
            "city": "West Avischester",
            "latitude": 51.4201,
            "longitude": -6.1841,
            "timezone": "America/North_Dakota/New_Salem"
        },
        "created_at": "2026-03-01T05:32:10.759Z",
        "updated_at": "2026-03-01T05:32:10.759Z",
        "deleted_at": "2026-03-01T05:32:10.759Z"
    }
}
Modified atΒ 2026-03-01 05:28:53
Previous
Register a new user
Built with