---
title: "Request 2FA verification code (requestTwoFaVerificationCode)"
method: POST
path: "/api/auth/2fa/verification/send"
tags: ["two-factor-auth-controller"]
---

# Request 2FA verification code (requestTwoFaVerificationCode)

`POST /api/auth/2fa/verification/send`

Request 2FA verification code.

To make a request to this endpoint, you need an access token with the scope of PRE_VERIFICATION_TOKEN, which is issued on username/password auth if 2FA is enabled.

The API method is rate limited (using rate limit config from TwoFactorAuthSettings). Will return a Bad Request error if provider is not configured for usage, and Too Many Requests error if rate limits are exceeded.

## Query parameters

- `providerType` 'TOTP' | 'SMS' | 'EMAIL' | 'BACKUP_CODE', required

## Response `200`

OK

---

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