2019-05-09 18:54:39 +12:00
# Account Service
## Get Account
```http request
2019-10-04 18:14:22 +13:00
GET https://https://appwrite.io/v1/account
2019-05-09 18:54:39 +12:00
```
** Get currently logged in user data as JSON object. **
## Delete Account
```http request
2019-10-04 18:14:22 +13:00
DELETE https://https://appwrite.io/v1/account
2019-05-09 18:54:39 +12:00
```
** Delete currently logged in user account. **
## Update Account Email
```http request
2019-10-04 18:14:22 +13:00
PATCH https://https://appwrite.io/v1/account/email
2019-05-09 18:54:39 +12:00
```
** Update currently logged in user account email address. After changing user address, user confirmation status is being reset and a new confirmation mail is sent. For security measures, user password is required to complete this request. **
### Parameters
| Field Name | Type | Description | Default |
| --- | --- | --- | --- |
| email | string | Email Address | |
| password | string | User Password | |
## Update Account Name
```http request
2019-10-04 18:14:22 +13:00
PATCH https://https://appwrite.io/v1/account/name
2019-05-09 18:54:39 +12:00
```
** Update currently logged in user account name. **
### Parameters
| Field Name | Type | Description | Default |
| --- | --- | --- | --- |
| name | string | User name | |
## Update Account Password
```http request
2019-10-04 18:14:22 +13:00
PATCH https://https://appwrite.io/v1/account/password
2019-05-09 18:54:39 +12:00
```
** Update currently logged in user password. For validation, user is required to pass the password twice. **
### Parameters
| Field Name | Type | Description | Default |
| --- | --- | --- | --- |
| password | string | New password | |
| old-password | string | Old password | |
## Get Account Preferences
```http request
2019-10-04 18:14:22 +13:00
GET https://https://appwrite.io/v1/account/prefs
2019-05-09 18:54:39 +12:00
```
** Get currently logged in user preferences key-value object. **
## Update Account Prefs
```http request
2019-10-04 18:14:22 +13:00
PATCH https://https://appwrite.io/v1/account/prefs
2019-05-09 18:54:39 +12:00
```
** Update currently logged in user account preferences. You can pass only the specific settings you wish to update. **
### Parameters
| Field Name | Type | Description | Default |
| --- | --- | --- | --- |
| prefs | string | Prefs key-value JSON object string. | |
## Get Account Security Log
```http request
2019-10-04 18:14:22 +13:00
GET https://https://appwrite.io/v1/account/security
2019-05-09 18:54:39 +12:00
```
** Get currently logged in user list of latest security activity logs. Each log returns user IP address, location and date and time of log. **
## Get Account Active Sessions
```http request
2019-10-04 18:14:22 +13:00
GET https://https://appwrite.io/v1/account/sessions
2019-05-09 18:54:39 +12:00
```
** Get currently logged in user list of active sessions across different devices. **