Send a message
Notify sends templated one-time passcode (OTP) and verification messages over SMS and voice. You send a message by supplying your Notify configuration, a destination phone number in E.164 format, a pre-approved template, and the template variable values to substitute. How you send depends on whether you generate the passcode yourself or let AWS End User Messaging generate and validate it.
API operations
Use the following API operations to send Notify messages.
| Operation | Description | Use for |
|---|---|---|
|
Sends an SMS message from a pre-approved template; you supply the code. |
You generate the code (SMS). |
|
Places a voice call that reads a template with text-to-speech; you supply the code. |
You generate the code (voice). |
|
AWS End User Messaging generates and sends the passcode from a code configuration. |
AWS End User Messaging generates the code. |
|
Validates the passcode the recipient entered. |
AWS End User Messaging validates the code. |
Types of send
Notify provides two ways to send a verification message, which differ in who generates the one-time passcode.
| Type | How it works |
|---|---|
You generate the code |
Use the SMS and Voice v2 API (the |
AWS End User Messaging generates and validates the code |
Use the |
For full send detail and code examples, see Send OTP code.
In this section
Choose a template and send a one-time passcode over SMS or voice, whether you generate the code or AWS End User Messaging generates it. |
|
Validate the passcode the recipient entered, when AWS End User Messaging generated the code. |