Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

Retrieves all user settings for the authenticated user, including their current values and default settings.

Endpoint

GET /api/v2/users/:id/settings

Parameters

id
string
required
The ID of the user whose settings to retrieve (must be the authenticated user).
curl -X GET https://api.onlydrams.app/api/v2/users/123e4567-e89b-12d3-a456-426614174000/settings \
  -H "Authorization: Bearer $ACCESS_TOKEN"
[
  {
    "key": "public_profile",
    "category": "privacy",
    "title": "Public Profile",
    "description": "Allow other users to view your profile",
    "value": "true",
    "default_value": "true"
  },
  {
    "key": "email_notifications",
    "category": "notifications",
    "title": "Email Notifications",
    "description": "Receive email notifications for important updates",
    "value": "true",
    "default_value": "true"
  },
  {
    "key": "push_notifications",
    "category": "notifications",
    "title": "Push Notifications",
    "description": "Receive push notifications on your device",
    "value": "false",
    "default_value": "true"
  },
  {
    "key": "dark_mode",
    "category": "display",
    "title": "Dark Mode",
    "description": "Use dark theme for the application",
    "value": "true",
    "default_value": "false"
  },
  {
    "key": "two_factor_auth",
    "category": "security",
    "title": "Two-Factor Authentication",
    "description": "Enable two-factor authentication for your account",
    "value": "false",
    "default_value": "false"
  }
]

Error Responses

{
  "error": "You can only view your own settings"
}
{
  "error": "User not found"
}