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 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 changes found, but 3 of the 137 revisions have a changelog that could not be searched — this endpoint may have changed in one of them.