MSAAQ Documentation
Docs
APIs
  • Admin
  • Tenant
Docs
APIs
  • Admin
  • Tenant
Status
  1. Tenant
  • Getting Started with Tenant API
  • Auth
    • Me
    • Logout
    • Passwordless
    • Reset Password
    • Forget Password
    • Validate-recaptcha
    • Authorize Verify
    • Authorize
    • Register
    • Email Verify
  • 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. Tenant

Getting Started with Tenant API

Msaaq Tenant API Reference#

The Tenant API is used serve the Tenantfront actions and operations, including Tenant User authentication, making payments, retrieving courses, digital products, consulting sessions, bundles, and everything else related to a tenant. There are no roles in the Tenant API, all requests are made on behalf of the visitors or the Tenant Users.
TL;DR: Whatever visitors or Tenant Users see or do on the Tenantfront is powered by the Tenant API.

API Base URL#

When making requests to the Tenant API, make sure that you're adding the /tenant path to the base URL https://api.msaaq.com/v1, like so: https://api.msaaq.com/v1/tenant.

Headers#

Accept-Language#

Including a two letter language code (ISO 639-1 e.g., en, ar) in the Accept-Language header will return the response in the specified language. If the specified language is not available, the response will be in English.
This Header is optional and the default language is English.

X-Tenant#

All requests to the Tenant API should include the header X-Tenant with the value of the Tenant's default domain (e.g., tenant_slug.msaaq.net) or custom domain (e.g., custom-domain.com). This header is used to identify the Tenant that the request is being made on behalf of.
If the X-Tenant header is not provided, you will receive the following 400 Bad Request response in all requests:
{
    "status": "failed",
    "code": "TENANT_HEADER_NOT_PROVIDED",
    "message": {
        "body": "No Tenant header was provided"
    }
}
If the X-Tenant header is provided but with an invalid value, you will receive the following 400 Bad Request response:
{
    "status": "failed",
    "code": "TENANT_NOT_FOUND",
    "message": {
        "body": "Tenant not found"
    }
}
See it in action:

Request#

cURL
JavaScript
Python
PHP

Response#

200
TENANT_HEADER_NOT_PROVIDED 400
TENANT_NOT_FOUND 400
{
    "message": "pong!"
}
Next
Me
Built with