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
๐ŸŸ 400Validation error
๐Ÿ”ด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 1
{
    "status": "string",
    "message": "string",
    "access_token": "string",
    "data": {
        "id": "string",
        "name": "string",
        "email": "string",
        "profile_picture": "string",
        "account_status": "pending",
        "email_verified": false,
        "email_verified_at": "2019-08-24T14:15:22.123Z",
        "last_login_at": "2019-08-24T14:15:22.123Z",
        "last_login_ip": "string",
        "last_login_geolocation": {
            "country_code": "string",
            "country": "string",
            "region": "string",
            "city": "string",
            "latitude": 0,
            "longitude": 0,
            "timezone": "string"
        },
        "created_at": "string",
        "updated_at": "string",
        "deleted_at": "string"
    }
}
Modified atย 2026-03-01 03:53:31
Previous
Register a new user
Built with