# Verify MFA Passcode & Complete Login

`POST /api/identity/mfa/verify`

### Overview
Validates the user-submitted OTP code against the active MFA session. Returns full access and refresh tokens upon success.

### Authentication & Headers
- **Auth**: Public (Scoped to MFA challenge session token)
- **Required Header**: `API-Version: 1`

### Parameters & Request Body
- **`mfa_token`** *(string, required)*: The challenge session token.
- **`otp_code`** *(string, required)*: The 6-digit verification code received by user.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `X-Device-ID` | header | string | no | Unique client hardware or browser fingerprint UUID for device binding and audit security. |

## Request body

Content type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `mfa_token` | string | yes |  |
| `code` | string | yes |  |

```json
{
  "mfa_token": "string",
  "code": "string"
}
```

## Responses

### 200 — MFA verified, tokens issued

### 400 — Invalid or expired OTP code

### 422 — Validation Error

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `detail` | object[] | no |  |
| `detail[].loc` | string | integer[] | yes |  |
| `detail[].msg` | string | yes |  |
| `detail[].type` | string | yes |  |
| `detail[].input` | object | no |  |
| `detail[].ctx` | object | no |  |

```json
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

## Example

```bash
curl -X POST "$PINTER_URL/api/identity/mfa/verify" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mfa_token":"string","code":"string"}'
```
