Responses

  • 200 application/json

    Privacy settings retrieved successfully

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • data object
      Hide data attributes Show data attributes object
      • last_seen string
      • profile_picture string
      • status string
      • read_receipts string
      • groups string
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
GET /users/me/privacy
curl \
 --request GET 'http://localhost:7001/users/me/privacy' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "code": 200,
  "data": {
    "groups": "contacts",
    "status": "contacts",
    "last_seen": "contacts",
    "read_receipts": "all",
    "profile_picture": "all"
  },
  "status": true,
  "message": "Privacy settings retrieved successfully"
}
Response examples (200)
{
  "status": true,
  "code": 200,
  "message": "Privacy settings retrieved successfully",
  "data": {
    "last_seen": "contacts",
    "profile_picture": "all",
    "status": "contacts",
    "read_receipts": "all",
    "groups": "contacts"
  }
}
Response examples (401)
{
  "code": 401,
  "error": "Invalid or expired JWT token",
  "status": false,
  "message": "Unauthorized"
}
Response examples (401)
{
  "status": false,
  "code": 401,
  "message": "Unauthorized",
  "error": "Invalid or missing authentication"
}
Response examples (500)
{
  "code": 500,
  "error": "Failed to retrieve privacy settings",
  "status": false,
  "message": "Internal server error"
}
Response examples (500)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}