---
title: "Account:Verify2FA"
method: POST
path: "/v2/accounts/2fa/verify"
tags: ["Account"]
deprecated: true
---

# Account:Verify2FA

`POST /v2/accounts/2fa/verify`

> **Deprecated.**

Verify the one time password (received with SMS or received from your authenticator app). If the one time password is correct you will receive a JWT token and a refresh token. The JWT token expires in one hour. You can refresh your JTW token with a call to Account:RefreshToken with the refresh token

## Request body

- AccountAccountTwoFactorAuthenticationVerifyInput — Verify the one time password (received with SMS or received from your authenticator app). If the one time password is correct you will receive a JWT token and a refresh token. The JWT token expires in one hour. You can refresh your JTW token with a call to Account:RefreshToken with the refresh token
  - `otp` string, required
  - `rememberMe` boolean
  - `deviceId` string, nullable — Used to identify a specific device

## Response `200`

OK

- AccountRefreshTokenOutput — Verify the one time password (received with SMS or received from your authenticator app). If the one time password is correct you will receive a JWT token and a refresh token. The JWT token expires in one hour. You can refresh your JTW token with a call to Account:RefreshToken with the refresh token
  - `token` string
  - `accessTokenExpiresAt` string, date-time, nullable
  - `refreshToken` string
  - `refreshTokenExpiresAt` string, date-time, nullable

## Other responses

- `400` — Bad request, see response body for more information
- `401` — Unauthorized. Supplied credentials are invalid
- `403` — Forbidden. Supplied credentials have no rights
- `404` — Resource not found
- `405` — Used HTTP method is not allowed
- `406` — Not acceptable. The supplied content type in the accept parameter in the header is not supported
- `410` — Indicates that this resource is no longer available for use
- `415` — Unsupported media. The supplied content type in the content-type parameter in the header is not supported
- `422` — Unprocessable entity, see response body for more information
- `429` — Rate limit reached.
- `500` — An internal error occurred.
- `503` — The server is currently unable to handle your request

---

[API](https://skmtc.net/pay/apis/pay-transaction-gateway-unit-api.md) · [All operations](https://skmtc.net/pay/apis/pay-transaction-gateway-unit-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pay/pay-transaction-gateway-unit-api/revisions/2bc260c7bdfc/schema)
