Mobile - InWan
  1. Auth
Mobile - InWan
  • 🐶 Walk through Apidog
  • CMS
    • V1
      • Video
        • GET - LIST Videos
        • POST - Videos
        • Featured Video
        • POST - Featured Videos
      • Auth
        • Login
          POST
        • Logout
          POST
        • Firebase Token
          POST
      • Profile
        • Profile
      • Customer
        • Address
          • List
          • Update
        • Point History
          • List
        • Referral
          • Update Referral
          • List HIstory
        • Summary
        • Statistic
        • List
        • Show
        • Update
        • Change Password
      • Admin
        • List
        • Create
        • Show
        • Update
        • Change password
        • Delete
      • Event
        • Update
        • Show
      • Product
        • Category
          • List
          • Create
          • Show
          • Update
          • Delete
          • Subcategory list
          • Order position
        • Variant
          • Toggle Product Variant Status
        • Review
          • List
          • Reply
          • Delete Reply
        • Sync Stock
          • Check
          • Bulk Update
        • Bulk Create
          • Check
          • Bulk Create
        • List
        • Create
        • Toggle Product Status
        • Show
        • Update
        • Delete
        • Summary
        • Top sales
      • News
        • List
        • Create
        • Show
        • Update
        • Delete
        • Broadcast
      • Promo
        • List
        • Create
        • Show
        • Update
        • Delete
        • Referral
      • Home
        • Banner
          • List
          • Create
          • Delete
          • Sort
        • Popup Banner
          • GET - LIST PopBanner
          • POST - PopBanner
          • DELETE - PopBanner
        • Featured Product
          • List
          • Create
          • Delete
          • Sort
        • Featured Category
          • List
          • Create
          • Delete
          • Sort
      • Setting
        • List
        • Update
      • Order
        • List
        • Detail
        • Update
        • Update payment status
        • Change shipping price
        • Update shipping fee
        • Statistic
        • Summary weekly report
        • Invoice
      • Chat
        • Messages
        • Send
        • Read Message
        • GET - Messages Copy
        • Room
        • Create Room
        • Notification Unread
        • Pin Chat Room
      • Broadcast
        • List
        • Create
        • Update
        • Delete
        • Send
        • Detail
      • Fcm
        • Save
      • Report
        • List
        • Export
    • V2
      • Video
        • Index
        • Create
        • Update
        • Delete
        • Show
      • Chat
        • GET - Messages
        • Send
        • Room
      • Order
        • GET - List Order By Customer
        • Detail
        • GET - Order
        • GET - List order based on customer
        • Statistic
        • Update
        • Summary weekly report
      • Home
        • Featured Video
          • Index
          • Delete
          • Sort
          • Create
      • Customer
        • Point History
          • List
          • Add point
        • GET - Summary
        • GET - Summary Statistic
        • GET - LIST User Referal USAGE
        • GET - Summary Statistic
      • Report
        • Product
          • Click rate
          • Click rate Export
          • Add to cart
          • Add to chart Export
          • Ordered
          • Ordered export
        • GET - Export New Customer
      • Product
        • POST - CREATE Product
        • PATCH - UPDATE Product
      • Setting
        • List
        • Update
      • Dashboard
        • Product
          • Statistic
          • Most click
  • APP
    • V1
      • Auth
        • Login Basic
        • Login Social
        • Register
        • Check Phone
        • Reset Password
        • Firebase Token
      • Otp
        • Send
        • Verify
      • Banner
        • List
      • News
        • List
        • Detail
      • User
        • Address
          • List
          • Create
          • Update
          • Toggle primary
          • Delete
        • Voucher
          • List
          • Detail
          • History
          • Claim
        • Social Media
          • List
          • Bind
          • Unbind
        • Show profile
        • Logout
        • Update profile
        • Update profile (For first login with social media account)
        • Change password
        • Delete
        • List point history
        • Toggle Auto Use Point
        • Change Language
      • Event
        • Flashsale
      • Product
        • Category
          • List
          • List featured
          • List child
        • Review
          • List
          • Create
          • Toggle like
        • Flash sale Copy
        • List
        • Variant Options
        • Variant
        • Flash sale
        • Detail
        • Recommendation
        • Related
        • Autocomplete
        • Viewed
      • Cart
        • List
        • Create
        • Delete
      • Wishlist
        • List
        • Toggle
      • Order
        • Review
          • Unreviewed Order Item List
          • My Reviews
        • List
        • Detail
        • Confirmation
        • Payment methods
        • Create
        • Detail payment method
        • Show Detail payment method
        • Invoice
        • Finish order
        • Received
      • Chat
        • Messages
        • Send
        • Read Message
      • Fcm
        • Save
        • Test Notif
      • Notification
        • Notification History
        • Notification Unread Count
    • V2
      • Banner
        • GET - ACTIVE PopBanner
        • GET - List
      • Order
        • POST - Create
        • Cancel Order
        • Confirmation
        • GET - LIST Order
      • Video
        • GET - Featured Video
        • GET - LIST Video
        • GET - Video Detail
      • Voucher
        • List
        • Detail
        • History
        • Claim
      • Chat
        • GET - Messages
        • Send
      • Product
        • List
      • User
        • Address
          • GET - LIST Address
        • Social Media Copy
          • Bind Raw
          • List
          • Bind
          • Unbind
        • GET - LIST User Referal USAGE Copy
        • GET - Profile
      • Auth
        • Login social (without token)
  1. Auth

Login

Develop Env
https://dev-api.inwantaiwan.com
Develop Env
https://dev-api.inwantaiwan.com
POST
/api/cms/v1/auth/login
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://dev-api.inwantaiwan.com/api/cms/v1/auth/login' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "admin@mail.com",
    "password": "password"
}'
Response Response Example
{
    "data": {
        "access_token": "40|r5qhXNEZISYWImVIHKlCU1gqIKC0SCr01e0tvsQ529a901c6",
        "firebase_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJmaXJlYmFzZS1hZG1pbnNkay0zN2Ryb0BjaGF0YXBwcy1hMzRiNi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInN1YiI6ImZpcmViYXNlLWFkbWluc2RrLTM3ZHJvQGNoYXRhcHBzLWEzNGI2LmlhbS5nc2VydmljZWFjY291bnQuY29tIiwiYXVkIjoiaHR0cHM6Ly9pZGVudGl0eXRvb2xraXQuZ29vZ2xlYXBpcy5jb20vZ29vZ2xlLmlkZW50aXR5LmlkZW50aXR5dG9vbGtpdC52MS5JZGVudGl0eVRvb2xraXQiLCJpYXQiOjE3MzE1NTA2NDAsImV4cCI6MTczMTU1NDI0MCwidWlkIjoiMSIsImNsYWltcyI6eyJpZCI6MSwiZW1haWwiOiJhZG1pbkBtYWlsLmNvbSIsInJvbGUiOiJhZG1pbiJ9fQ.thcvAYBxi1299jPkPuybF7K4JCMykEWipnm4F-wboUKzy_2_u5gci7pcxzYbOgs5JBmvJvYkmyjjyC-Zq1jPvcI4PxMHbChQSoPGjtxLXTXJnAly5VUdMNwh_OFhko5vgAh2Vt1NGWhb691PLArmYPQlBNExCg4vu0c5h9-FMP_csqFY_wtg8vIV8Cj3yHtxyxGL0eQinCshAHOkAcuh2crw0VyIeT1yL9QIexj9GbMtW4FwTsmXe4ri9EZ_3Wyb7lYEU39HXDZu11yAwMyjqCnrNs9H5mrEI0DB60MaJnHQPWFhUr1-ushYm_VPpHl_A3sEGRQbB7h8-gHdZyIfHQ",
        "user": {
            "id": 1,
            "name": "Admin",
            "email": "admin@mail.com",
            "role": "super-admin",
            "permissions": []
        }
    }
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Modified at 2025-05-05 09:35:46
Previous
POST - Featured Videos
Next
Logout
Built with