Connect

Verify an SMS Connection

POST
/v1/users/{userId}/connect/sms/verify

Complete an SMS connection using the passcode sent to the user's device. Identification against the identity attributes sent to POST /v1/users/connect/sms happens on this call, so identification failures are reported here rather than at connect.

Authorization

AuthorizationBearer <token>

Send your Spinwheel secret key as a bearer token: Authorization: Bearer <secretKey>. Keys are environment-specific.

In: header

Path Parameters

userId*string

Request Body

application/json

code*string

The 6 digit code that was sent to the user's device

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/users/string/connect/sms/verify" \  -H "Content-Type: application/json" \  -d '{    "code": "123456"  }'
{  "status": {    "code": 200,    "desc": "success"  },  "data": {    "userId": "52183390-b209-46bd-955b-d6d9d301a84f",    "extUserId": "689663dc-077d-4d8c-ac75-5a7c2c305c30",    "connectionId": "417f7fa8-81d9-4142-827e-9e9abfeb02df",    "connectionStatus": "SUCCESS",    "profile": {      "firstName": "Maria",      "lastName": "Iglesias",      "ssnLastFourDigits": "4123",      "phoneNumber": "+14038504698",      "dateOfBirth": "1958-12-28",      "addresses": [        {          "addressLine1": "21 Pacific St",          "city": "Pittsfield",          "state": "MA",          "zip": "01201"        }      ]    },    "networkToken": "b26e936c-3a1b-417c-a879-43be436d4ead"  }}