Get Privacy settings

Please use this (https://YOUR-SITE.COM/mobile_api/get_priv_settings) API for accessing the endpoint of user privacy settings


Get parameters

Field Value Remarks
session_id ​Access token ID E.g. de25cc16eb00960f076...

Success response

{
    "code": 200,
    "valid": true,
    "message": "",
    "data":{
        "profile_visibility": "everyone",
        "contact_privacy": "everyone",
        "search_visibility": true
    }
}

Error responses

{
    "code": 401,
    "data": [],
    "message": "Unauthorized Access"
}

Change Privacy settingss

Please use this (https://YOUR-SITE.COM/mobile_api/set_priv_settings) API for accessing the endpoint of changing user privacy settings


Post parameters

Field Value Remarks
session_id ​Access token ID E.g. de25cc16eb00960f076...
profile_visibility ​Profile access privacy E.g. One of these options (followers/nobody/everyone)
contact_privacy Direct message privacy E.g. One of these options (followed/everyone)
search_visibility ​Profile search indexing privacy E.g. One of these options (Y/N)

Success response

{
    "code": 200,
    "valid": true,
    "message": "User privacy settings updated",
    "data": []
}

Error responses

{
    "code": 401,
    "data": [],
    "message": "Unauthorized Access"
}

{
    "err_code": "invalid_[ Invalid field name ]",
    "code": 400,
    "data": [],
    "message": "Invalid request data"
}