Skip to content

Users

This endpoint returns a list of all the users in the requesting lender.

GET https://sandbox.reggora.io/lender/users

ParameterDefaultDescription
ordering-createdThe field on which the returned users are sorted.
searchNoneA string used to filter down the returned users.
emailNoneAn optional parameter that will do a case insensitive match on email.
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.get('https://sandbox.reggora.io/lender/users?offset=<offset>&limit=<limit>', headers=headers)
{
"data": {
"users": [
{
"id": "5c33c6b1681f110034effc72",
"email": "fake@email.com",
"phone_number": "1231231234",
"cell_number": "1231231235",
"firstname": "John",
"lastname": "Doe",
"created": "2019-01-09T12:00:00.000Z",
"nmls_id": "12345",
"matched_users": [
{
"id": "5c33c6b1681f110034effc72",
"email": "more_fake@email.com",
"firstname": "Jane",
"lastname": "Doe"
},
"..."
],
"role": "Admin"
},
"..."
]
},
"status": 200
}

The "..." placeholder indicates additional entries elided for brevity.

This endpoint returns a list of all user roles available to the requesting lender.

GET https://sandbox.reggora.io/lender/users/roles

import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.get('https://sandbox.reggora.io/lender/users/roles', headers=headers)
{
"data": [
{
"name": "Admin",
"id": "5e4dad9e13a19201a460a22a"
},
{
"name": "Loan Officer",
"id": "5e4dad9e13a19201a460a22b"
},
{
"name": "Unmatched Processor",
"id": "5e4dad9e13a19201a460a22c"
},
{
"name": "Matched Processor",
"id": "5e4dad9e13a19201a460a22d"
},
{
"name": "Access All Processor",
"id": "5e4dad9e13a19201a460a22e"
}
]
}

This endpoint takes a user ID as a URL parameter and returns a user object.

GET https://sandbox.reggora.io/lender/users/<user_id>

ParameterDescription
user_idThe ID of the User.
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.get('https://sandbox.reggora.io/lender/users/<user_id>', headers=headers)
{
"data": {
"user": {
"id": "5c33c6b1681f110034effc72",
"email": "fake@email.com",
"phone_number": "1231231234",
"cell_number": "1231231235",
"firstname": "John",
"lastname": "Doe",
"nmls_id": "12345",
"created": "2019-01-09T12:00:00.000Z",
"role": "Admin",
"matched_users": [
{
"id": "5c33c6b1681f110034effc72",
"email": "more_fake@email.com",
"firstname": "Jane",
"lastname": "Doe"
},
"..."
]
}
},
"status": 200
}

The nmls_id field is present if applicable to the user.

This endpoint invites a user to the reggora platform. Once the invitation has been sent the user is added to your lender’s list of users but only as a deactivated user. The invitee must accept the invitation in the email to become a full-fledged user.

POST https://sandbox.reggora.io/lender/users/invite

ParameterDescriptionRequired
emailEmail of the user you are invitingTrue
roleName of the role you want the invited user to haveTrue
firstnameFirst name of the user you are invitingTrue
lastnameLast name of the user you are invitingTrue
phone_numberPhone number of the user you are invitingTrue
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
body = {
'email': 'fake@reggora.com',
'firstname': 'Fake',
'lastname': 'Person',
'phone_number': '1231231234',
'role': 'Admin'
}
response = requests.post('https://sandbox.reggora.io/lender/users/invite', json=body, headers=headers)
{
"data": "Your invite has been sent",
"status": 200
}

This endpoint creates a user to the reggora platform. This functionality is useful if you would like to create a user without notifying the user’s owner at the time of creation.

POST https://sandbox.reggora.io/lender/users

ParameterDescriptionRequired
emailEmail of the user you are invitingTrue
roleName of the role you want the invited user to haveTrue
firstnameFirst name of the user you are invitingTrue
lastnameLast name of the user you are invitingTrue
phone_numberPhone number of the user you are invitingTrue
branch_identifierThe unique identifer of the branch this user belongs toFalse
nmls_idThe identifer of this user in the Nationwide Mortgage Licensing System and RegistryFalse
los_usernameThe unique identifer this user in their loan origination systemFalse
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
body = {
'email': 'fake@reggora.com',
'firstname': 'Fake',
'lastname': 'Person',
'phone_number': '1231231234',
'role': 'Admin',
'branch_id': '5afafe407a3050000a7a57a3'
}
response = requests.post('https://sandbox.reggora.io/lender/users', json=body, headers=headers)
{
"data": "5c33c6b1681f110034effc72",
"status": 200
}

This endpoint updates a user’s information. No fields are required and only the supplied fields will be updated on the user.

PUT https://sandbox.reggora.io/lender/users/<user_id>

ParameterDescription
user_idThe ID of the User.
ParameterDescriptionRequired
emailEmail of the userFalse
roleName of the role you want the invited user to haveFalse
firstnameFirst name of the userFalse
lastnameLast name of the userFalse
branch_idBranch ID to add user toFalse
nmls_idIf applicable, the NLMS id of the userFalse
matched_usersA list of user IDs that you want matched with this userFalse
phone_numberPhone number of the userFalse
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
body = {
'email': 'fake_person@reggora.com',
'firstname': 'Fake',
'lastname': 'Person',
'phone_number': '1231231235',
'branch_id': '5afafe407a3050000a7a57a3',
'role': 'Loan Officer',
'nmls_id': '12345',
'matched_users': [
'5c33c6b1681f110034effc72',
'5c33c6b1681f110034effc72',
'5c33c6b1681f110034effc72'
]
}
response = requests.put('https://sandbox.reggora.io/lender/users/<user_id>', json=body, headers=headers)
{
"data": "5c33c6b1681f110034effc72",
"status": 200
}

This endpoint removes a user from a lender.

ParameterDescription
user_idThe ID of the User.

DELETE https://sandbox.reggora.io/lender/users/<user_id>

import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
response = requests.delete('https://sandbox.reggora.io/lender/users/<user_id>', headers=headers)
{
"data": "Your user has been deleted",
"status": 200
}