The MONA Group Auth API

Đăng nhập, token và tài khoản.

Operations 21

POST /api/auth/login Login with email and password for CLI/script usage #
POST /api/auth/check-otp Non-consuming OTP precheck for the SPA's two-step register/reset flows #
POST /api/auth/refresh Trade a valid access token for a fresh one with a new expiry #
POST /api/auth/identify Identify an email and start registration OTP if needed #
POST /api/auth/register/verify Verify registration OTP and create account #
POST /api/auth/reset/start Send password reset OTP #
POST /api/auth/reset/verify Verify reset OTP and change password #
GET /api/auth/providers Which social-login providers are enabled #
GET /api/me Get the current account #
GET /api/me/referral Get the current user's referral code, link and stats #
GET /api/me/affiliate Affiliate revenue-share summary #
GET /api/me/affiliate/commissions List affiliate commissions #
GET /api/me/affiliate/referrals List referred accounts #
PUT /api/me/affiliate/settings Save affiliate payout settings #
GET /api/me/affiliate/payouts List affiliate payouts #
POST /api/me/affiliate/payouts Request an affiliate payout #
POST /api/me/referral/claim Claim a referral code #
GET /api/me/credit-grants Per-user audit trail of credit grants #
POST /api/auth/logout Revoke the current account access token #
POST /api/auth/stop-impersonation Revoke the current impersonation token and close the audit event #
POST /api/auth/monaid/link/verify Monaid Link Verify #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/monacloud:monacloud-auth-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

monacloud-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Monacloud Auth API
  version: 0.3.0
  description: 'Operations tagged auth across 2 of this provider''s published API definitions: monacloud-api-openapi.json, monacloud-vn-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.monacloud.vn
- url: https://api.vibecloud.vn
tags:
- name: Auth
  description: Đăng nhập, token và tài khoản.
paths:
  /api/auth/login:
    post:
      tags:
      - Auth
      summary: Login with email and password for CLI/script usage
      operationId: api_login_api_auth_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasswordLoginRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Login Api Auth Login Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Tạo dữ liệu hoặc thực thi thao tác tại `/api/auth/login`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/auth/check-otp:
    post:
      tags:
      - Auth
      summary: Non-consuming OTP precheck for the SPA's two-step register/reset flows
      description: Tạo dữ liệu hoặc thực thi thao tác tại `/api/auth/check-otp`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      operationId: api_check_otp_api_auth_check_otp_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckOtpRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Check Otp Api Auth Check Otp Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/auth/refresh:
    post:
      tags:
      - Auth
      summary: Trade a valid access token for a fresh one with a new expiry
      description: Tạo dữ liệu hoặc thực thi thao tác tại `/api/auth/refresh`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      operationId: api_refresh_access_token_api_auth_refresh_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Refresh Access Token Api Auth Refresh Post
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/auth/identify:
    post:
      tags:
      - Auth
      summary: Identify an email and start registration OTP if needed
      operationId: api_identify_email_api_auth_identify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Identify Email Api Auth Identify Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Tạo dữ liệu hoặc thực thi thao tác tại `/api/auth/identify`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/auth/register/verify:
    post:
      tags:
      - Auth
      summary: Verify registration OTP and create account
      operationId: api_register_verify_api_auth_register_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterVerifyRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Register Verify Api Auth Register Verify Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Tạo dữ liệu hoặc thực thi thao tác tại `/api/auth/register/verify`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/auth/reset/start:
    post:
      tags:
      - Auth
      summary: Send password reset OTP
      operationId: api_reset_start_api_auth_reset_start_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Reset Start Api Auth Reset Start Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Tạo dữ liệu hoặc thực thi thao tác tại `/api/auth/reset/start`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/auth/reset/verify:
    post:
      tags:
      - Auth
      summary: Verify reset OTP and change password
      operationId: api_reset_verify_api_auth_reset_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResetPasswordRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Reset Verify Api Auth Reset Verify Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Tạo dữ liệu hoặc thực thi thao tác tại `/api/auth/reset/verify`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/auth/providers:
    get:
      tags:
      - Auth
      summary: Which social-login providers are enabled
      operationId: api_auth_providers_api_auth_providers_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Auth Providers Api Auth Providers Get
      description: Đọc dữ liệu tại `/api/auth/providers`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/me:
    get:
      tags:
      - Auth
      summary: Get the current account
      operationId: api_me_api_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Me Api Me Get
      description: Đọc dữ liệu tại `/api/me`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/me/referral:
    get:
      tags:
      - Auth
      summary: Get the current user's referral code, link and stats
      description: Đọc dữ liệu tại `/api/me/referral`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      operationId: api_me_referral_api_me_referral_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Me Referral Api Me Referral Get
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/me/affiliate:
    get:
      tags:
      - Auth
      summary: Affiliate revenue-share summary
      operationId: api_me_affiliate_api_me_affiliate_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Me Affiliate Api Me Affiliate Get
      description: Đọc dữ liệu tại `/api/me/affiliate`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/me/affiliate/commissions:
    get:
      tags:
      - Auth
      summary: List affiliate commissions
      operationId: api_me_affiliate_commissions_api_me_affiliate_commissions_get
      parameters:
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 100
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Me Affiliate Commissions Api Me Affiliate Commissions Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Đọc dữ liệu tại `/api/me/affiliate/commissions`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/me/affiliate/referrals:
    get:
      tags:
      - Auth
      summary: List referred accounts
      operationId: api_me_affiliate_referrals_api_me_affiliate_referrals_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Me Affiliate Referrals Api Me Affiliate Referrals Get
      description: Đọc dữ liệu tại `/api/me/affiliate/referrals`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/me/affiliate/settings:
    put:
      tags:
      - Auth
      summary: Save affiliate payout settings
      operationId: api_me_affiliate_settings_api_me_affiliate_settings_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AffiliateSettingsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Me Affiliate Settings Api Me Affiliate Settings Put
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Cập nhật dữ liệu tại `/api/me/affiliate/settings`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/me/affiliate/payouts:
    get:
      tags:
      - Auth
      summary: List affiliate payouts
      operationId: api_me_affiliate_payouts_api_me_affiliate_payouts_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Me Affiliate Payouts Api Me Affiliate Payouts Get
      description: Đọc dữ liệu tại `/api/me/affiliate/payouts`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    post:
      tags:
      - Auth
      summary: Request an affiliate payout
      operationId: api_me_affiliate_request_payout_api_me_affiliate_payouts_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AffiliatePayoutRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Me Affiliate Request Payout Api Me Affiliate Payouts Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Tạo dữ liệu hoặc thực thi thao tác tại `/api/me/affiliate/payouts`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/me/referral/claim:
    post:
      tags:
      - Auth
      summary: Claim a referral code
      operationId: api_me_referral_claim_api_me_referral_claim_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReferralClaimRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Me Referral Claim Api Me Referral Claim Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Tạo dữ liệu hoặc thực thi thao tác tại `/api/me/referral/claim`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/me/credit-grants:
    get:
      tags:
      - Auth
      summary: Per-user audit trail of credit grants
      operationId: api_me_credit_grants_api_me_credit_grants_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Me Credit Grants Api Me Credit Grants Get
      description: Đọc dữ liệu tại `/api/me/credit-grants`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/auth/logout:
    post:
      tags:
      - Auth
      summary: Revoke the current account access token
      operationId: api_logout_api_auth_logout_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Logout Api Auth Logout Post
      description: Tạo dữ liệu hoặc thực thi thao tác tại `/api/auth/logout`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/auth/stop-impersonation:
    post:
      tags:
      - Auth
      summary: Revoke the current impersonation token and close the audit event
      description: Tạo dữ liệu hoặc thực thi thao tác tại `/api/auth/stop-impersonation`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
      operationId: api_stop_impersonation_api_auth_stop_impersonation_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Api Stop Impersonation Api Auth Stop Impersonation Post
      security:
      - BearerAuth: []
      - ApiTokenHeader: []
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
  /api/auth/monaid/link/verify:
    post:
      tags:
      - Auth
      summary: Monaid Link Verify
      operationId: monaid_link_verify_api_auth_monaid_link_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MonaIDLinkVerify'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Monaid Link Verify Api Auth Monaid Link Verify Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Tạo dữ liệu hoặc thực thi thao tác tại `/api/auth/monaid/link/verify`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.
    servers:
    - url: https://api.monacloud.vn
    - url: https://api.vibecloud.vn
components:
  schemas:
    CheckOtpRequest:
      properties:
        email:
          type: string
          title: Email
        otp:
          type: string
          maxLength: 6
          minLength: 6
          title: Otp
        purpose:
          type: string
          enum:
          - register
          - reset_password
          title: Purpose
      type: object
      required:
      - email
      - otp
      - purpose
      title: CheckOtpRequest
      description: 'Non-consuming OTP check (POST /api/auth/check-otp).


        Powers the SPA''s two-step register / reset flows where the OTP is

        validated in step 1 so the user gets immediate feedback, and the

        real consume happens at the final submit in step 2.


        `purpose` is constrained to the two OTP flows the SPA owns — pinning

        the literal here means a typo (`"reset"` vs `"reset_password"`) is

        caught by Pydantic, not by a silent 400 from the OTP lookup.'
    ResetPasswordRequest:
      properties:
        email:
          type: string
          title: Email
        otp:
          type: string
          maxLength: 6
          minLength: 6
          title: Otp
        password:
          type: string
          maxLength: 256
          minLength: 10
          title: Password
      type: object
      required:
      - email
      - otp
      - password
      title: ResetPasswordRequest
    RegisterVerifyRequest:
      properties:
        email:
          type: string
          title: Email
        otp:
          type: string
          maxLength: 6
          minLength: 6
          title: Otp
        password:
          type: string
          maxLength: 256
          minLength: 10
          title: Password
        referral_code:
          anyOf:
          - type: string
            maxLength: 32
          - type: 'null'
          title: Referral Code
      type: object
      required:
      - email
      - otp
      - password
      title: RegisterVerifyRequest
    MonaIDLinkVerify:
      properties:
        link_token:
          type: string
          maxLength: 500
          minLength: 20
          title: Link Token
        otp:
          type: string
          pattern: ^\d{6}$
          title: Otp
      type: object
      required:
      - link_token
      - otp
      title: MonaIDLinkVerify
    AffiliateSettingsRequest:
      properties:
        method:
          type: string
          enum:
          - credit
          - bank
          title: Method
        bank_name:
          anyOf:
          - type: string
            maxLength: 120
          - type: 'null'
          title: Bank Name
        bank_account:
          anyOf:
          - type: string
            maxLength: 80
          - type: 'null'
          title: Bank Account
        bank_holder:
          anyOf:
          - type: string
            maxLength: 160
          - type: 'null'
          title: Bank Holder
        tax_id:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Tax Id
      type: object
      required:
      - method
      title: AffiliateSettingsRequest
    AffiliatePayoutRequest:
      properties:
        method:
          anyOf:
          - type: string
            enum:
            - credit
            - bank
          - type: 'null'
          title: Method
      type: object
      title: AffiliatePayoutRequest
    EmailRequest:
      properties:
        email:
          type: string
          title: Email
      type: object
      required:
      - email
      title: EmailRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ReferralClaimRequest:
      properties:
        code:
          type: string
          maxLength: 32
          minLength: 2
          title: Code
      type: object
      required:
      - code
      title: ReferralClaimRequest
    PasswordLoginRequest:
      properties:
        email:
          type: string
          title: Email
        password:
          type: string
          maxLength: 256
          minLength: 8
          title: Password
      type: object
      required:
      - email
      - password
      title: PasswordLoginRequest
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: MONA Cloud token
      description: Use vc_session_* for account endpoints or vc_live_* for automation endpoints.
    ApiTokenHeader:
      type: apiKey
      in: header
      name: X-API-Token
      description: Alternative header for vc_live_* automation tokens.
    PaymentWebhookKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Shared secret for payment provider webhook delivery.
x-refined-from:
- monacloud-api-openapi.json
- monacloud-vn-openapi.json