---
title: "POST /twofactorpasscode/generatecodefordevice"
method: POST
path: "/twofactorpasscode/generatecodefordevice"
tags: ["two-factor-pass-code-controller"]
---

# POST /twofactorpasscode/generatecodefordevice

`POST /twofactorpasscode/generatecodefordevice`

## Request body

- TwoFactorAccessCodeRequest
  - `username` string
  - `requestType` string
  - `preferenceType` 'ALTERNATE_1' | 'ALTERNATE_2' | 'EMAIL' | 'HOME' | 'BUSINESS'
  - `registrationKey` string

## Response `200`

OK

- SuccessResponseView
  - `success` boolean

---

[API](https://skmtc.net/tsys/apis/quark.md) · [All operations](https://skmtc.net/tsys/apis/quark/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tsys/quark/revisions/f2162281b469/schema)
