API Endpoints

Send verification code to phone number via SMS.

POST {{url}}/mfa/send-code

Headers

NameTypeDescription

Authorization*

String

Bearer token

Request Body

NameTypeDescription

recipient*

String

Phone number (ex: "+11234567890")

{
    "statusCode": 200,
    "message": "Verification code sent!",
    "data": {
        "sid": "VEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "to": "+1234567890",
        "channel": "sms",
        "status": "pending",
        "valid": false,
        "lookup": {
            "carrier": null
        },
        "amount": null,
        "payee": null,
        "sendCodeAttempts": [
            {
                "attempt_sid": "VLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                "channel": "sms",
                "time": "2022-07-07T14:17:49.467Z"
            }
        ],
        "dateCreated": "2022-07-07T14:17:49.000Z",
        "dateUpdated": "2022-07-07T14:17:49.000Z",
    }
}

Verify verification code.

POST {{url}}/mfa/verify

Headers

NameTypeDescription

Authorization*

String

Bearer token

Request Body

NameTypeDescription

recipient*

String

Phone number (ex: "+11234567890")

code*

String

Verification code

{
    "statusCode": 200,
    "message": "Verification code is correct!",
    "data": {
        "sid": "VEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "to": "+1234567890",
        "channel": "sms",
        "status": "approved",
        "valid": true,
        "amount": null,
        "payee": null,
        "dateCreated": "2022-07-07T14:23:53.000Z",
        "dateUpdated": "2022-07-07T14:24:06.000Z"
    }
}

Last updated