---
title: "Create MFA ticket"
method: PUT
path: "/auth/mfa/ticket"
tags: ["MFA"]
---

# Create MFA ticket

`PUT /auth/mfa/ticket`

Create a new MFA ticket or validate an existing one.

## Request body

- union — MFA response
  - object
    - `password` string, required
  - object
    - `recovery_code` string, required
  - object
    - `totp_code` string, required

## Response `200`

- MFATicket
  - `_id` string, required — Unique Id
  - `account_id` string, required — Account Id
  - `token` string, required — Unique Token
  - `validated` boolean, required — Whether this ticket has been validated (can be used for account actions)
  - `authorised` boolean, required — Whether this ticket is authorised (can be used to log a user in)
  - `last_totp_code` string, nullable — TOTP code at time of ticket creation

## Other responses

- `default` — An error occurred.

## Changes

> 6 revisions in range; 3 could not be searched.

- **2026-07-26** `7a23c8b93766` — 1 breaking
  - added `subschema #65, subschema #66, subschema #67, subschema #81, subschema #82, subschema #83, subschema #84, subschema #85, subschema #86, subschema #87, subschema #88, subschema #89, subschema #90, subschema #91, subschema #92, subschema #93, subschema #94, subschema #95` to the response body `oneOf` list for the response status `default`

[Change history](https://skmtc.dev/revolt/apis/revolt-api/changes/auth/mfa/ticket/put.md)

---

[API](https://skmtc.dev/revolt/apis/revolt-api.md) · [All operations](https://skmtc.dev/revolt/apis/revolt-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/revolt/revolt-api/revisions/a09d9d97fec9/schema)
