Direct API

Direct API calls must originate from your server

A token from /direct/login is required for all other Direct API end-points. It is a bearer authorization token.

Once you have a preauth token, returned from /direct/user-reg or /direct/preauth-token, pass it to the Web UI entry point in the embedded iFrame.

Be sure to save the ID returned from /direct/user-reg or you won’t be able to reauthorize the user when they return.

**The preauth token is only valid for 30 seconds

Endpoints

Customer Login
/direct/login
Register New User
New User Token
Change Email
Change Phone
Close Account
Update Refresh
/direct/user-reg
/direct/preauth-token
/direct/change-email
/direct/change-phone
/direct/close-account
/direct/update-refresh [PREMIUM FEATURE]

Collection of end-points that should be called from your server.

  1. CUSTOMER LOGIN (POST)
  2. /direct/login

    Using your credentials in the request body ("apikey" and "secret"), the response will contain the token and refresh token.
    These tokens are required for completing the other requests to Direct API endpoints.

    This token will be valid for approximately one hour. After the one hour, the refresh token will become valid.

    If the token expires, use /direct/refresh-token?token={refresh} to get a new token


  3. CUSTOMER REFRESH TOKEN (GET)
  4. /direct/refresh-token

    Token and refresh tokes are required for completing the other requests to Direct API endpoints.

    The token will be valid for approximately one hour. After the one hour, the refresh token will become valid.

    When the token expires, use /direct/refresh-token?token={refresh} to get a new token


  5. REGISTER NEW USER (POST)
  6. /direct/user-reg

    Creates a new user with unique userId and preauth token.

    When a user logs back in, use /direct/preauth-token/{userId} to generate that user a new preauth token and a new userId (refer to Returning User)

    Don't store the token across sessions. Use the userId from the previous session to generate a new userId and a new preauth token.


  7. NEW USER TOKEN (GET)
  8. /direct/preauth-token/{userId}


  9. CLOSE USER ACCOUNT (POST)
  10. /direct/close-account/{userId}


  11. CHANGE USER EMAIL (POST)
  12. /direct/change-email/{userId}


  13. CHANGE USER PHONE (POST)
  14. /direct/change-mobile/{userId}


  15. CHANGE USER HOST (POST)
  16. /direct/change-host/{userId}


  17. UPDATE USER REFRESH DATA (POST)
  18. /direct/update-refresh/{userId}

    *Premium Feature - May Require Additional Access


  19. GET ALERT DETAIL (GET)
  20. /direct/efx-alert/{alertId}

    *Premium Feature - May Require Additional Access


changeEmail

Security
Request
path Parameters
id
required
string <uuid>
Request Body schema: application/json
required
email
required
string
Responses
204

No Content

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

post/direct/change-email/{id}
Request samples
application/json
{
  • "email": "string"
}

changeHost

Security
Request
path Parameters
id
required
string <uuid>
query Parameters
host
required
string
Responses
204

No Content

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

post/direct/change-host/{id}
Request samples

changeMobile

Security
Request
path Parameters
id
required
string <uuid>
Request Body schema: application/json
required
mobile
string = 10 characters
Responses
204

No Content

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

post/direct/change-mobile/{id}
Request samples
application/json
{
  • "mobile": "stringstri"
}

closeAccount

Security
Request
path Parameters
id
required
string <uuid>
Responses
204

No Content

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

post/direct/close-account/{id}
Request samples

efxAlert

Security
Request
path Parameters
id
required
string <uuid>
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

get/direct/efx-alert/{id}
Request samples

efxConfig

Security
Request
path Parameters
id
required
string <uuid>
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

get/direct/efx-config/{id}
Request samples

efxLatestEFXScoreDeprecated

Security
Request
path Parameters
id
required
string <uuid>
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

get/direct/efx-latest-efx-score/{id}
Request samples

efxLatestReport_1

Security
Request
path Parameters
id
required
string <uuid>
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

get/direct/efx-latest-report/{id}
Request samples

efxLatestReportSummary_1

Security
Request
path Parameters
id
required
string <uuid>
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

get/direct/efx-latest-report/{id}/summary
Request samples

efxLatestScores

Security
Request
path Parameters
id
required
string <uuid>
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

get/direct/efx-latest-scores/{id}
Request samples

efxScoreHistory

Security
Request
path Parameters
id
required
string <uuid>
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

get/direct/efx-score-history/{id}
Request samples

efxScoresDeprecated

Security
Request
path Parameters
id
required
string <uuid>
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

get/direct/efx-scores/{id}
Request samples

getEfxAlerts_1

Security
Request
path Parameters
id
required
string <uuid>
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

get/direct/efx-alerts/{id}
Request samples

getUser_1

Security
Request
path Parameters
id
required
string <uuid>
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

get/direct/user/{id}
Request samples

login

Request
Request Body schema: application/json
required
apikey
required
string
secret
required
string
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

post/direct/login
Request samples
application/json
{
  • "apikey": "string",
  • "secret": "string"
}

preauthToken_1

Security
Request
path Parameters
id
required
string <uuid>
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

get/direct/preauth-token/{id}
Request samples

refreshToken

Request
query Parameters
token
string
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

get/direct/refresh-token
Request samples

register

Security
Request
Request Body schema: application/json
required
email
required
string
mobile
string = 10 characters
fname
required
string
lname
required
string
smsMsg
boolean
emailMsg
boolean
pushMsg
boolean
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

post/direct/user-reg
Request samples
application/json
{
  • "email": "string",
  • "mobile": "stringstri",
  • "fname": "string",
  • "lname": "string",
  • "smsMsg": true,
  • "emailMsg": true,
  • "pushMsg": true
}

registerOldDeprecated

Security
Request
Request Body schema: application/json
required
email
required
string
mobile
string = 10 characters
fname
required
string
lname
required
string
smsMsg
boolean
emailMsg
boolean
pushMsg
boolean
Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Deprecated Method - use /user-reg

post/direct/register
Request samples
application/json
{
  • "email": "string",
  • "mobile": "stringstri",
  • "fname": "string",
  • "lname": "string",
  • "smsMsg": true,
  • "emailMsg": true,
  • "pushMsg": true
}

updateRefresh

Security
Request
path Parameters
id
required
string <uuid>
query Parameters
rmonly
required
boolean
Responses
204

No Content

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Service Unavailable

post/direct/update-refresh/{id}
Request samples

userTokenOldDeprecated

Security
Request
path Parameters
id
required
string <uuid>

UserId to generate preauth token for

Responses
200

OK

400

Bad Request

401

Unauthorized

409

Conflict

500

Internal Server Error

503

Deprecated Method - use /preauth-token/{id}

get/direct/user-token/{id}
Request samples