https://BASE_URL/api/sms/otp/generate
Request Type: POST
Sample Response:
| Options | Required | Description |
|---|---|---|
| api*key | yes | _string* Your API key (It can be found on your Termii dashboard). |
| pin*type | yes | Enum: "NUMERIC" "ALPHANUMERIC" |
| Type of PIN code that will be generated and sent as part of the OTP message. You can set PIN type to numeric or alphanumeric | ||
| phone_number | yes | _string* Represents the destination phone number.Phone number must be in the international format (Example: 23490126727) |
| pin*attempts | yes | _integer* Example: 3 |
| Represents the number of times the PIN can be attempted before expiration. It has a minimum of one attempt | ||
| pin*time_to_live | yes | _integer* Example: 1 |
| Represents how long the PIN is valid before expiration. The time is in minutes. The minimum time value is 0 and the maximum time value is 60 | ||
| pin*length | yes | _integer* Example: 4 |
| The length of the PIN code. It has a minimum of 4 and maximum of 8. |