createNotifyCodeConfiguration
abstract suspend fun createNotifyCodeConfiguration(input: CreateNotifyCodeConfigurationRequest): CreateNotifyCodeConfigurationResponse
Creates a notify code configuration. A notify code configuration is a reusable policy that defines how one-time passcodes are generated and rendered, including the code type, length, validity period, maximum number of attempts, and channel templates.
Samples
// Create a notify code configuration
val resp = endUserMessagingClient.createNotifyCodeConfiguration {
notifyCodeConfigurationName = "SignupOtp"
codeConfigurationParameters = CodeConfigurationParameters {
codeType = CodeType.fromValue("NUMERIC")
codeLength = 6
validityPeriodMinutes = 10
maxAttempts = 3
}
channelParameters = ChannelParameters {
text = TextParameters {
inlineTemplateBody = "Your verification code is {{code}}."
}
}
}Content copied to clipboard