# Generate & Send OTP with Challenge Nonce (v2)
URL: /docs/api-reference/zero-knowledge-verification-v2/sendOtpV2

## POST `/api/v2/public/otp/send`

**Summary:** Generate & Send OTP with Challenge Nonce (v2)
**Operation ID:** `sendOtpV2`

Generates a cryptographically random verification code, reserves credits, and issues a 128-bit cryptographic challenge nonce alongside the dispatched SMS or WhatsApp. The nonce is used by client applications to compute a zero-knowledge challenge-response proof, ensuring cleartext codes are never transmitted over HTTP.

**Authentication:** `X-Api-Key: sk_live_...` or `Authorization: Bearer sk_live_...`

### Request Body (`application/json`)

```json
{
  "type": "object",
  "required": [
    "phoneNumber"
  ],
  "properties": {
    "phoneNumber": {
      "type": "string",
      "example": "+233241234567"
    },
    "senderId": {
      "type": "string",
      "maxLength": 11,
      "example": "VERIFY"
    },
    "digits": {
      "type": "integer",
      "enum": [
        4,
        6,
        8
      ],
      "default": 6,
      "example": 6
    },
    "expirySeconds": {
      "type": "integer",
      "default": 300,
      "example": 300
    },
    "template": {
      "type": "string",
      "example": "Your verification code is {code}. Valid for {expiryMinutes} minutes."
    },
    "strategy": {
      "type": "string",
      "enum": [
        "AUTO",
        "SMS_ONLY",
        "WHATSAPP_FIRST"
      ],
      "default": "AUTO"
    }
  }
}
```

### Responses

- **`200`**: OTP verification dispatched with challenge nonce

```json
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "example": "success"
    },
    "message": {
      "type": "string",
      "example": "Verification code dispatched successfully"
    },
    "data": {
      "$ref": "#/components/schemas/OtpSendResponse"
    }
  }
}
```
- **`401`**: Authentication failed or API key missing
- **`429`**: Rate limit exceeded for the API key