Skip to content

GenerateOtpWithEmail ​

Type: schema

TypeScript Definition ​

typescript
GenerateOtpWithEmail: {{
            /** @constant */
            channel: "email";
            /** Format: email */
            email: string;
            /** @default verify-email */
            otp_action: components["schemas"]["GenerateOtpAction"];
            /** @description Optional calling code. Validated when supplied; email delivery does not use it. */
            country_code?: components["schemas"]["CountryCode"];
        };
        /** GenerateOtpWithPhone */
}

Component References ​

ReferenceResolves To
components["schemas"]["GenerateOtpAction"]GenerateOtpAction
components["schemas"]["CountryCode"]CountryCode

OpenAPI Schema ​

json
{
  "title": "GenerateOtpWithEmail",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/GenerateOtpWithEmail",
    "description": "API reference for the GenerateOtpWithEmail schema"
  },
  "required": [
    "channel",
    "email"
  ],
  "properties": {
    "channel": {
      "type": "string",
      "const": "email"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "otp_action": {
      "default": "verify-email",
      "$ref": "#/components/schemas/GenerateOtpAction"
    },
    "country_code": {
      "description": "Optional calling code. Validated when supplied; email delivery does not use it.",
      "$ref": "#/components/schemas/CountryCode"
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: