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
    • Orders within range time
      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
    • User's Notifications
    • All Notifications
    • Create notification
    • Delete Notification
  • Banners
    • All Banners
    • Create Banner
    • Delete Banners
  • WhatsApp
    • initialize whatsapp Session
  • Settings
    • Set Vat Value
    • get Vat Value
  1. Authentication

Login

POST
http://82.180.154.188:4352/auth/login
Last modified:2025-05-28 23:58:53
This endpoint allows registered users to log in by providing their email and password. Upon successful authentication, an access token is returned for authorization in subsequent requests.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://82.180.154.188:4352/auth/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "ADMIN@gmail.com",
    "password": "ADMINADMIN"
}'
Response Response Example
{
    "status": "success",
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mbyI6eyJpZCI6IjY3YTkxMzc4M2QzOWYyYzgwMjliYjE4ZiIsImZ1bGxOYW1lIjp7ImZpcnN0TmFtZSI6Im1hamQiLCJsYXN0TmFtZSI6IndhaG9vYiIsIl9pZCI6IjY3YTkxMzc4M2QzOWYyYzgwMjliYjE5MCJ9LCJyb2xlIjoiVVNFUiJ9LCJpYXQiOjE3MzkxMzQxMDcsImV4cCI6MTczOTEzNTkwN30.zzbnhI0dyODIiIJdzF0M1zVbriJZKg7EAhvec2ZerxM"
}

Request

Body Params application/json

Examples

Responses

🟢200Login
application/json
Body

Modified at 2025-05-28 23:58:53
Previous
Verify phone number
Next
Refresh Token
Built with