LaundryAPI
  1. Authentication
LaundryAPI
  • Authentication
    • Signup
      POST
    • Resend Verification Code
      POST
    • Verify phone number
      POST
    • Login
      POST
    • Refresh Token
      GET
    • Forgot Password
      POST
    • Reset Password
      PATCH
    • Update Password
      PATCH
    • Logout
      POST
  • Users
    • Get Me
      GET
    • Update Me
      PATCH
    • Delete Me
      DELETE
    • Get All Users
      GET
    • Update User
      PATCH
    • Delete User
      DELETE
    • Create Delivery
      POST
    • Create Admin
      POST
  • Items
    • Get all items
      GET
    • Get Single item
      GET
    • Create item
      POST
    • Update item
      PATCH
    • Delete item
      DELETE
  • Orders
    • Get all orders
      GET
    • Single Order
      GET
    • Create Order
      POST
    • Delete order
      DELETE
    • Update Order
      PATCH
  • Branches
    • All Branches
    • Single Branch
    • branch's orders
    • Nearest Branches
    • Create Branch
    • update branch
    • Delete branch
  • Notifications
    • All Notifications
    • Create notification
    • Delete Notification
  • Banners
    • All Banners
    • Create Banner
    • Delete Banners
  • WhatsApp
    • initialize whatsapp Session
  1. Authentication

Verify phone number

POST
http://82.180.154.188:4352/auth/verifyemail/1613
Last modified:2025-05-29 00:10:24
This endpoint verifies a user’s phone number using a unique verification code sent to their email. Upon successful verification, the user receives an access token for authentication.
user Phone number must be provided with the country code.
Path Parameter:
code (string) – The verification code provided in the email.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://82.180.154.188:4352/auth/verifyemail/1613' \
--header 'Content-Type: application/json' \
--data-raw '{
    "phoneNumber": "201025723911"
}'
Response Response Example
{
    "status": "success",
    "message": "Email verified successfully.",
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mbyI6eyJpZCI6IjY3YTkwZjgxYjU2ZDBmNTNhYmFhNjUwMiIsImZ1bGxOYW1lIjp7ImZpcnN0TmFtZSI6Im1hamQiLCJsYXN0TmFtZSI6IndhaG9vYiIsIl9pZCI6IjY3YTkwZjgxYjU2ZDBmNTNhYmFhNjUwMyJ9LCJyb2xlIjoiVVNFUiJ9LCJpYXQiOjE3MzkxMzM0NTksImV4cCI6MTczOTEzNTI1OX0.5K6islXKnjvPtow1OgZ-yjrqF0aZHUYbGMBWoOcl-pE"
}

Request

Body Params application/json
phoneNumber
string 
required
Examples

Responses

🟢200Verify Email
application/json
Body
status
string 
required
message
string 
required
accessToken
string 
required
Previous
Resend Verification Code
Next
Login
Built with