Request a MFA token via text message
POST/mfa/sms
Request a MFA token via text message.
Permissions
The API token must include one of the following scopes: Voice or Messaging or Fax.
Request
- application/json
Body
required
The E164 number to use as the destination.
+14043287382
The E164 number from your account to use as the origin of the message. SignalWire will use a special verified number if not specified. If using a different caller ID, make sure it is a number you have purchased or have verified on your SignalWire account and ensure it is registered on the Campaign Registry for the best deliverability.
+12029167968
Specify a custom message to send before the token. The message must fit within one segment; either 160 characters or 70 characters when using non-GSM symbols. When using a custom message
, you must use your own purchased or verified number as the from
. Defaults to "Your Personal Authorization Code is:"
Here is your code
The number of characters in the token, from 4 to 20. Defaults to 6.
6
The number of allowed verification attempts, including the first one, from 1 to 20. Defaults to 3.
3
Set to true
or false
, whether to include letters or just numbers in the token. Defaults to false
(numbers only).
false
The number of seconds the token is considered valid for. Defaults to 3600, with a maximum of 604800.
3600
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
The MFA request ID. Save this for verification.
Whether the request was successfully queued.
true
The destination of the MFA request.
+15554422333
Can be sms
for a text message or call
for a phone call.
call
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"success": true,
"to": "+15554422333",
"channel": "call"
}