Skip to main content
GET
/
account
/
privacy-settings
Get Account Privacy Settings
curl --request GET \
  --url https://api.dontdie.com/account/privacy-settings \
  --header 'Authorization: Bearer <token>' \
  --header 'x-dd-client-id: <api-key>'
{
  "userId": "123e4567-e89b-12d3-a456-426614174000",
  "isPrivate": false,
  "socialPostVisibility": "EVERYONE",
  "healthPostVisibility": "EVERYONE",
  "activityVisibility": "EVERYONE",
  "physicalPerformanceVisibility": "EVERYONE",
  "labBiomarkerVisibility": "EVERYONE",
  "protocolVisibility": "EVERYONE",
  "shareLocationOnProfile": true,
  "directMessagesAccess": "EVERYONE"
}

Authorizations

Authorization
string
header
required

Enter your Bearer token in the format: Bearer

x-dd-client-id
string
header
required

Your API client ID for the request

Response

OK

userId
string

The ID of the user

Example:

"123e4567-e89b-12d3-a456-426614174000"

isPrivate
boolean

Whether the account is private

Example:

false

socialPostVisibility
enum<string>

Visibility setting for social posts

Available options:
EVERYONE,
ONLY_FOLLOWERS,
ONLY_ME
Example:

"EVERYONE"

healthPostVisibility
enum<string>

Visibility setting for health posts

Available options:
EVERYONE,
ONLY_FOLLOWERS,
ONLY_ME
Example:

"EVERYONE"

activityVisibility
enum<string>

Visibility setting for activity

Available options:
EVERYONE,
ONLY_FOLLOWERS,
ONLY_ME
Example:

"EVERYONE"

physicalPerformanceVisibility
enum<string>

Visibility setting for physical performance

Available options:
EVERYONE,
ONLY_FOLLOWERS,
ONLY_ME
Example:

"EVERYONE"

labBiomarkerVisibility
enum<string>

Visibility setting for lab biomarkers

Available options:
EVERYONE,
ONLY_FOLLOWERS,
ONLY_ME
Example:

"EVERYONE"

protocolVisibility
enum<string>

Visibility setting for protocols

Available options:
EVERYONE,
ONLY_FOLLOWERS,
ONLY_ME
Example:

"EVERYONE"

shareLocationOnProfile
boolean

Whether to share location on profile

Example:

true

directMessagesAccess
enum<string>

Who can send direct messages

Available options:
EVERYONE,
FOLLOWED_USERS,
NO_ONE
Example:

"EVERYONE"