M F A

Requesting Verifications

POST
/mfa/v1/destinations/verification

Send an SMS with a verification passcode of six digits to your user’s phone number, so as to verify your user identity, and that the given phone number is valid.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT access token returned by Signing In (POST /auth/v1/tokens/).

In: header

Request Body

application/json

number*string

string to specify the phone number that you want to verify. To submit a valid phone number, you must type a complete phone number with the country and network prefixes.

sender?string

string that defines the sender name of the verification passcode SMS. The default value of this parameter is “Cequens”.

Default"Cequens"
codeLength?string

integer that defines the length of the passCode between 4 and 6, . The default value of this parameter is 6.

Default"6"
codeExp?string

integer that defines the time duration in minutes after which the verification passcode will expire. The default value of this parameter is 3. The range values between 1 to 10 minutes.

Default"3"
language?string

string that define the language of the sent SMS , the provided languages are English "en" and Arabic "ar" and the default value is English "en"

Default"en"

Response Body

application/json

application/json

curl -X POST "https://example.com/mfa/v1/destinations/verification" \  -H "Content-Type: application/json" \  -d '{    "number": "string"  }'
"{\n  \"replyCode\": 0,\n  \"replyMessage\": \"[Request handled successfully] Passcode sent successfully.\",\n  \"requestId\": \"8420b820-bfff-11e4-9d9a-dfdc18052754\",\n  \"clientRequestId\": 0,\n  \"requestTime\": \"2016-01-23T05:15:00.374Z\",\n  \"data\":\n  {\n    \"checkCode\": \"f23869c0aac711e89250617d6c45aa6c1f507207726cd2f1fe3d2bdd822e43d7\"\n  }\n}"