# Dispatch MFA Verification Code (OTP)

`POST /api/identity/mfa/send`

### Overview
Sends a one-time passcode (OTP) to the user's selected MFA channel (e.g., registered email or SMS).

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

### Parameters & Request Body
- **`mfa_token`** *(string, required)*: Temporary session token issued by `/api/identity/token`.
- **`method_id`** *(string, required)*: Verification method chosen by user (`email_otp` or `totp`).

## Request body

Content type: `application/json`

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

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

## Responses

### 200 — OTP verification code dispatched successfully

### 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/send" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mfa_token":"string","method_id":"string"}'
```
