2.6 KiB
Account Service
Get Account
GET https://appwrite.io/v1/account
** Get currently logged in user data as JSON object. **
Delete Account
DELETE https://appwrite.io/v1/account
** Delete a currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. This is done to avoid deleted accounts being overtaken by new users with the same email address. Any user-related resources like documents or storage files should be deleted separately. **
Update Account Email
PATCH https://appwrite.io/v1/account/email
** 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 |
---|---|---|---|
string | Email Address | ||
password | string | User Password |
Update Account Name
PATCH https://appwrite.io/v1/account/name
** Update currently logged in user account name. **
Parameters
Field Name | Type | Description | Default |
---|---|---|---|
name | string | User name |
Update Account Password
PATCH https://appwrite.io/v1/account/password
** 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
GET https://appwrite.io/v1/account/prefs
** Get currently logged in user preferences key-value object. **
Update Account Prefs
PATCH https://appwrite.io/v1/account/prefs
** 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
GET https://appwrite.io/v1/account/security
** 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
GET https://appwrite.io/v1/account/sessions
** Get currently logged in user list of active sessions across different devices. **