# Settings

# Verify

# Resource URL

https://humtog.com/api/email/verify/resend

# Resource Method

POST

# Example Response

{
    "message": "Verification email re-sent."
}

# Delete

# Resource URL

https://humtog.com/api/users

# Resource Method

DELETE

# Params

Name Required Type Description
password Yes string Current password for verification

# Example Response

{
    "message": "Account deleted successfully."
}

# Get Client Settings

# Resource URL

https://humtog.com/api/users/clientside-settings

# Resource Method

GET

# Params

Name Required Type Description
platform Yes string Web, Desktop, Android or iOS

# Example Response

{
    "font": "Lato",
    "feed": {
        "include_nsfw_submissions": false,
        "excludeLikedSubmissions": false,
        "excludeBookmarkedSubmissions": false,
        "submissionsFilter": "all",
        "submissionsType": "All"
    },
    "rightSidebar": {
        "channelsFilter": "subscribed",
        "channelsLimit": 15,
        "showChannelAvatars": true,
        "color": "Gray"
    }
}

# Set Client Settings

# Resource URL

https://humtog.com/api/users/clientside-settings

# Resource Method

POST

# Params

Name Required Type Description
platform Yes string Web, Desktop, Android or iOS
json Yes json Require json, one you get from GET request

# Example Response

{
    "message": "Settings saved successfully."
}

# Edit Profile

# Resource URL

https://humtog.com/api/users/profile

# Resource Method

PATCH

# Params

Name Required Type Description
cover_color Yes string Possible fields are: Dark Blue,Blue,Red,Dark,Pink,Dark Green,Bright Green,Purple,Gray,Orange
location No string Location Name
name No string User Full Name
bio No string User bio, max 400 chanracters
website No url Website full url
twitter NO string Twitter username

# Example Response

{
    "message": "Your settings has been updated"
}

# Edit Account

# Resource URL

https://humtog.com/api/users/account

# Resource Method

PATCH

# Params

Name Required Type Description
notify_submissions_replied Yes boolean Get email notification on submission replays
notify_comments_replied Yes boolean Get email notification on comment replays
notify_mentions Yes boolean Get email notification on mentions

# Example Response

{
    "message": "Your notifications settings has been updated"
}

# Edit Email

# Resource URL

https://humtog.com/api/users/email

# Resource Method

PATCH

# Params

Name Required Type Description
password Yes string Confirm password
email Yes email New email

# Example Response

{
    "message": "Email has been successfully updated"
}

# Edit Password

# Resource URL

https://humtog.com/api/users/password

# Resource Method

PATCH

# Params

Name Required Type Description
new_password Yes string New password
password Yes string Confirm with current password

# Example Response

{
    "message": "Password has been successfully updated."
}

# Edit Avatar

# Resource URL

https://humtog.com/api/auth/avatar

# Resource Method

POST

# Params

Name Required Type Description
photo Yes file Profile photo

# Example Response

Returns full image path