User-settings
GET Retrieve user settings
https://focus.toggl.com/api/users/me/settings
- cURL
- Go
- Ruby
- JavaScript
- Python
- Rust
curl https://focus.toggl.com/api/users/me/settings \
-H "Content-Type: application/json" \
-u <email>:<password>
req, err := http.NewRequest(http.MethodGet,
"https://focus.toggl.com/api/users/me/settings")
if err != nil {
print(err)
}
req.Header.Set("Content-Type", "application/json; charset=utf-8")
req.SetBasicAuth("<email>", "<password>")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
print(err)
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
print(err)
}
fmt.Print(string(body))
require 'net/http'
require 'uri'
require 'json'
uri = URI('https://focus.toggl.com/api/users/me/settings')
req = Net::HTTP::Get.new(uri)
req['Content-Type'] = "application/json"
req.basic_auth '<email>', '<password>'
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts JSON.parse(res.body)
fetch("https://focus.toggl.com/api/users/me/settings", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": `Basic ${base64.encode(<email>:<password>)}`
},
})
.then((resp) => resp.json())
.then((json) => {
console.log(json);
})
.catch(err => console.error(err));
import requests
from base64 import b64encode
data = requests.get('https://focus.toggl.com/api/users/me/settings', headers={'content-type': 'application/json', 'Authorization' : 'Basic %s' % b64encode(b"<email>:<password>").decode("ascii")})
print(data.json())
extern crate tokio;
extern crate serde_json;
use reqwest::{Client};
use reqwest::header::{CONTENT_TYPE};
#[tokio::main]
async fn main() -> Result<(), reqwest::Error> {
let client = Client::new().basic_auth("<email>", "<password>");
let json = client.request(Method::GET, "https://focus.toggl.com/api/users/me/settings".to_string())
.header(CONTENT_TYPE, "application/json")
.send()
.await?
.json()
.await?;
println!("{:#?}", json);
Ok(())
}
Response
200
| Name | Type | Description |
|---|---|---|
| attachments_display_mode | string | Valid values: list, grid. |
| autolog_time | boolean | Deprecated: gates auto-log only for the manual task-completion path (updateTaskAndRelated). Per-calendar sync auto-log behavior is now governed by the per-calendar focus_auto_track field, not this setting. |
| calendar_future_defaults_to_plan | boolean | CalendarFutureDefaultsToPlan, when enabled, makes the unified-view event popover open future slots in Plan time (past slots stay Log time). When disabled (default) the unified view always opens in Log time. Does not affect the split view. |
| calendar_project_suggestion_fallback | boolean | CalendarProjectSuggestionFallback enables automatic project suggestion for newly-created calendar tasks. |
| calendar_range_type | string | - |
| calendar_show_calendar_events | boolean | - |
| calendar_show_completed_tasks | boolean | - |
| calendar_show_tasks_list | boolean | - |
| calendar_split_view_columns | string | - |
| calendar_task_creation_behavior | string | CalendarTaskCreationBehavior controls how calendar events map to tasks during sync. Valid values: always_create, do_nothing, match_existing. |
| current_workspace_id | integer | - |
| current_workspace_source | string | CurrentWorkspaceSource is how current_workspace_id was chosen: explicit (Set as Default) or inferred (the workspace the user last switched to). Responses always carry the effective value: inferred when current_workspace_id is unset, otherwise explicit unless stored as inferred. Valid values: explicit, inferred. |
| date_format | string | Valid values: US, EU, ISO. |
| default_page | string | Valid values: last-opened, calendar, inbox, board, timeline, reports, activity-timeline. |
| desktop_handoff | object | DesktopHandoff is the workspace the web app asked the desktop app to open on its first launch, and when the server stored it. |
| duration_format | string | Valid values: classic, improved, decimal. |
| extension_integration_suggestions_disabled | boolean | ExtensionIntegrationSuggestionsDisabled turns off the browser extension's in-page integration suggestions on every browser the user signs in to. Absent means the account has no choice recorded. |
| first_interaction | boolean | FirstInteraction determines the settings update was the first user interaction done. This is what is used to dispatch the Focus product sign-up event. This is not a setting that can be managed by FE. This is purely an internal BE setting. |
| first_interaction_date | string | FirstInteractionDate records when the user first interacted with Focus. Set automatically by the BE alongside first_interaction. |
| focus_mode_count_up | boolean | - |
| goal_reminder_time | string | GoalReminderTime is the local clock time the daily goal reminder is sent, formatted HH:MM (24h). |
| goal_reminders_enabled | boolean | GoalRemindersEnabled opts the user into daily goal-reminder push notifications. Defaults to true. |
| has_reached_task_threshold | boolean | HasReachedTaskThreshold indicates the user has created 5+ tasks at some point. |
| import_data_banner_dismissed | boolean | - |
| invite_members_card_dismissed | boolean | InviteMembersCardDismissed indicates whether the user has dismissed the sidebar invite-members card |
| language_code | string | - |
| mcp_active_organization_id | integer | McpActiveOrganizationID is set by the public MCP as the user's currently active organization. |
| mcp_active_workspace_id | integer | McpActiveWorkspaceID is set by the public MCP as the user's currently active workspace. |
| new_users_trial_dismissed | boolean | - |
| notification_delivery | string | NotificationDelivery picks where notifications that have a Slack version go (time tracking reminders, timer still running, project alerts, timesheet reminders and approvals): email, slack (a Toggl Slack app DM) or both. Defaults to email. The daily brief and the noon nudge reach Slack only when slack_daily_brief is also true; with slack the brief email then stops. Valid values: email, slack, both. |
| notify_pending_invites | boolean | NotifyPendingInvites opts the user into in-app reminders about invites they sent that are still pending. Defaults to true. |
| notify_project_alerts | boolean | NotifyProjectAlerts opts the user into project alert email/in-app/push (time-estimate, fixed-fee). Defaults to true. Time-tracking reminders are a separate product surface and are not gated by this flag. |
| notify_project_member_added | boolean | NotifyProjectMemberAdded opts the user into "added to project" email/in-app/push notifications. Defaults to true. |
| notify_task_assigned | boolean | NotifyTaskAssigned opts the user into task-assignment email/in-app/push notifications. Defaults to true. |
| onboarding_calendar_step_at | string | OnboardingCalendarStepAt is the ISO 8601 timestamp when the user left the calendar step (submitted or skipped) |
| onboarding_checklist_dismissed | boolean | - |
| onboarding_completed_at | string | OnboardingCompletedAt is the ISO 8601 timestamp when the user finished the onboarding flow |
| onboarding_flow_dismissed | boolean | - |
| onboarding_multi_day_task_created | boolean | - |
| onboarding_started_at | string | OnboardingStartedAt is the ISO 8601 timestamp when the user first saw the onboarding page |
| onboarding_task_dragged | boolean | - |
| onboarding_tasks_step_at | string | OnboardingTasksStepAt is the ISO 8601 timestamp when the user left the tasks step (submitted or skipped) |
| onboarding_variant_selected | string | - |
| plan_tour_dismissed | boolean | PlanTourDismissed indicates whether the user has dismissed the plan onboarding tour |
| planned_block_default_mins | integer | - |
| platform_nudges | object | PlatformNudges maps a platform-discoverability nudge id to the ISO 8601 timestamp it was last dismissed. Keys are opaque to the backend (nudge ids are owned by the web app), so new nudges need no backend change. Absent/empty means nothing has been dismissed. |
| pomodoro_mode_auto_start_break | boolean | - |
| pomodoro_mode_break_duration_mins | integer | - |
| pomodoro_mode_session_duration_mins | integer | - |
| pomodoro_mode_sound_enabled | boolean | - |
| send_daily_brief | boolean | SendDailyBrief opts the user into the morning Daily Brief email summarising yesterday's tracked time and today's plan. Defaults to true. |
| send_timer_notifications | boolean | SendTimerNotifications opts the user into the "timer still running" reminder email sent when a timer has been left running for over 8 hours. Defaults to true. |
| shortcuts_enabled | boolean | - |
| show_goals_panel | boolean | ShowGoalsPanel controls whether the Goals panel is visible on the Timer page. Defaults to true. |
| show_google_calendar_events | boolean | - |
| slack_daily_brief | boolean | - |
| start_week_on | integer | StartWeekOn determines which day the week starts on: 0 for Sunday, 1 for Monday. Valid values: 0, 1. |
| switch_to_focus_dismissed | boolean | - |
| sync_external_calendar | string | SyncExternalCalendar can either be 'never', 'always' or 'ask' |
| theme | string | Valid values: auto, light, dark. |
| time_block_color | string | - |
| time_format | string | Valid values: 12h, 24h. |
| time_tracking_mode | string | Valid values: focus, pomodoro. |
| time_tracking_mode_duration_mins | integer | - |
| time_tracking_mode_enabled | boolean | - |
| time_tracking_mode_fullscreen | boolean | - |
| timezone | string | Timezone is the IANA timezone name (e.g. "America/New_York") used to localise time-sensitive features such as goal current-period detection. Mirrors the timezone stored in Toggl Track. |
| tooltip_onboarding_dismissed | boolean | TooltipOnboardingDismissed indicates whether the user has dismissed the tooltip onboarding tour |
| tos_ack_decoupled_licenses | object | TosAckDecoupledLicenses maps an organization id to the ISO 8601 timestamp when the user dismissed the seats-billing (decoupled-licenses) Terms-of-Service announcement modal for that organization. |
| trial_ended_modal_seen | object | TrialEndedModalSeen maps an organization id to the ISO 8601 timestamp when the user was shown the end-of-trial modal for that organization. An absent entry for an org = not yet shown. |
| welcome_modal_dismissed | boolean | WelcomeModalDismissed indicates whether the user has dismissed the welcome modal |
| whats_new_may_2026_dismissed | boolean | WhatsNewMay2026Dismissed indicates whether the user has dismissed the May 2026 "What's new" tour |
| whats_new_tasks_tour_dismissed | boolean | WhatsNewTasksTourDismissed indicates whether the user has dismissed the tasks "What's new" tour |
| work_preparation_reminders_disabled | boolean | WorkPreparationRemindersDisabled turns off work-preparation reminders for this user in every workspace. |
desktop_handoff
| Name | Type | Description |
|---|---|---|
| at | string | At is when the server stored the handoff. |
| workspace_id | integer | - |
platform_nudges
tos_ack_decoupled_licenses
trial_ended_modal_seen
400
Invalid request
500
Internal Server Error
PATCH Partial update user settings
https://focus.toggl.com/api/users/me/settings
Partial update user settings. Set as Default sends current_workspace_source=explicit with current_workspace_id. A non-null current_workspace_id without current_workspace_source keeps the effective source: a stored source stays, a missing one stays missing (explicit, and classifiable by the backfill), and over an unset current_workspace_id it is stored as inferred; a null current_workspace_id without one is stored as inferred. current_workspace_source=inferred alone keeps current_workspace_id. desktop_handoff takes {workspace_id}; the server stamps at.
- cURL
- Go
- Ruby
- JavaScript
- Python
- Rust
curl -X PATCH https://focus.toggl.com/api/users/me/settings \
-H "Content-Type: application/json" \
-d '\{"attachments_display_mode":"string","autolog_time":"boolean","calendar_future_defaults_to_plan":"boolean","calendar_project_suggestion_fallback":"boolean","calendar_range_type":"string","calendar_show_calendar_events":"boolean","calendar_show_completed_tasks":"boolean","calendar_show_tasks_list":"boolean","calendar_split_view_columns":"string","calendar_task_creation_behavior":"string","current_workspace_id":"integer","current_workspace_source":"string","date_format":"string","default_page":"string","desktop_handoff":\{"workspace_id":"integer"\},"duration_format":"string","extension_integration_suggestions_disabled":"boolean","focus_mode_count_up":"boolean","goal_reminder_time":"string","goal_reminders_enabled":"boolean","has_reached_task_threshold":"boolean","import_data_banner_dismissed":"boolean","invite_members_card_dismissed":"boolean","language_code":"string","new_users_trial_dismissed":"boolean","notification_delivery":"string","notify_pending_invites":"boolean","notify_project_alerts":"boolean","notify_project_member_added":"boolean","notify_task_assigned":"boolean","onboarding_calendar_step_at":"string","onboarding_checklist_dismissed":"boolean","onboarding_completed_at":"string","onboarding_flow_dismissed":"boolean","onboarding_multi_day_task_created":"boolean","onboarding_started_at":"string","onboarding_task_dragged":"boolean","onboarding_tasks_step_at":"string","onboarding_variant_selected":"string","plan_tour_dismissed":"boolean","planned_block_default_mins":"integer","platform_nudges":\{\},"pomodoro_mode_auto_start_break":"boolean","pomodoro_mode_break_duration_mins":"integer","pomodoro_mode_session_duration_mins":"integer","pomodoro_mode_sound_enabled":"boolean","send_daily_brief":"boolean","send_timer_notifications":"boolean","shortcuts_enabled":"boolean","show_goals_panel":"boolean","show_google_calendar_events":"boolean","slack_daily_brief":"boolean","start_week_on":"integer","switch_to_focus_dismissed":"boolean","sync_external_calendar":"string","theme":"string","time_block_color":"string","time_format":"string","time_tracking_mode":"string","time_tracking_mode_duration_mins":"integer","time_tracking_mode_enabled":"boolean","time_tracking_mode_fullscreen":"boolean","tooltip_onboarding_dismissed":"boolean","tos_ack_decoupled_licenses":\{\},"trial_ended_modal_seen":\{\},"welcome_modal_dismissed":"boolean","whats_new_may_2026_dismissed":"boolean","whats_new_tasks_tour_dismissed":"boolean","work_preparation_reminders_disabled":"boolean"\}' \
-u <email>:<password>
bytes, err := json.Marshal('\{"attachments_display_mode":"string","autolog_time":"boolean","calendar_future_defaults_to_plan":"boolean","calendar_project_suggestion_fallback":"boolean","calendar_range_type":"string","calendar_show_calendar_events":"boolean","calendar_show_completed_tasks":"boolean","calendar_show_tasks_list":"boolean","calendar_split_view_columns":"string","calendar_task_creation_behavior":"string","current_workspace_id":"integer","current_workspace_source":"string","date_format":"string","default_page":"string","desktop_handoff":\{"workspace_id":"integer"\},"duration_format":"string","extension_integration_suggestions_disabled":"boolean","focus_mode_count_up":"boolean","goal_reminder_time":"string","goal_reminders_enabled":"boolean","has_reached_task_threshold":"boolean","import_data_banner_dismissed":"boolean","invite_members_card_dismissed":"boolean","language_code":"string","new_users_trial_dismissed":"boolean","notification_delivery":"string","notify_pending_invites":"boolean","notify_project_alerts":"boolean","notify_project_member_added":"boolean","notify_task_assigned":"boolean","onboarding_calendar_step_at":"string","onboarding_checklist_dismissed":"boolean","onboarding_completed_at":"string","onboarding_flow_dismissed":"boolean","onboarding_multi_day_task_created":"boolean","onboarding_started_at":"string","onboarding_task_dragged":"boolean","onboarding_tasks_step_at":"string","onboarding_variant_selected":"string","plan_tour_dismissed":"boolean","planned_block_default_mins":"integer","platform_nudges":\{\},"pomodoro_mode_auto_start_break":"boolean","pomodoro_mode_break_duration_mins":"integer","pomodoro_mode_session_duration_mins":"integer","pomodoro_mode_sound_enabled":"boolean","send_daily_brief":"boolean","send_timer_notifications":"boolean","shortcuts_enabled":"boolean","show_goals_panel":"boolean","show_google_calendar_events":"boolean","slack_daily_brief":"boolean","start_week_on":"integer","switch_to_focus_dismissed":"boolean","sync_external_calendar":"string","theme":"string","time_block_color":"string","time_format":"string","time_tracking_mode":"string","time_tracking_mode_duration_mins":"integer","time_tracking_mode_enabled":"boolean","time_tracking_mode_fullscreen":"boolean","tooltip_onboarding_dismissed":"boolean","tos_ack_decoupled_licenses":\{\},"trial_ended_modal_seen":\{\},"welcome_modal_dismissed":"boolean","whats_new_may_2026_dismissed":"boolean","whats_new_tasks_tour_dismissed":"boolean","work_preparation_reminders_disabled":"boolean"\}')
if err != nil {
print(err)
}
req, err := http.NewRequest(http.MethodGet,
"https://focus.toggl.com/api/users/me/settings", bytes.NewBuffer(bytes))
if err != nil {
print(err)
}
req.Header.Set("Content-Type", "application/json; charset=utf-8")
req.SetBasicAuth("<email>", "<password>")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
print(err)
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
print(err)
}
fmt.Print(string(body))
require 'net/http'
require 'uri'
require 'json'
uri = URI('https://focus.toggl.com/api/users/me/settings')
req = Net::HTTP::Patch.new(uri)
req['Content-Type'] = "application/json"
req.body = \{"attachments_display_mode":"string","autolog_time":"boolean","calendar_future_defaults_to_plan":"boolean","calendar_project_suggestion_fallback":"boolean","calendar_range_type":"string","calendar_show_calendar_events":"boolean","calendar_show_completed_tasks":"boolean","calendar_show_tasks_list":"boolean","calendar_split_view_columns":"string","calendar_task_creation_behavior":"string","current_workspace_id":"integer","current_workspace_source":"string","date_format":"string","default_page":"string","desktop_handoff":\{"workspace_id":"integer"\},"duration_format":"string","extension_integration_suggestions_disabled":"boolean","focus_mode_count_up":"boolean","goal_reminder_time":"string","goal_reminders_enabled":"boolean","has_reached_task_threshold":"boolean","import_data_banner_dismissed":"boolean","invite_members_card_dismissed":"boolean","language_code":"string","new_users_trial_dismissed":"boolean","notification_delivery":"string","notify_pending_invites":"boolean","notify_project_alerts":"boolean","notify_project_member_added":"boolean","notify_task_assigned":"boolean","onboarding_calendar_step_at":"string","onboarding_checklist_dismissed":"boolean","onboarding_completed_at":"string","onboarding_flow_dismissed":"boolean","onboarding_multi_day_task_created":"boolean","onboarding_started_at":"string","onboarding_task_dragged":"boolean","onboarding_tasks_step_at":"string","onboarding_variant_selected":"string","plan_tour_dismissed":"boolean","planned_block_default_mins":"integer","platform_nudges":\{\},"pomodoro_mode_auto_start_break":"boolean","pomodoro_mode_break_duration_mins":"integer","pomodoro_mode_session_duration_mins":"integer","pomodoro_mode_sound_enabled":"boolean","send_daily_brief":"boolean","send_timer_notifications":"boolean","shortcuts_enabled":"boolean","show_goals_panel":"boolean","show_google_calendar_events":"boolean","slack_daily_brief":"boolean","start_week_on":"integer","switch_to_focus_dismissed":"boolean","sync_external_calendar":"string","theme":"string","time_block_color":"string","time_format":"string","time_tracking_mode":"string","time_tracking_mode_duration_mins":"integer","time_tracking_mode_enabled":"boolean","time_tracking_mode_fullscreen":"boolean","tooltip_onboarding_dismissed":"boolean","tos_ack_decoupled_licenses":\{\},"trial_ended_modal_seen":\{\},"welcome_modal_dismissed":"boolean","whats_new_may_2026_dismissed":"boolean","whats_new_tasks_tour_dismissed":"boolean","work_preparation_reminders_disabled":"boolean"\}.to_json
req.basic_auth '<email>', '<password>'
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts JSON.parse(res.body)
fetch("https://focus.toggl.com/api/users/me/settings", {
method: "PATCH",
body: \{"attachments_display_mode":"string","autolog_time":"boolean","calendar_future_defaults_to_plan":"boolean","calendar_project_suggestion_fallback":"boolean","calendar_range_type":"string","calendar_show_calendar_events":"boolean","calendar_show_completed_tasks":"boolean","calendar_show_tasks_list":"boolean","calendar_split_view_columns":"string","calendar_task_creation_behavior":"string","current_workspace_id":"integer","current_workspace_source":"string","date_format":"string","default_page":"string","desktop_handoff":\{"workspace_id":"integer"\},"duration_format":"string","extension_integration_suggestions_disabled":"boolean","focus_mode_count_up":"boolean","goal_reminder_time":"string","goal_reminders_enabled":"boolean","has_reached_task_threshold":"boolean","import_data_banner_dismissed":"boolean","invite_members_card_dismissed":"boolean","language_code":"string","new_users_trial_dismissed":"boolean","notification_delivery":"string","notify_pending_invites":"boolean","notify_project_alerts":"boolean","notify_project_member_added":"boolean","notify_task_assigned":"boolean","onboarding_calendar_step_at":"string","onboarding_checklist_dismissed":"boolean","onboarding_completed_at":"string","onboarding_flow_dismissed":"boolean","onboarding_multi_day_task_created":"boolean","onboarding_started_at":"string","onboarding_task_dragged":"boolean","onboarding_tasks_step_at":"string","onboarding_variant_selected":"string","plan_tour_dismissed":"boolean","planned_block_default_mins":"integer","platform_nudges":\{\},"pomodoro_mode_auto_start_break":"boolean","pomodoro_mode_break_duration_mins":"integer","pomodoro_mode_session_duration_mins":"integer","pomodoro_mode_sound_enabled":"boolean","send_daily_brief":"boolean","send_timer_notifications":"boolean","shortcuts_enabled":"boolean","show_goals_panel":"boolean","show_google_calendar_events":"boolean","slack_daily_brief":"boolean","start_week_on":"integer","switch_to_focus_dismissed":"boolean","sync_external_calendar":"string","theme":"string","time_block_color":"string","time_format":"string","time_tracking_mode":"string","time_tracking_mode_duration_mins":"integer","time_tracking_mode_enabled":"boolean","time_tracking_mode_fullscreen":"boolean","tooltip_onboarding_dismissed":"boolean","tos_ack_decoupled_licenses":\{\},"trial_ended_modal_seen":\{\},"welcome_modal_dismissed":"boolean","whats_new_may_2026_dismissed":"boolean","whats_new_tasks_tour_dismissed":"boolean","work_preparation_reminders_disabled":"boolean"\},
headers: {
"Content-Type": "application/json",
"Authorization": `Basic ${base64.encode(<email>:<password>)}`
},
})
.then((resp) => resp.json())
.then((json) => {
console.log(json);
})
.catch(err => console.error(err));
import requests
from base64 import b64encode
data = requests.patch('https://focus.toggl.com/api/users/me/settings', json=\{"attachments_display_mode":"string","autolog_time":"boolean","calendar_future_defaults_to_plan":"boolean","calendar_project_suggestion_fallback":"boolean","calendar_range_type":"string","calendar_show_calendar_events":"boolean","calendar_show_completed_tasks":"boolean","calendar_show_tasks_list":"boolean","calendar_split_view_columns":"string","calendar_task_creation_behavior":"string","current_workspace_id":"integer","current_workspace_source":"string","date_format":"string","default_page":"string","desktop_handoff":\{"workspace_id":"integer"\},"duration_format":"string","extension_integration_suggestions_disabled":"boolean","focus_mode_count_up":"boolean","goal_reminder_time":"string","goal_reminders_enabled":"boolean","has_reached_task_threshold":"boolean","import_data_banner_dismissed":"boolean","invite_members_card_dismissed":"boolean","language_code":"string","new_users_trial_dismissed":"boolean","notification_delivery":"string","notify_pending_invites":"boolean","notify_project_alerts":"boolean","notify_project_member_added":"boolean","notify_task_assigned":"boolean","onboarding_calendar_step_at":"string","onboarding_checklist_dismissed":"boolean","onboarding_completed_at":"string","onboarding_flow_dismissed":"boolean","onboarding_multi_day_task_created":"boolean","onboarding_started_at":"string","onboarding_task_dragged":"boolean","onboarding_tasks_step_at":"string","onboarding_variant_selected":"string","plan_tour_dismissed":"boolean","planned_block_default_mins":"integer","platform_nudges":\{\},"pomodoro_mode_auto_start_break":"boolean","pomodoro_mode_break_duration_mins":"integer","pomodoro_mode_session_duration_mins":"integer","pomodoro_mode_sound_enabled":"boolean","send_daily_brief":"boolean","send_timer_notifications":"boolean","shortcuts_enabled":"boolean","show_goals_panel":"boolean","show_google_calendar_events":"boolean","slack_daily_brief":"boolean","start_week_on":"integer","switch_to_focus_dismissed":"boolean","sync_external_calendar":"string","theme":"string","time_block_color":"string","time_format":"string","time_tracking_mode":"string","time_tracking_mode_duration_mins":"integer","time_tracking_mode_enabled":"boolean","time_tracking_mode_fullscreen":"boolean","tooltip_onboarding_dismissed":"boolean","tos_ack_decoupled_licenses":\{\},"trial_ended_modal_seen":\{\},"welcome_modal_dismissed":"boolean","whats_new_may_2026_dismissed":"boolean","whats_new_tasks_tour_dismissed":"boolean","work_preparation_reminders_disabled":"boolean"\}, headers={'content-type': 'application/json', 'Authorization' : 'Basic %s' % b64encode(b"<email>:<password>").decode("ascii")})
print(data.json())
extern crate tokio;
extern crate serde_json;
use reqwest::{Client};
use reqwest::header::{CONTENT_TYPE};
#[tokio::main]
async fn main() -> Result<(), reqwest::Error> {
let client = Client::new().basic_auth("<email>", "<password>");
let json = client.request(Method::PATCH, "https://focus.toggl.com/api/users/me/settings".to_string())
.json(&serde_json::json!(\{"attachments_display_mode":"string","autolog_time":"boolean","calendar_future_defaults_to_plan":"boolean","calendar_project_suggestion_fallback":"boolean","calendar_range_type":"string","calendar_show_calendar_events":"boolean","calendar_show_completed_tasks":"boolean","calendar_show_tasks_list":"boolean","calendar_split_view_columns":"string","calendar_task_creation_behavior":"string","current_workspace_id":"integer","current_workspace_source":"string","date_format":"string","default_page":"string","desktop_handoff":\{"workspace_id":"integer"\},"duration_format":"string","extension_integration_suggestions_disabled":"boolean","focus_mode_count_up":"boolean","goal_reminder_time":"string","goal_reminders_enabled":"boolean","has_reached_task_threshold":"boolean","import_data_banner_dismissed":"boolean","invite_members_card_dismissed":"boolean","language_code":"string","new_users_trial_dismissed":"boolean","notification_delivery":"string","notify_pending_invites":"boolean","notify_project_alerts":"boolean","notify_project_member_added":"boolean","notify_task_assigned":"boolean","onboarding_calendar_step_at":"string","onboarding_checklist_dismissed":"boolean","onboarding_completed_at":"string","onboarding_flow_dismissed":"boolean","onboarding_multi_day_task_created":"boolean","onboarding_started_at":"string","onboarding_task_dragged":"boolean","onboarding_tasks_step_at":"string","onboarding_variant_selected":"string","plan_tour_dismissed":"boolean","planned_block_default_mins":"integer","platform_nudges":\{\},"pomodoro_mode_auto_start_break":"boolean","pomodoro_mode_break_duration_mins":"integer","pomodoro_mode_session_duration_mins":"integer","pomodoro_mode_sound_enabled":"boolean","send_daily_brief":"boolean","send_timer_notifications":"boolean","shortcuts_enabled":"boolean","show_goals_panel":"boolean","show_google_calendar_events":"boolean","slack_daily_brief":"boolean","start_week_on":"integer","switch_to_focus_dismissed":"boolean","sync_external_calendar":"string","theme":"string","time_block_color":"string","time_format":"string","time_tracking_mode":"string","time_tracking_mode_duration_mins":"integer","time_tracking_mode_enabled":"boolean","time_tracking_mode_fullscreen":"boolean","tooltip_onboarding_dismissed":"boolean","tos_ack_decoupled_licenses":\{\},"trial_ended_modal_seen":\{\},"welcome_modal_dismissed":"boolean","whats_new_may_2026_dismissed":"boolean","whats_new_tasks_tour_dismissed":"boolean","work_preparation_reminders_disabled":"boolean"\}))
.header(CONTENT_TYPE, "application/json")
.send()
.await?
.json()
.await?;
println!("{:#?}", json);
Ok(())
}
Parameters
Body
| Name | Type | Description |
|---|---|---|
| attachments_display_mode | string | null |
| autolog_time | boolean | - |
| calendar_future_defaults_to_plan | boolean | - |
| calendar_project_suggestion_fallback | boolean | - |
| calendar_range_type | string | null |
| calendar_show_calendar_events | boolean | - |
| calendar_show_completed_tasks | boolean | - |
| calendar_show_tasks_list | boolean | - |
| calendar_split_view_columns | string | null |
| calendar_task_creation_behavior | string | Valid values: always_create, do_nothing, match_existing. |
| current_workspace_id | integer | null |
| current_workspace_source | string | CurrentWorkspaceSource: inferred alone keeps current_workspace_id and stops treating it as the default. Omitted next to a non-null current_workspace_id, the effective source is kept; next to a null one, inferred. Valid values: explicit, inferred. |
| date_format | string | Valid values: US, EU, ISO. |
| default_page | string | null |
| desktop_handoff | object | DesktopHandoff stores the workspace the web app hands to the desktop app's first launch, stamped with the server time; null clears it. |
| duration_format | string | Valid values: classic, improved, decimal. |
| extension_integration_suggestions_disabled | boolean | - |
| focus_mode_count_up | boolean | - |
| goal_reminder_time | string | null |
| goal_reminders_enabled | boolean | - |
| has_reached_task_threshold | boolean | - |
| import_data_banner_dismissed | boolean | - |
| invite_members_card_dismissed | boolean | - |
| language_code | string | null |
| new_users_trial_dismissed | boolean | - |
| notification_delivery | string | NotificationDelivery picks email, slack or both for notifications that have a Slack version. Valid values: email, slack, both. |
| notify_pending_invites | boolean | - |
| notify_project_alerts | boolean | - |
| notify_project_member_added | boolean | - |
| notify_task_assigned | boolean | - |
| onboarding_calendar_step_at | string | null |
| onboarding_checklist_dismissed | boolean | - |
| onboarding_completed_at | string | null |
| onboarding_flow_dismissed | boolean | - |
| onboarding_multi_day_task_created | boolean | - |
| onboarding_started_at | string | null |
| onboarding_task_dragged | boolean | - |
| onboarding_tasks_step_at | string | null |
| onboarding_variant_selected | string | null |
| plan_tour_dismissed | boolean | - |
| planned_block_default_mins | integer | null |
| platform_nudges | object | - |
| pomodoro_mode_auto_start_break | boolean | - |
| pomodoro_mode_break_duration_mins | integer | - |
| pomodoro_mode_session_duration_mins | integer | - |
| pomodoro_mode_sound_enabled | boolean | - |
| send_daily_brief | boolean | - |
| send_timer_notifications | boolean | - |
| shortcuts_enabled | boolean | - |
| show_goals_panel | boolean | - |
| show_google_calendar_events | boolean | - |
| slack_daily_brief | boolean | - |
| start_week_on | integer | Valid values: 0, 1. |
| switch_to_focus_dismissed | boolean | - |
| sync_external_calendar | string | Valid values: never, always, ask. |
| theme | string | Valid values: light, dark, auto. |
| time_block_color | string | null |
| time_format | string | Valid values: 12h, 24h. |
| time_tracking_mode | string | null |
| time_tracking_mode_duration_mins | integer | null |
| time_tracking_mode_enabled | boolean | - |
| time_tracking_mode_fullscreen | boolean | - |
| tooltip_onboarding_dismissed | boolean | - |
| tos_ack_decoupled_licenses | object | - |
| trial_ended_modal_seen | object | - |
| welcome_modal_dismissed | boolean | - |
| whats_new_may_2026_dismissed | boolean | - |
| whats_new_tasks_tour_dismissed | boolean | - |
| work_preparation_reminders_disabled | boolean | WorkPreparationRemindersDisabled turns off work-preparation reminders for this user in every workspace. |
desktop_handoff
| Name | Type | Description |
|---|---|---|
| workspace_id | integer | - |
platform_nudges
tos_ack_decoupled_licenses
trial_ended_modal_seen
Response
200
Successfully updated
| Name | Type | Description |
|---|---|---|
| attachments_display_mode | string | Valid values: list, grid. |
| autolog_time | boolean | Deprecated: gates auto-log only for the manual task-completion path (updateTaskAndRelated). Per-calendar sync auto-log behavior is now governed by the per-calendar focus_auto_track field, not this setting. |
| calendar_future_defaults_to_plan | boolean | CalendarFutureDefaultsToPlan, when enabled, makes the unified-view event popover open future slots in Plan time (past slots stay Log time). When disabled (default) the unified view always opens in Log time. Does not affect the split view. |
| calendar_project_suggestion_fallback | boolean | CalendarProjectSuggestionFallback enables automatic project suggestion for newly-created calendar tasks. |
| calendar_range_type | string | - |
| calendar_show_calendar_events | boolean | - |
| calendar_show_completed_tasks | boolean | - |
| calendar_show_tasks_list | boolean | - |
| calendar_split_view_columns | string | - |
| calendar_task_creation_behavior | string | CalendarTaskCreationBehavior controls how calendar events map to tasks during sync. Valid values: always_create, do_nothing, match_existing. |
| current_workspace_id | integer | - |
| current_workspace_source | string | CurrentWorkspaceSource is how current_workspace_id was chosen: explicit (Set as Default) or inferred (the workspace the user last switched to). Responses always carry the effective value: inferred when current_workspace_id is unset, otherwise explicit unless stored as inferred. Valid values: explicit, inferred. |
| date_format | string | Valid values: US, EU, ISO. |
| default_page | string | Valid values: last-opened, calendar, inbox, board, timeline, reports, activity-timeline. |
| desktop_handoff | object | DesktopHandoff is the workspace the web app asked the desktop app to open on its first launch, and when the server stored it. |
| duration_format | string | Valid values: classic, improved, decimal. |
| extension_integration_suggestions_disabled | boolean | ExtensionIntegrationSuggestionsDisabled turns off the browser extension's in-page integration suggestions on every browser the user signs in to. Absent means the account has no choice recorded. |
| first_interaction | boolean | FirstInteraction determines the settings update was the first user interaction done. This is what is used to dispatch the Focus product sign-up event. This is not a setting that can be managed by FE. This is purely an internal BE setting. |
| first_interaction_date | string | FirstInteractionDate records when the user first interacted with Focus. Set automatically by the BE alongside first_interaction. |
| focus_mode_count_up | boolean | - |
| goal_reminder_time | string | GoalReminderTime is the local clock time the daily goal reminder is sent, formatted HH:MM (24h). |
| goal_reminders_enabled | boolean | GoalRemindersEnabled opts the user into daily goal-reminder push notifications. Defaults to true. |
| has_reached_task_threshold | boolean | HasReachedTaskThreshold indicates the user has created 5+ tasks at some point. |
| import_data_banner_dismissed | boolean | - |
| invite_members_card_dismissed | boolean | InviteMembersCardDismissed indicates whether the user has dismissed the sidebar invite-members card |
| language_code | string | - |
| mcp_active_organization_id | integer | McpActiveOrganizationID is set by the public MCP as the user's currently active organization. |
| mcp_active_workspace_id | integer | McpActiveWorkspaceID is set by the public MCP as the user's currently active workspace. |
| new_users_trial_dismissed | boolean | - |
| notification_delivery | string | NotificationDelivery picks where notifications that have a Slack version go (time tracking reminders, timer still running, project alerts, timesheet reminders and approvals): email, slack (a Toggl Slack app DM) or both. Defaults to email. The daily brief and the noon nudge reach Slack only when slack_daily_brief is also true; with slack the brief email then stops. Valid values: email, slack, both. |
| notify_pending_invites | boolean | NotifyPendingInvites opts the user into in-app reminders about invites they sent that are still pending. Defaults to true. |
| notify_project_alerts | boolean | NotifyProjectAlerts opts the user into project alert email/in-app/push (time-estimate, fixed-fee). Defaults to true. Time-tracking reminders are a separate product surface and are not gated by this flag. |
| notify_project_member_added | boolean | NotifyProjectMemberAdded opts the user into "added to project" email/in-app/push notifications. Defaults to true. |
| notify_task_assigned | boolean | NotifyTaskAssigned opts the user into task-assignment email/in-app/push notifications. Defaults to true. |
| onboarding_calendar_step_at | string | OnboardingCalendarStepAt is the ISO 8601 timestamp when the user left the calendar step (submitted or skipped) |
| onboarding_checklist_dismissed | boolean | - |
| onboarding_completed_at | string | OnboardingCompletedAt is the ISO 8601 timestamp when the user finished the onboarding flow |
| onboarding_flow_dismissed | boolean | - |
| onboarding_multi_day_task_created | boolean | - |
| onboarding_started_at | string | OnboardingStartedAt is the ISO 8601 timestamp when the user first saw the onboarding page |
| onboarding_task_dragged | boolean | - |
| onboarding_tasks_step_at | string | OnboardingTasksStepAt is the ISO 8601 timestamp when the user left the tasks step (submitted or skipped) |
| onboarding_variant_selected | string | - |
| plan_tour_dismissed | boolean | PlanTourDismissed indicates whether the user has dismissed the plan onboarding tour |
| planned_block_default_mins | integer | - |
| platform_nudges | object | PlatformNudges maps a platform-discoverability nudge id to the ISO 8601 timestamp it was last dismissed. Keys are opaque to the backend (nudge ids are owned by the web app), so new nudges need no backend change. Absent/empty means nothing has been dismissed. |
| pomodoro_mode_auto_start_break | boolean | - |
| pomodoro_mode_break_duration_mins | integer | - |
| pomodoro_mode_session_duration_mins | integer | - |
| pomodoro_mode_sound_enabled | boolean | - |
| send_daily_brief | boolean | SendDailyBrief opts the user into the morning Daily Brief email summarising yesterday's tracked time and today's plan. Defaults to true. |
| send_timer_notifications | boolean | SendTimerNotifications opts the user into the "timer still running" reminder email sent when a timer has been left running for over 8 hours. Defaults to true. |
| shortcuts_enabled | boolean | - |
| show_goals_panel | boolean | ShowGoalsPanel controls whether the Goals panel is visible on the Timer page. Defaults to true. |
| show_google_calendar_events | boolean | - |
| slack_daily_brief | boolean | - |
| start_week_on | integer | StartWeekOn determines which day the week starts on: 0 for Sunday, 1 for Monday. Valid values: 0, 1. |
| switch_to_focus_dismissed | boolean | - |
| sync_external_calendar | string | SyncExternalCalendar can either be 'never', 'always' or 'ask' |
| theme | string | Valid values: auto, light, dark. |
| time_block_color | string | - |
| time_format | string | Valid values: 12h, 24h. |
| time_tracking_mode | string | Valid values: focus, pomodoro. |
| time_tracking_mode_duration_mins | integer | - |
| time_tracking_mode_enabled | boolean | - |
| time_tracking_mode_fullscreen | boolean | - |
| timezone | string | Timezone is the IANA timezone name (e.g. "America/New_York") used to localise time-sensitive features such as goal current-period detection. Mirrors the timezone stored in Toggl Track. |
| tooltip_onboarding_dismissed | boolean | TooltipOnboardingDismissed indicates whether the user has dismissed the tooltip onboarding tour |
| tos_ack_decoupled_licenses | object | TosAckDecoupledLicenses maps an organization id to the ISO 8601 timestamp when the user dismissed the seats-billing (decoupled-licenses) Terms-of-Service announcement modal for that organization. |
| trial_ended_modal_seen | object | TrialEndedModalSeen maps an organization id to the ISO 8601 timestamp when the user was shown the end-of-trial modal for that organization. An absent entry for an org = not yet shown. |
| welcome_modal_dismissed | boolean | WelcomeModalDismissed indicates whether the user has dismissed the welcome modal |
| whats_new_may_2026_dismissed | boolean | WhatsNewMay2026Dismissed indicates whether the user has dismissed the May 2026 "What's new" tour |
| whats_new_tasks_tour_dismissed | boolean | WhatsNewTasksTourDismissed indicates whether the user has dismissed the tasks "What's new" tour |
| work_preparation_reminders_disabled | boolean | WorkPreparationRemindersDisabled turns off work-preparation reminders for this user in every workspace. |
desktop_handoff
| Name | Type | Description |
|---|---|---|
| at | string | At is when the server stored the handoff. |
| workspace_id | integer | - |
platform_nudges
tos_ack_decoupled_licenses
trial_ended_modal_seen
400
Invalid request, including an unknown current_workspace_source, an explicit source with no current_workspace_id (sent as null, or none stored), or a desktop_handoff without a positive workspace_id
500
Internal Server Error