{
  "opencollection": "1.0.0",
  "info": {
    "name": "Verification API",
    "version": "2"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Verification API",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Initiate verification",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://verify.8x8.com/api/v2/subaccounts/:subAccountId/sessions",
            "params": [
              {
                "name": "subAccountId",
                "value": "",
                "type": "path",
                "description": "You must replace *{subAccountId}* with the subaccountid that you want to use. By default this is generated once you signed up with a new account at [https://connect.8x8.com](https://connect.8x8.com)."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "This method allows you to:\n- Generate and send a message containing a one-time password\n- Place a Voice call containing a one-time password\n- Initiate Silent Mobile Authentication (SMA) verification"
        },
        {
          "info": {
            "name": "Validate verification",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://verify.8x8.com/api/v2/subaccounts/:subAccountId/sessions/:sessionId",
            "params": [
              {
                "name": "subAccountId",
                "value": "",
                "type": "path",
                "description": "You must replace *{subAccountId}* with the subaccountid that you want to use. By default this is generated once you signed up with a new account at [https://connect.8x8.com](https://connect.8x8.com)."
              },
              {
                "name": "sessionId",
                "value": "",
                "type": "path",
                "description": "SessionId generated on verification request"
              },
              {
                "name": "code",
                "value": "",
                "type": "query",
                "description": "This is the code that you are trying to validate against the initial request. Most likely, it is coming from your user input and you want to check whether it is the code that was generated by the API"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "This method allows you to check the status of a verification request or to validate a code submitted by one of your user."
        },
        {
          "info": {
            "name": "SMA coverage check",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://verify.8x8.com/api/v2/subaccounts/:subAccountId/sma/coverage",
            "params": [
              {
                "name": "subAccountId",
                "value": "",
                "type": "path",
                "description": "You must replace *{subAccountId}* with the subaccountid that you want to use. By default this is generated once you signed up with a new account at [https://connect.8x8.com](https://connect.8x8.com)."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "This method allows you to check if user's device is supported by Silent Mobile Authentication (SMA). Could be used to perform pre-check before initiating SMA verification as SMA only support devices using a mobile data connection and does not support all phone numbers."
        }
      ]
    }
  ],
  "bundled": true
}