---
title: "Post Enroll"
method: POST
path: "/api/auth/totp/enroll"
tags: ["2fa"]
---

# Post Enroll

`POST /api/auth/totp/enroll`

## Request

- Base URL: `https://account.it.chula.ac.th` (the document declares no server; this is the origin it was published from)
- URL: `https://account.it.chula.ac.th/api/auth/totp/enroll`
- Auth: none declared
- TypeScript: <https://skmtc.dev/chula/apis/chulasso-service/docs/api/auth/totp/enroll/post.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

Successful Response

- EnrollResponse
  - `totp_id` string, required
  - `otpauth_uri` string, required
  - `secret` string, required
  - `qr_png_b64` string, required

---

[API](https://skmtc.dev/chula/apis/chulasso-service.md) - [All operations](https://skmtc.dev/chula/apis/chulasso-service/llms.txt) - [OpenAPI document](https://skmtc.dev/chula/apis/chulasso-service/revisions/54e1f2ec6532?raw)
