Chulalongkorn University 2 FA API

The 2 FA API from Chulalongkorn University — 5 operation(s) for 2 fa.

Operations 5

GET /api/auth/totp/status Get Status #
POST /api/auth/totp/enroll Post Enroll #
POST /api/auth/totp/activate Post Activate #
POST /api/auth/totp/verify Post Verify #
POST /api/auth/totp/disable Post Disable #

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/chulalongkorn:chulalongkorn-2-fa-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

chulalongkorn-2-fa-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ChulaSSO Service 2fa API
  description: Service for ChulaSSO, CopyRight © 2022-present Krerk Piromsopa,Ph.D.
  version: '2.0'
tags:
- name: 2 FA
paths:
  /api/auth/totp/status:
    get:
      tags:
      - 2 FA
      summary: Get Status
      operationId: get_status_api_auth_totp_status_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusResponse'
  /api/auth/totp/enroll:
    post:
      tags:
      - 2 FA
      summary: Post Enroll
      operationId: post_enroll_api_auth_totp_enroll_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnrollResponse'
  /api/auth/totp/activate:
    post:
      tags:
      - 2 FA
      summary: Post Activate
      operationId: post_activate_api_auth_totp_activate_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActivateInput'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/auth/totp/verify:
    post:
      tags:
      - 2 FA
      summary: Post Verify
      operationId: post_verify_api_auth_totp_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyInput'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/auth/totp/disable:
    post:
      tags:
      - 2 FA
      summary: Post Disable
      operationId: post_disable_api_auth_totp_disable_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CodeInput'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CodeInput:
      properties:
        code:
          type: string
          title: Code
      type: object
      required:
      - code
      title: CodeInput
    VerifyInput:
      properties:
        challenge_token:
          type: string
          title: Challenge Token
        code:
          type: string
          title: Code
      type: object
      required:
      - challenge_token
      - code
      title: VerifyInput
    EnrollResponse:
      properties:
        totp_id:
          type: string
          title: Totp Id
        otpauth_uri:
          type: string
          title: Otpauth Uri
        secret:
          type: string
          title: Secret
        qr_png_b64:
          type: string
          title: Qr Png B64
      type: object
      required:
      - totp_id
      - otpauth_uri
      - secret
      - qr_png_b64
      title: EnrollResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    StatusResponse:
      properties:
        enrolled:
          type: boolean
          title: Enrolled
        backup_codes_remaining:
          type: integer
          title: Backup Codes Remaining
      type: object
      required:
      - enrolled
      - backup_codes_remaining
      title: StatusResponse
    ActivateInput:
      properties:
        totp_id:
          type: string
          title: Totp Id
        code:
          type: string
          title: Code
      type: object
      required:
      - totp_id
      - code
      title: ActivateInput
    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
x-provenance:
  method: harvested
  publisher: Chulalongkorn University
  source: https://account.it.chula.ac.th/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)