Skip to main content
GET
/
user
Read user
curl --request GET \
  --url https://int-data.moneydesktop.com/user \
  --header 'MD-SESSION-TOKEN: <api-key>'
{
  "user": {
    "accepted_terms_and_conditions_at": "2020-08-31T16:12:36+00:00",
    "birthday": "2011-03-28",
    "credit_score": 0,
    "email": "fake.email@mxexample.com",
    "email_is_verified": false,
    "external_guid": "U-201709221210",
    "failed_token_login_attempts_count": 0,
    "first_name": "John",
    "gender": 0,
    "guid": "USR-11141024-90b3-1bce-cac9-c06ced52ab4c",
    "has_accepted_terms_and_conditions": true,
    "has_updated_terms_and_conditions": false,
    "is_disabled": false,
    "is_restricted": false,
    "last_name": "Doe",
    "logged_in_at": "2022-07-08T16:28:13+00:00",
    "metadata": null,
    "phone": null,
    "phone_is_verified": false,
    "postal_code": "",
    "revision": 187
  }
}
This endpoint returns information regarding the authenticated user.

Authorizations

MD-SESSION-TOKEN
string
header
required

MX Session Token

  • Request an API token using the read API token endpoint in the MX SSO API.
  • Exchange an API token for a session token.
    • A session token is obtained by sending a POST request to /sessions
    • The session token will be used in each request made for the user. It should be passed in an MD-SESSION-TOKEN HTTP header as shown below.
    • This session token is valid for 30 minutes from the time it was created. The 30 minute expiration counter is refreshed with each call.
    • If you send a request with an expired session token you'll receive an error code of 4011.
curl -i https://int-data.moneydesktop.com/accounts \
-H 'MD-SESSION-TOKEN: CWforZl1Vn2vC_v6H4rnQRT1DoWpDouJAV-_5TBmiQRAtA8rsOG_BoajTiOSsL0A3bd-bmHXlA-eQzc9ywItKg' \
-H 'Content-Type: application/vnd.mx.nexus.v1+json' \
-H 'Accept: application/vnd.mx.nexus.v1+json'

In documentation code examples, replace <API_KEY_VALUE> with the session token.

Response

200 - application/vnd.mx.api.v1+json

OK

user
object