MSAAQ Documentation
Docs
APIs
  • Admin
  • Tenant
Docs
APIs
  • Admin
  • Tenant
Status
  1. Auth
  • Getting Started with Tenant API
  • Auth
    • Me
      GET
    • Logout
      POST
    • Passwordless
      POST
    • Reset Password
      POST
    • Forget Password
      POST
    • Validate-recaptcha
      POST
    • Authorize Verify
      POST
    • Authorize
      POST
    • Register
      POST
    • Email Verify
      POST
  • Reviews
    • Delete Review
    • Update Review
    • Create Review
    • Reviews distribution
    • List Reviews
  • Account
    • Update login credentials
      • Change password
      • verify
      • Update login credentials
    • Affliates
      • Withdraw Request
      • payouts
      • Info
    • Banks
      • Remove Bank Acount
      • Update Bank Account
      • Create Bank
      • Show bank
    • Calendar
      • Calendar
    • Change password by signed
    • Unsubsribe
    • Update Account
    • Get order invoice
    • Last viewed course/learning path
    • List User's Appointments
    • User Stats
    • List User's Rejected Assignments
    • List User's Assignments
    • List User's Quizzes
    • List User's Upcomming Appointments
    • List User's Products
    • List User's Courses
    • List User's Learning Paths
    • Last User's Orders
  • Certificates
    • Verify Certificate
    • Download Certificate
    • List User's Certificates
  • Currencies
    • List of currencies
  • Newsletter
    • Unsubscribe
    • Subscribe
    • Request subscribe
  • Cart
    • Checkout
    • Redeem Coupon
    • Express Checkout
    • Remove From Cart
    • Add To Cart
    • Get cart by uuid
    • Get Current Cart
    • Get card token
  • Courses
    • Overview
    • Chapters
      • Contents
        • Comments
          • Create Comment's Reply
          • Delete Comment
          • Update Comment
          • Create Comment
          • List Comments
        • Quizzes
          • Close Attempt
          • Submit Survey Answer
          • Submit Quiz Answer
          • Survey Attempt Details
          • Quiz Attempt Details
          • Attempt Survey
          • Attempt Quiz
        • Assignments
          • Resubmit Assignment
          • Submit Assignment
        • Mark Content as Complete
        • Join meeting
        • Content Attachmet Dowload
        • Content Details
        • List Chapter's Contents
      • Chapter Details
      • List Chapters
    • Get QR code
    • Course Details
    • Course Certificate
    • List Best Selling Courses
    • List Interesting Courses
    • List Courses
  • Payments
    • Tap callback
  • Pages
    • Contact Us
    • Page Details
    • Privacy Page
    • About Us
    • Terms Page
    • Home Page Details
  • Articles
    • Comments
      • Create replay
      • Delete Comment
      • Update Comment
      • Create comment
      • List of comments
    • Article Details
    • List of Articles
  • Instructors
    • Instructor Details
    • List of Instructors
  • Taxonomies
    • Get Taxonomy details
    • List of Taxonomies
  • Products
    • Interesting Products
    • Interesting Products
    • Download Product media
    • Available Appointments
    • Product Details
    • Best sales products
    • List Products
  • Appointments
    • book appointment
    • show Appointments Details
    • List Appointments
  • Comment
    • List Comment Replies
  • Learning paths
    • Learning path Details
  • notifications
    • list
    • mark as read
  • Assignment
    • List Assignment Segments
  • Get Sitemap
    GET
  • Get Translations
    GET
  • Search
    GET
  • Well Know
    GET
  • Ping Pong
    GET
  • Get Tenant Details
    GET
  1. Auth

Authorize

Production
https://api.msaaq.com/v1
Production
https://api.msaaq.com/v1
POST
https://api.msaaq.com/v1
/tenant/auth/authorize
Last modified:2025-05-12 23:57:12
This endpoint is used to authenticate or register a user based on their current status. If the user is already registered and exists in the system, they will be logged in. Otherwise, if the user is not registered, they will be prompted to complete the registration process. The response from this endpoint will provide the next action that the user should take, either entering their password if they have previously set one, or entering the OTP (One-Time Password) that has been sent to their phone or email, depending on the value of the via parameter.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
X-Tenant
string 
required
Example:
{{tenant}}
Accept
string 
required
Example:
application/json
Body Params multipart/form-data
via
string 
required
Example:
email
email
string 
required
Example:
example@msaaq.com
phone_code
string 
required
phone
string 
required
prefer_otp
string 
required
Example:
true
login_only
string 
required
Example:
true

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.msaaq.com/v1/tenant/auth/authorize' \
--header 'X-Tenant: academy.msaaq.com' \
--header 'Accept: application/json' \
--form 'via="email"' \
--form 'email="example@msaaq.com"' \
--form 'phone_code=""' \
--form 'phone=""' \
--form 'prefer_otp="true"' \
--form 'login_only="true"'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Previous
Authorize Verify
Next
Register
Built with