Multi-Factor Authentication
Request MFA token via SMS
Creates a multi-factor authentication request and sends its code to the destination by SMS. Use it when an application must verify possession of a text-capable phone number; save the returned request ID and submit the code to Verify MFA token. Use the voice-call operation when the recipient cannot receive SMS.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Management.
Learn more about API scopes.
post/api/relay/rest/mfa/sms
Request
- Base URLhttps://{Your_Space_Name}.signalwire.com
- URLhttps://{Your_Space_Name}.signalwire.com/api/relay/rest/mfa/sms
- AuthHTTP basic
Request body
Example request
{
"to": "+14043287382",
"from": "+12029167968",
"message": "Here is your code",
"token_length": 6,
"valid_for": 3600,
"max_attempts": 3
}Response
The request has succeeded.
Example response
{
"success": true,
"to": "+15554422333",
"channel": "call"
}Changes
No operation changes found yet. Some revisions have not been checked.