---
title: "Creates a 2FA code associated to a 2FA contact method associated with input user"
method: POST
path: "/v1/VaultUser2FA/authenticationCode"
tags: ["VaultUser2FA"]
---

# Creates a 2FA code associated to a 2FA contact method associated with input user

`POST /v1/VaultUser2FA/authenticationCode`

## Request body

- AdaptekApiApplicationPersonVaultUser2FACodesCommandsCreatePersonVaultUser2FACodesCreatePersonVaultUser2FACodesCommand
  - `personId` integer
  - `contactValue` string, nullable
  - `vault2FAAuthTypeId` 1 | 2
  - `vaultVerificationTypeId` 1 | 2 | 3

## Response `200`

2FA code created successfully

- 0 | 1

## Other responses

- `400` — Failed to create 2FA code

---

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