Hỗ trợ kỹ thuật 24/7 — Liên hệ ngay nếu bạn cần giúp đỡ!

Hotline kỹ thuật
VN|
EN
  • Tính năng
  • Khách hàng
  • Bảng giá
  • Tài liệu API
  • Hướng dẫn
    📋 Lộ trình thiết lập (Tất cả hướng dẫn)Cấu hình mức giáHướng dẫn sử dụng tính năng module (multi khóa)Affiliate + thanh toán AffiliateQuản lý UsersEmail makettingNâng cấp acc Free lên ProĐăng bài học (Video)Khuyến mãiBlog EnterpiseLấy mã script pixel FB,TIKTOKHướng Dẫn Cấu Hình Webhook SePayEmail makettingSetup kịch bản email remarketing Hướng dẫn sử dụng tính năng module gia hạn theo tháng, năm SAASTrọn bộ hướng dẫn chạy adsSản phẩm bán kèmTài liệu theo bài họcTài liệu cho từng chươngBán comboCấu hình custom layout khóa lẻTính năng subcriptionHóa đơn điện tửTính năng luyện đềĐăng nhập & Đăng ký tài khoảnThanh toán qua mã QR ngân hàngQuản lý đơn hàngDashboard & Báo cáo tổng quan
  • Hướng dẫn
VN|
EN
Tự tạo Website Elearning riêngTạo website Elearning
Tổng quan API
Nhóm API
🔐Xác thực (Authentication)🎬Khoá học (Courses)💳Đơn hàng & Thanh toán⬆️Nâng cấp & Bảng giá (SAAS)🤝Affiliate✉️Email marketing📰Blog, Content & CMS🧾Hoá đơn🌐Quản lý tên miền
Trang chủ>Tài liệu API>Xác thực (Authentication)
🔐

Xác thực (Authentication)

Đăng ký, đăng nhập, OAuth, quên mật khẩu, thông tin khách hàng.

9 endpoint
  • Đăng ký tài khoản
  • Đăng nhập (email/mật khẩu)
  • Đăng nhập Google (OAuth)
  • Lấy URL đăng nhập mạng xã hội
  • Quên mật khẩu
  • Xác thực OTP
  • Đổi mật khẩu (qua OTP)
  • Thông tin khách hàng
  • Đăng xuất
GRAPHQL

Đăng ký tài khoản

Public
GRAPHQLhttps://saas-api.mona.academy/graphql/

Tạo tài khoản khách hàng mới (mutation createCustomerV2).

Base URL: https://saas-api.mona.academy (NEXT_PUBLIC_API)

Tham số

TênKiểuBắt buộcMô tả
emailString!Có—
firstnameString!Có—
lastnameString!Có—
passwordString!Có—
redirect_urlStringKhôngURL redirect sau xác thực
referral_codeStringKhôngMã giới thiệu (nếu có)
referral_sourceStringKhông—

Ví dụ request

Request
mutation {
  createCustomerV2(input: {
    email: "user@example.com"
    firstname: "Nguyen"
    lastname: "Van A"
    password: "********"
    redirect_url: "https://your-site.com/verify"
  }) {
    customer { email }
  }
}

Ví dụ response

Response
{
  "data": {
    "createCustomerV2": { "customer": { "email": "user@example.com" } }
  }
}
GRAPHQL

Đăng nhập (email/mật khẩu)

Public
GRAPHQLhttps://saas-api.mona.academy/graphql/

Đăng nhập và nhận JWT token (mutation generateCustomerToken).

Base URL: https://saas-api.mona.academy (NEXT_PUBLIC_API)

Tham số

TênKiểuBắt buộcMô tả
emailString!Có—
passwordString!Có—

Ví dụ request

Request
mutation {
  generateCustomerToken(email: "user@example.com", password: "********") {
    token
  }
}

Ví dụ response

Response
{
  "data": { "generateCustomerToken": { "token": "eyJ0eXAiOiJKV1Q..." } }
}
GRAPHQL

Đăng nhập Google (OAuth)

Public
GRAPHQLhttps://saas-api.mona.academy/graphql/

Đăng nhập qua Google OAuth callback (generateCustomerTokenSocialLogin), trả JWT token.

Base URL: https://saas-api.mona.academy (NEXT_PUBLIC_API)

Tham số

TênKiểuBắt buộcMô tả
stateStringCó—
codeStringCó—
scopeStringKhông—
referral_codeStringKhông—
GRAPHQL

Lấy URL đăng nhập mạng xã hội

Public
GRAPHQLhttps://saas-api.mona.academy/graphql/

Trả về danh sách provider OAuth (Google, Facebook...) kèm login_url.

Base URL: https://saas-api.mona.academy (NEXT_PUBLIC_API)

Ví dụ response

Response
{
  "data": {
    "socialLoginUrl": [
      { "key": "google", "label": "Google", "login_url": "https://..." }
    ]
  }
}
GRAPHQL

Quên mật khẩu

Public
GRAPHQLhttps://saas-api.mona.academy/graphql/

Gửi email reset mật khẩu kèm OTP (mutation forgotPassword).

Base URL: https://saas-api.mona.academy (NEXT_PUBLIC_API)

Tham số

TênKiểuBắt buộcMô tả
emailString!Có—
GRAPHQL

Xác thực OTP

Public
GRAPHQLhttps://saas-api.mona.academy/graphql/

Xác thực mã OTP gửi qua email (mutation verifyOtp).

Base URL: https://saas-api.mona.academy (NEXT_PUBLIC_API)

Tham số

TênKiểuBắt buộcMô tả
emailString!Có—
otpString!Có—
GRAPHQL

Đổi mật khẩu (qua OTP)

Public
GRAPHQLhttps://saas-api.mona.academy/graphql/

Đặt mật khẩu mới sau khi xác thực OTP (mutation changePassword).

Base URL: https://saas-api.mona.academy (NEXT_PUBLIC_API)

Tham số

TênKiểuBắt buộcMô tả
emailString!Có—
passwordString!Có—
otpString!Có—
GRAPHQL

Thông tin khách hàng

🔒 Cần token
GRAPHQLhttps://saas-api.mona.academy/graphql/

Lấy thông tin hồ sơ của khách hàng đang đăng nhập (query getCustomerInfor).

Base URL: https://saas-api.mona.academy (NEXT_PUBLIC_API)

Ví dụ response

Response
{
  "data": {
    "customer": {
      "email": "user@example.com",
      "firstname": "Nguyen",
      "lastname": "Van A",
      "avatar": "https://...",
      "is_pro": true
    }
  }
}
GRAPHQL

Đăng xuất

🔒 Cần token
GRAPHQLhttps://saas-api.mona.academy/graphql/

Thu hồi token, kết thúc phiên (mutation revokeCustomerToken).

Base URL: https://saas-api.mona.academy (NEXT_PUBLIC_API)

← Quay lại tổng quan API
icon zalo
icon messenger

Nền tảng E-Learning tất-cả-trong-một dành cho chuyên gia, coach và doanh nghiệp giáo dục — host khoá học, bán hàng tự động, vận hành cộng đồng trên một hệ thống duy nhất.

Menu
  • Tính năng
  • Khách hàng
Liên hệ
Trụ sở chính
1073/23 Cách Mạng Tháng 8, P.7, Q. Tân Bình, TP.HCM
Hotline
1900 636 648
Giờ làm việc
T2 – T7 · 08:00 – 18:00 (GMT+7)
Công ty chủ quản
CÔNG TY TNHH MONA MEDIA
Mã số thuế
0313769557
Cấp ngày
21/04/2016 — Sở KH & ĐT TP.HCM
© 2026 Mona Academy. All rights reserved.