Credentials
Userkey
A userkey is a constant, unique authentication key which you assign to the member through the MDX Real Time API to authenticate the user. MX recommends using a persistent value for the userkey, which can be any valid UTF-8 string that doesn’t contain human-readable content. A userkey can only ever be set or updated by you, not the user.Login and Password
Login and password match a user’s online banking login and password. They can be provided by the user or assigned to the member through the MDX Real Time API during the user setup process. The login and password should become invalid if a user changes their online banking credentials. When this occurs, account synchronization will be suspended until the values are updated by the user or by you through the MDX Real Time API.Session Key
If the credentials are successfully authenticated, a session key is returned. The session key is a unique string used to identify an authenticated session, and is passed in a header with all future requests from MX within that session. The key should be valid for a minimum of 15 minutes or until a full account synchronization has been completed. To generate and manage session keys without having to store them in your system, follow these steps:- After validating the userkey, create a string or key:value array containing the userkey (or an alternate value if needed) and a timestamp.
- Encrypt the string with an alphanumeric or Base64-encoded value and send it to MX as the session key.
- Upon receiving the session key in subsequent requests, decrypt it and validate that the timestamp is recent (such as within 15 minutes) to ensure it will expire.
- Extract the userkey (or alternate identifier) from the decrypted key and use it to retrieve the account data.

