---
title: "POST /v3/auth/mfa/verify"
method: POST
path: "/v3/auth/mfa/verify"
tags: ["Auth", "MFA"]
---

# POST /v3/auth/mfa/verify

`POST /v3/auth/mfa/verify`

## Request

- Base URL: `https://api.healthnation.co/api`
- URL: `https://api.healthnation.co/api/v3/auth/mfa/verify`
- Auth: none declared

Verify an MFA login challenge code and issue a session

## Request body

- PostV3AuthMfaVerify: Verify an MFA login challenge code and issue a session
  - `challenge_uuid` string, required: MFA challenge UUID from sign-in
  - `method` 'sms' | 'email' | 'totp', required: MFA method used to verify
  - `code` string, required: Verification code from SMS, email, or authenticator app

## Response `201`

Verify an MFA login challenge code and issue a session

- APIV3EntitiesCurrentUserProfile: API_V3_Entities_CurrentUserProfile model
  - `model` string, required: Entity model name
  - `id` integer, required: User ID
  - `type` string, required: User account type (e.g., "client", "trainer")
  - `user_identity` APIV2EntitiesUserIdentity, required: User identity information
    - `model` string, required
    - `id` string, required
    - `full_name` string, required
    - `avatar` APIV2EntitiesMediaAttachment, required: API_V2_Entities_MediaAttachment model
      - `model` string, required
      - `id` string, required
      - `uuid` string, required
      - `type` string, required
      - `url` string, required
      - `blurhash` string
      - `average_color` string
      - `height` string
      - `width` string
      - `duration` string
      - `thumbnail` APIV2EntitiesMediaAttachment (recursive)
    - `type` string, required
    - `role` string
    - `deleted` string, required
    - `has_account` string
    - `languages` APIV2EntitiesLanguage
      - `model` string, required
      - `id` string, required
      - `name` string, required
      - `code` string, required
      - `icon` APIV2EntitiesMediaAttachment, required: API_V2_Entities_MediaAttachment model
        - `model` string, required
        - `id` string, required
        - `uuid` string, required
        - `type` string, required
        - `url` string, required
        - `blurhash` string
        - `average_color` string
        - `height` string
        - `width` string
        - `duration` string
        - `thumbnail` APIV2EntitiesMediaAttachment (recursive)
  - `details` APIV3EntitiesTrainerProfileDetails: Trainer profile details
    - `model` string, required: Entity model name
    - `role` string, required: Specialist role / title (translated)
    - `rating_overview` APIV2EntitiesRatingOverview, required: Aggregated ratings summary
      - `model` string, required
      - `ratings_count` string, required
      - `average_rating` string, required
    - `permissions` unknown[], required: List of granted permission names
      - unknown
  - `email` string: User email address
  - `phone_number` string: User phone number
  - `secondary_email` string, required: Confirmed secondary email (null when none or for specialists)
  - `newsletter` boolean, required: Whether client is subscribed to the newsletter (null for specialists)
  - `last_mobile_access_on` string, date-time, required: Last mobile app access timestamp
  - `last_web_access_on` string, date-time, required: Last web access timestamp
  - `language` APIV3EntitiesLanguage, required: User preferred language
    - `model` string, required: Entity model name
    - `id` integer, required: Language ID
    - `name` string, required: Language name
    - `code` string, required: Language code (e.g., "pl", "en")
    - `icon` APIV2EntitiesMediaAttachment, required: Language icon
      - `model` string, required
      - `id` string, required
      - `uuid` string, required
      - `type` string, required
      - `url` string, required
      - `blurhash` string
      - `average_color` string
      - `height` string
      - `width` string
      - `duration` string
      - `thumbnail` APIV2EntitiesMediaAttachment (recursive)
  - `package` APIV3EntitiesPackage, required: Package information
    - `model` string, required: Entity model name
    - `id` integer, required: Package ID
    - `name` string, required: Package name
    - `image` APIV2EntitiesMediaAttachment, required: Package image
      - `model` string, required
      - `id` string, required
      - `uuid` string, required
      - `type` string, required
      - `url` string, required
      - `blurhash` string
      - `average_color` string
      - `height` string
      - `width` string
      - `duration` string
      - `thumbnail` APIV2EntitiesMediaAttachment (recursive)
  - `security` APIV3EntitiesCurrentUserProfileSecuritySettings, required: User security settings
    - `model` string, required: Entity model name
    - `email` APIV3EntitiesCurrentUserProfileSecuritySettingsChannel, required: Email security channel
      - `model` string, required: Entity model name
      - `confirmed` boolean, required: Whether the channel value is confirmed
      - `confirmation_required` boolean, required: Whether the package requires this channel to be confirmed
      - `change_required` boolean, required: Whether the stored value is rejected by package rules
      - `status` string, required: Channel deliverability status (ok, invalid, opted_out, blocked)
      - `status_changed_at` string, date-time, required: When the channel status last changed
      - `purposes` string[], required: What the channel is used for (sign_in, communication, password_reset, mfa, security_alerts)
    - `phone_number` APIV3EntitiesCurrentUserProfileSecuritySettingsChannel, required: Phone security channel
      - `model` string, required: Entity model name
      - `confirmed` boolean, required: Whether the channel value is confirmed
      - `confirmation_required` boolean, required: Whether the package requires this channel to be confirmed
      - `change_required` boolean, required: Whether the stored value is rejected by package rules
      - `status` string, required: Channel deliverability status (ok, invalid, opted_out, blocked)
      - `status_changed_at` string, date-time, required: When the channel status last changed
      - `purposes` string[], required: What the channel is used for (sign_in, communication, password_reset, mfa, security_alerts)
    - `secondary_email` APIV3EntitiesCurrentUserProfileSecuritySettingsChannel, required: Secondary email channel, null when none is confirmed or for specialists
      - `model` string, required: Entity model name
      - `confirmed` boolean, required: Whether the channel value is confirmed
      - `confirmation_required` boolean, required: Whether the package requires this channel to be confirmed
      - `change_required` boolean, required: Whether the stored value is rejected by package rules
      - `status` string, required: Channel deliverability status (ok, invalid, opted_out, blocked)
      - `status_changed_at` string, date-time, required: When the channel status last changed
      - `purposes` string[], required: What the channel is used for (sign_in, communication, password_reset, mfa, security_alerts)
    - `communication_target` string, required: Stored communication target choice, primary when no active secondary email; the actual recipient is the channel with the communication purpose
    - `password` APIV3EntitiesCurrentUserProfileSecuritySettingsPassword, required: Password settings
      - `model` string, required: Entity model name
      - `change_blocked` boolean, required: Whether password changes are blocked
      - `changed_at` string, date-time, required: Start of the password rotation clock: the later of the last password change and when the package enabled rotation; the password expires at changed_at + policy.max_age_days. The last password change when the password does not rotate, null for an account without a password
      - `change_required` APIV3EntitiesCurrentUserProfileSecuritySettingsPasswordChangeRequired, required: Password change requirement, null when not required
        - `model` string, required: Entity model name
        - `reason` string, required: Why the change is required (import, admin_set, expired, policy_changed)
      - `policy` APIV3EntitiesPasswordPolicy, required: Password policy of the account, the platform floor when no package applies
        - `model` string, required: Entity model name
        - `min_length` integer, required: Minimum password length in characters
        - `require_uppercase` boolean, required: Whether the password needs an uppercase letter (A-Z)
        - `require_lowercase` boolean, required: Whether the password needs a lowercase letter (a-z)
        - `require_digit` boolean, required: Whether the password needs a digit (0-9)
        - `require_special` boolean, required: Whether the password needs a character other than A-Z, a-z and 0-9
        - `max_age_days` integer, required: Days after which the password must be changed, counted from security.password.changed_at; null when it does not expire
    - `terms_acceptance_required` boolean, required: Whether the account must accept the terms of service before using other endpoints
    - `skip_booking_verification` boolean, required: Whether the client is exempt from contact confirmation before booking
    - `membership` APIV3EntitiesCurrentUserProfileMembership, required: Employment verification, null when the package does not require it
      - `model` string, required: Entity model name
      - `verified` boolean, required: Whether the account has a recognized employment verification
      - `method` string, required: Recognized verification method (company_email, one_time_code, staff_number, sso, import, admin), null when not verified
      - `available_methods` string[], required: Methods the account can verify with now (company_email, one_time_code, staff_number)
    - `mfa` APIV3EntitiesCurrentUserProfileSecuritySettingsMfa, required: MFA policy, null when not applicable
      - `model` string, required: Entity model name
      - `mode` string, required: Package MFA mode (optional or required)
      - `allowed_methods` unknown[], required: MFA methods allowed by the package
        - unknown
      - `enrolled_methods` unknown[], required: Confirmed MFA methods enrolled by the user
        - unknown
      - `setup_required` boolean, required: Package requires MFA and the user has no allowed, deliverable method
    - `session` APIV3EntitiesCurrentUserProfileSecuritySettingsSession, required: Web session timeouts of the current session, null for mobile or no-platform sessions, specialists, Microsoft Entra accounts, ignored package security or no package limit
      - `model` string, required: Entity model name
      - `idle_timeout_minutes` integer, required: Web session idle timeout of the package in minutes
      - `absolute_expires_at` string, date-time, required: When the web session ends regardless of activity, null without the limit
  - `nickname` string, required: Client nickname (null for specialists)
  - `data_filled` boolean: Whether user has filled in their profile data
  - `survey_filled` boolean: Whether user has completed the survey
  - `staff_number_required` boolean: Whether the client must provide a staff number

## Other responses

- `403`: Returns MFA_METHOD_NOT_ALLOWED
- `422`: Returns INVALID_MFA_CODE or MFA_CHALLENGE_EXPIRED
- `429`: Returns TOO_MANY_MFA_ATTEMPTS

## Changes

- **2026-10-08** `eac02f7b963a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/healthnation/apis/healthnation/changes/v3/auth/mfa/verify/post.md)

---

[API](https://skmtc.dev/healthnation/apis/healthnation.md) - [All operations](https://skmtc.dev/healthnation/apis/healthnation/llms.txt) - [OpenAPI document](https://skmtc.dev/healthnation/apis/healthnation/revisions/18e768faca89?raw)
