API Documentation
Multi-factor authentication ¶
Overview
MFA is an opt-in feature, allowing users to set it up in their account settings. Once MFA is activated, MFA will be required when making certain API requests, such as changing the password.
-
Setup MFA: To get started, make a
POSTrequest to/users/self/mfa/setup. This endpoint will return two important fields,mfa_urlandmfa_qr_code, which can be used with an authenticator application to add a new service. -
Verify MFA:
POST /users/self/mfa/verifyAfter setting up MFA, it’s not immediately enabled for the user. We require users to verify it first by providing a token. The verification step enables the MFA for the user and also marks the current access_token/refresh_token pair as MFA validated. -
Validate MFA: If a user with verified MFA needs to sign in again, the new access_token/refresh_token pair won’t be MFA validated by default. This means that every request made with the access token will result in a
401 MFA required error. In such cases, the client must callPOST /users/self/mfa/validatewith a valid MFA token generated by the authenticator application to mark the tokens as MFA validated. -
Delete MFA:
DELETE /users/self/mfaendpoint with a valid MFA token can be used to remove the multi-factor authentication from the user.
Setup MFA ¶
Setup MFAPOST/users/self/mfa/setup
Example URI
200Body
{
"code": "OK",
"data": {
"type": "user",
"username": null,
"first_name": "updated first name",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+17064135280",
"created_at": 1795716968.39704,
"id": "03f9608a-79b5-49a3-8a6c-685ae0ea0eb1",
"address_id": null,
"cover_image_url": "https://test.cloudfront.net/03f9608a-79b5-49a3-8a6c-685ae0ea0eb1/742d9710-e9c5-11f1-8b13-dff257259151.jpg",
"profile_image_url": "https://test.cloudfront.net/03f9608a-79b5-49a3-8a6c-685ae0ea0eb1/7430cb60-e9c5-11f1-8b13-dff257259151.jpg",
"updated_at": 1795716969.241438,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Agent",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": "5ae7441b-38cc-4f27-829f-9fe0f3416c9a",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": "Here is my great signature",
"daily_enabled": true,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": false,
"xpressdocs_user_id": null,
"bio": "Here is my great bio",
"current_time": "12:16 PM - Thursday Nov 26, 2026",
"push_allowed": true,
"agents": [
{
"id": "264b4716-d532-4926-92a6-80258fb33b73",
"email": "[email protected]",
"mlsid": "00920130",
"fax": "(972) 264-4703",
"full_name": "Gholi Sweet",
"first_name": "Gholi",
"last_name": "Sweet",
"middle_name": null,
"phone_number": "+19722644703",
"nar_number": "797500044",
"office_mui": "15512742",
"status": "Active",
"office_mlsid": "RCHT01X",
"work_phone": "+14693588080",
"generational_name": null,
"matrix_unique_id": "707024610",
"updated_at": 1795716968.459032,
"deleted_at": null,
"created_at": 1795716968.459032,
"mls": "NTREIS",
"license_number": null,
"designation": null,
"nrds": "01053140",
"type": "agent",
"office_id": null,
"secret_questions": [
"(972) XXX-XX03",
"jewellxxxxxxxxxxxxxal.net",
"+1XXXXXXXX80"
]
}
],
"last_seen_type": null,
"active_brand": null,
"display_name": "updated first name Doe",
"abbreviated_display_name": "updated first name",
"online_state": "Offline",
"mfa_url": "otpauth://totp/Rechat:test-user-1d1f257c-58a5-4919-8729-c2317f38ab15%40rechat.com?issuer=Rechat&secret=HH3KKZ2V66ICV7SKOPKLINFEJIP3LYYO&algorithm=SHA1&digits=6&period=30",
"mfa_qr_code": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPQAAAD0CAYAAACsLwv+AAAAAklEQVR4AewaftIAAA4bSURBVO3BQY7cWhLAQFLo+1+Z08tcPUBQle2vyQj7xVrrFS7WWq9xsdZ6jYu11mtcrLVe42Kt9RoXa63XuFhrvcbFWus1LtZar3Gx1nqNi7XWa1ystV7jYq31Ghdrrde4WGu9xg8PqfxJFU+onFRMKk9UTConFXeoTBV3qEwVk8pJxRMqU8WkMlVMKndU3KHyJ1U8cbHWeo2LtdZrXKy1XuOHD6v4JJU7VJ5Q+aaKE5WpYlI5UZkqJpWp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knFpDJVTCpTxRMqJxWTyknFHSpTxaQyVUwqJxUnKp9UcYfKVPFNF2ut17hYa73GxVrrNewXa61XuFhrvcbFWus1LtZar3Gx1nqNi7XWa1ystV7jYq31Ghdrrde4WGu9xsVa6zUu1lqvcbHWeo2LtdZrXKy1XuNirfUa/wNDA/sXOA94hAAAAABJRU5ErkJggg==",
"has_password": true
}
}Verify MFA after setup ¶
Verify MFA after setupPOST/users/self/mfa/verify
Example URI
Body
{
"token": "769845"
}200Body
{
"code": "OK",
"data": {
"type": "user",
"username": null,
"first_name": "updated first name",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+17064135280",
"created_at": 1795716968.39704,
"id": "03f9608a-79b5-49a3-8a6c-685ae0ea0eb1",
"address_id": null,
"cover_image_url": "https://test.cloudfront.net/03f9608a-79b5-49a3-8a6c-685ae0ea0eb1/742d9710-e9c5-11f1-8b13-dff257259151.jpg",
"profile_image_url": "https://test.cloudfront.net/03f9608a-79b5-49a3-8a6c-685ae0ea0eb1/7430cb60-e9c5-11f1-8b13-dff257259151.jpg",
"updated_at": 1795716969.241438,
"user_status": "Active",
"profile_image_thumbnail_url": null,
"cover_image_thumbnail_url": null,
"email_confirmed": false,
"timezone": "America/Chicago",
"user_type": "Agent",
"deleted_at": null,
"phone_confirmed": false,
"is_shadow": false,
"personal_room": "5ae7441b-38cc-4f27-829f-9fe0f3416c9a",
"brand": null,
"fake_email": null,
"features": null,
"last_seen_at": null,
"email_signature": "Here is my great signature",
"daily_enabled": true,
"email_quota": 30000,
"website": null,
"instagram": null,
"twitter": null,
"linkedin": null,
"youtube": null,
"facebook": null,
"designation": null,
"tiktok": null,
"mfa_enabled": true,
"xpressdocs_user_id": null,
"bio": "Here is my great bio",
"current_time": "12:16 PM - Thursday Nov 26, 2026",
"push_allowed": true,
"agents": [
{
"id": "264b4716-d532-4926-92a6-80258fb33b73",
"email": "[email protected]",
"mlsid": "00920130",
"fax": "(972) 264-4703",
"full_name": "Gholi Sweet",
"first_name": "Gholi",
"last_name": "Sweet",
"middle_name": null,
"phone_number": "+19722644703",
"nar_number": "797500044",
"office_mui": "15512742",
"status": "Active",
"office_mlsid": "RCHT01X",
"work_phone": "+14693588080",
"generational_name": null,
"matrix_unique_id": "707024610",
"updated_at": 1795716968.459032,
"deleted_at": null,
"created_at": 1795716968.459032,
"mls": "NTREIS",
"license_number": null,
"designation": null,
"nrds": "01053140",
"type": "agent",
"office_id": null,
"secret_questions": [
"(972) XXX-XX03",
"jewellxxxxxxxxxxxxxal.net",
"+1XXXXXXXX80"
]
}
],
"last_seen_type": null,
"active_brand": null,
"display_name": "updated first name Doe",
"abbreviated_display_name": "updated first name",
"online_state": "Offline",
"has_password": true
}
}