---
title: "Enroll a new PUSH token"
method: POST
path: "/auth/mfa/enrol"
tags: ["Auth"]
---

# Enroll a new PUSH token

`POST /auth/mfa/enrol`

## Request

- Base URL: `https://app.didattica.polito.it/api`
- URL: `https://app.didattica.polito.it/api/auth/mfa/enrol`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/polito/apis/polito-faculty-api/docs/auth/mfa/enrol/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- EnrolMfaRequest
  - `description` string, required
  - `pubkey` string, required

## Response `201`

The request has succeeded and a new resource has been created as a result.

- object
  - `data` object, required
    - `serial` string, required

## Other responses

- `400`: The server could not understand the request due to invalid syntax.
- `500`: Server error

---

[API](https://skmtc.dev/polito/apis/polito-faculty-api.md) - [All operations](https://skmtc.dev/polito/apis/polito-faculty-api/llms.txt) - [OpenAPI document](https://skmtc.dev/polito/apis/polito-faculty-api/revisions/c29c33e75373?raw)
