# Get user profile

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

Part of [Users](https://www.cryptohopper.com/api-documentation/api-reference/users.md) in the Cryptohopper API reference.

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`

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.

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Example request

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

## Response

Example response (illustrative values):

```json
{
    "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": "user@example.com",
        "enabled_2fa": true,
        "is_trial_user": "0",
        "userHash": "3f1c9a7e2b8d4c6f0a5e9b1d7c3f8a2e6b4d0c9f1a7e3b5d8c2f6a0e4b9d1c7f"
    }
}
```

| Field | Type | Description |
|---|---|---|
| `name` | string |  |
| `username` | string |  |
| `email` | string |  |
| `address1` | string |  |
| `address2` | string |  |
| `city` | string |  |
| `region` | string |  |
| `country` | string |  |
| `postal_code` | string |  |
| `phone` | string |  |
| `website` | string |  |

Status codes: 200, 402. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
