GET https://api.cryptohopper.com/v1/user

Returns the profile of the user who authorized the app: name, username, email, address details, whether two-factor authentication is on and whether the user is on a trial.

OAuth scope: user About scopes

name is HTML-entity encoded. Other stored profile fields, if any, are returned as extra keys. userHash is the identity-verification hash the Cryptohopper apps use for the Intercom support chat. Calling this endpoint also updates the user's last visit date.

Example request

curl "https://api.cryptohopper.com/v1/user" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.

Response

Example response (illustrative values)

{
    "data": {
        "address1": "Main Street 1",
        "address2": "",
        "city": "Amsterdam",
        "country": "",
        "country_nationality": "",
        "phone": "+31600000000",
        "postal_code": "1000 AA",
        "region": "",
        "website": "",
        "id": "123456",
        "name": "Jane Doe",
        "username": "janedoe",
        "email": "[email protected]",
        "enabled_2fa": true,
        "is_trial_user": "0",
        "userHash": "3f1c9a7e2b8d4c6f0a5e9b1d7c3f8a2e6b4d0c9f1a7e3b5d8c2f6a0e4b9d1c7f"
    }
}
FieldTypeDescription
namestring
usernamestring
emailstring
address1string
address2string
citystring
regionstring
countrystring
postal_codestring
phonestring
websitestring

Status codes: 200, 402. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.