Tools now includes a personal Microsoft To Do integration for authenticated users.
/api/microsoft-todo/* for apps and other clients./todo (short alias) and /settings/integrations/microsoft-todoauth:webFrom this page a user can:
Both /settings/integrations/microsoft-todo and /todo show compact, responsive expandable lists. Choose a list to see its tasks; choose a task to open the existing editor, with notes, status, priority, due date and reminder controls. List settings and task creation are tucked into their own expandable areas. Status and task counts stay visible without opening every editor. The AJAX workspace preserves expanded sections while refreshing and leaves active edits alone.
Unsorted tasks shows the Microsoft default list (defaultList) separately from named lists. Microsoft To Do requires each task to belong to a list, so this is a display-only grouping of the existing default list, not a new or truly listless storage bucket. Neither page moves tasks or changes how synchronization works. The integration view retains standard HTML forms for keyboard users and browsers without JavaScript.
You can now create and rename local list groups, place existing named lists in a group, return a list to Lists without group, or delete a group without deleting any lists or tasks. Both the integration page and the AJAX workspace at /todo show three expandable levels: group → list → task. Empty groups remain visible. Task editors and the previous list/task operations are unchanged.
The default Microsoft list remains under Unsorted tasks. Every other list without a group appears in Lists without group. Group assignment is stored separately per ToolsAPI account and does not trigger Microsoft Graph writes, change pending sync state, or migrate tasks. Microsoft To Do's own native list groups cannot be imported or synchronized by the supported Graph To Do API; a grouping created in ToolsAPI is visible only there. Your Microsoft lists and tasks continue to synchronize normally.
Authenticated owner-only endpoints (same URLs for all clients, with no version prefix) include GET/POST /api/microsoft-todo/groups, PATCH/DELETE /api/microsoft-todo/groups/{group}, and PATCH /api/microsoft-todo/lists/{listId}/group with group_id as an integer or null. GET /api/microsoft-todo/lists includes the list's group_id and a groups collection. The integration page also provides CSRF-protected HTML forms for these actions.
On the integration page (Sync now) or the AJAX workspace at /todo, a sync now shows the actual backend stages, how many lists/tasks have been processed, and the elapsed time. The stage indicator is not a fabricated estimate of total transfer time. It reaches completion only after the local sync status is saved successfully; if a stage fails, the bar stops and names that stage instead of claiming 100%.
Authenticated clients can read the current signed-in user's progress with GET /api/microsoft-todo/sync-progress, which returns ok and a progress object with status (idle, running, completed, failed), stage, step, steps, processed, total, aggregate counts, run_id, and updated_at. The status is owner-scoped, temporary, and never contains Microsoft tokens, task titles or private list data. A second manual sync for the same owner returns HTTP 409 while another is active. The existing POST /api/microsoft-todo/sync route and its success/error contracts remain compatible; failures additionally expose a safe failed_stage and run_id. Refreshing the status does not launch a new sync.
Temporary errors while saving synced lists or tasks are retried without automatically repeating Microsoft changes. If synchronization still fails, the interface retains the failed stage to help explain where it stopped.
Microsoft sign-in (OAuth) and Microsoft To Do synchronization are two separate checks. An authorized Microsoft account does not by itself prove that Microsoft Graph allows access to To Do lists.
/todo uses the same status API and is accessible in the signed-in Android in-app browser.Tasks.ReadWrite delegated permission and Microsoft account eligibility. The status shows the HTTP code without displaying raw provider responses. The OAuth session can remain authorized even when To Do access fails.Tasks.ReadWrite, even with older shared Microsoft app settings. A persistent 401 now describes the most relevant safe diagnosis (missing delegated scope, incorrect Microsoft Graph token audience, expired token or possible personal-account tenant incompatibility). Token contents and Microsoft error bodies are never shown./me succeeds. In some configurations, the Microsoft Entra app registration must support personal Microsoft accounts only and use the consumers authorization/token tenant. Verify account type and platform app settings before changing a shared work/school or Copilot registration; Tools does not change that tenant automatically.Tasks.ReadWrite and account/tenant eligibility rather than repeatedly pressing Sync.consumers. Never change a shared Copilot/work app registration or its configured tenant without checking its existing consumers.GET /api/microsoft/auth/status and GET /api/microsoft-todo/status expose connected (OAuth) and sync_status (state, message, updated_at, requires_reconnect). POST /api/microsoft-todo/sync reports errors as JSON with ok: false and sync_status, rather than returning a false success.Microsoft To Do authorization and token refresh always use the common Microsoft OAuth authority, independently of MICROSOFT_PROFILE_TOOLS_TENANT_ID, old saved oauth_provider_apps.config_json.tenant values, and the organizational Copilot profile. Changing an old To Do tenant variable or callback cannot repair a Microsoft Graph 401 by itself. Microsoft sign-in and actual To Do Graph authorization are separate checks: the registered application must itself permit personal Microsoft accounts and grant delegated Tasks.ReadWrite.
Microsoft To Do uses a separately configured MICROSOFT_TODO_CLIENT_ID and MICROSOFT_TODO_CLIENT_SECRET when provided. They must form a complete pair. If both are empty, the pre-existing Tools Microsoft profile credential pair remains the compatibility fallback. The Copilot profile and organizations tenant are not modified.
The web and Android To Do status API report the effective tenant common. A config_sync_needed diagnostic indicates that stored application settings differ from the environment; stored_tenant_differs detects an older saved GUID. No secret values are exposed. Status requests, authorization starts and scheduled synchronization never automatically rewrite global app configuration.
If the integration reports a mismatch between saved application settings and the current configuration, contact the Tools administrator. Check the app's Supported account types in Microsoft Entra before reconnecting: a work/school-only registration cannot issue suitable personal-account permissions merely because the URL now uses common.
The shared Microsoft app is configured at host/admin level (typically through environment values). The user-facing To Do page is intentionally per-user and focuses on connecting/disconnecting each user's own Microsoft account.
If you want to reuse one Entra app across both Copilot and Microsoft To Do, the config now also accepts shared fallback aliases:
ENTRA_TENANT_ID=
ENTRA_CLIENT_ID=
ENTRA_CLIENT_SECRET=
For personal To Do, MICROSOFT_TODO_* credentials take priority as a complete pair. When both are empty, the existing Tools Microsoft profile credentials are the compatibility fallback; To Do never inherits Copilot's organizational tenant.
Preferred shared Microsoft environment values:
MICROSOFT_TODO_TENANT=common
MICROSOFT_PROFILE_TOOLS_CLIENT_ID=
MICROSOFT_PROFILE_TOOLS_CLIENT_SECRET=
MICROSOFT_REDIRECT_URI=
MICROSOFT_DEFAULT_SCOPES="offline_access openid profile User.Read Tasks.ReadWrite"
Legacy Microsoft To Do-specific aliases are still accepted too:
MICROSOFT_TODO_TENANT=common
MICROSOFT_TODO_CLIENT_ID=
MICROSOFT_TODO_CLIENT_SECRET=
MICROSOFT_TODO_REDIRECT_URI=
MICROSOFT_TODO_DEFAULT_SCOPES="offline_access openid profile User.Read Tasks.ReadWrite"
The callback URL for the current environment is shown on the web page and is also available via the route:
/oauth/microsoft/callbackThe web page now also shows a direct clickable auth-start link for browser testing/copying when the platform app is complete. That link uses:
/oauth/microsoft/start-linkoauth.microsoft.start/oauth/microsoft/startPOSTauth:weboauth.microsoft.start_link/oauth/microsoft/start-linkGETauth:webThis route exists so the Microsoft To Do integration page can show one normal clickable shared Microsoft auth link in addition to the POST form button. Each visit creates a fresh signed OAuth state and then redirects directly to Microsoft.
oauth.microsoft.callback/oauth/microsoft/callbackGETThe callback can now still finish the connection even if the browser no longer has an active Tools web session, as long as the signed Microsoft state matches the original user/transaction. When that happens, Tools now recreates the matching web session from the signed state before it redirects back to the Microsoft To Do integration page, so the user does not land on a fresh login wall after a successful callback.
GET /api/microsoft/auth/statusReturns the generic Microsoft auth/platform-app status for the authenticated user.
Intended use:
The response can include additive fields such as:
provider="microsoft"platform="microsoft_graph"auth_readycallback_urlcallback_legacy_urlsupported_integrations[]planned_integrations[]platform_app.supports_personal_accountsplatform_app.supports_work_or_school_accountsplatform_app.account_support_hintThese endpoints accept either:
POST /api/account/login.GET /api/microsoft-todo/statusReturns connection state, account display name, local counts, and whether the platform app is available.
The response now also includes additive platform_app diagnostics with non-secret configuration metadata such as:
managed_viaenv_managedclient_id_configuredclient_secret_configuredtenantredirect_urirecommended_callback_urlrecommended_callback_legacy_urlrecommended_start_link_urldefault_scopesaccount_support_hintsupports_personal_accountssupports_work_or_school_accountsmissing_fields[]status_messageExample response:
{
"ok": true,
"connected": true,
"app_available": true,
"connect_web_url": "/settings/integrations/microsoft-todo",
"connect_api_url": "/api/microsoft/oauth/start",
"connect_api_legacy_url": "/api/microsoft-todo/oauth/start",
"connection": {
"status": "connected",
"status_label": "Connected",
"status_description": "Connected to Microsoft account \"user@example.com\".",
"provider_account_name": "user@example.com",
"expires_at": "2026-03-30T13:15:00+00:00",
"last_connected_at": "2026-03-30T12:58:00+00:00"
},
"counts": {
"lists": 4,
"tasks": 22,
"dirty_lists": 0,
"dirty_tasks": 1
}
}
GET /api/microsoft/oauth/startBuilds one Microsoft authorization URL for the currently authenticated user.
Compatibility note:
GET /api/microsoft-todo/oauth/start path still works/oauth/microsoft/callbackIntended use:
Example response:
{
"ok": true,
"authorization_url": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?...",
"callback_url": "https://tools.tornevall.com/oauth/microsoft/callback",
"connect_web_url": "/settings/integrations/microsoft-todo",
"connect_api_url": "/api/microsoft/oauth/start",
"connect_api_legacy_url": "/api/microsoft-todo/oauth/start"
}
POST /api/microsoft-todo/syncRuns an immediate push/pull synchronization.
Example response:
{
"ok": true,
"message": "Microsoft To Do sync complete.",
"sync": {
"ok": true,
"lists_pushed": 1,
"tasks_pushed": 2,
"lists_pulled": 4,
"tasks_pulled": 22,
"errors": []
}
}
GET /api/microsoft-todo/listsReturns local mirrored lists. By default tasks are included.
Optional query parameters:
include_tasks=1 (default)include_tasks=0POST /api/microsoft-todo/listsCreate a list and sync it to Microsoft To Do.
Request body:
{
"display_name": "Work"
}
PATCH /api/microsoft-todo/lists/{listId}Rename a synced list.
Request body:
{
"display_name": "Work Projects"
}
DELETE /api/microsoft-todo/lists/{listId}Delete the list both locally and remotely.
GET /api/microsoft-todo/lists/{listId}/tasksReturns the tasks for one local mirrored list.
POST /api/microsoft-todo/lists/{listId}/tasksCreate a task in the given list.
Request body:
{
"title": "Follow up with customer",
"body_text": "Remember to attach the report.",
"importance": "high",
"status": "notStarted",
"due_at": "2026-04-02 09:00:00",
"reminder_at": "2026-04-02 08:30:00"
}
PATCH /api/microsoft-todo/tasks/{taskId}Update a task.
Request body:
{
"title": "Follow up with customer",
"body_text": "Report sent, waiting for reply.",
"importance": "normal",
"status": "inProgress",
"due_at": "2026-04-03 09:00:00",
"reminder_at": null
}
DELETE /api/microsoft-todo/tasks/{taskId}Delete a task both locally and remotely.
The synchronization model is intentionally simple and predictable:
A scheduled sync also runs automatically every 15 minutes through:
php artisan microsoft-todo:sync/settings/integrations/microsoft-todo.GET /api/microsoft/oauth/start and then open that URL in a browser surface. The older GET /api/microsoft-todo/oauth/start path remains available as a compatibility alias.GET /api/microsoft/auth/status instead of starting from the To Do-specific status endpoint.common or consumers and make sure the Azure app registration itself allows personal accounts (MSA).organizations (or a specific tenant GUID/domain). The status/auth diagnostics now also report whether the current tenant mode supports work/school accounts.The same Microsoft To Do account can be used through the ToolsAPI /mcp endpoint. The user grants mcp.connect and mcp.todo to the MCP client; this is separate from authorizing the Microsoft account with Graph Tasks.ReadWrite.
The MCP client can list lists and tasks, create a new list using toolsapi.todo_create_list, create single or batched tasks (1-20 per call), update and complete tasks. Creating a list requires display_name (1-190 characters); successful responses include a local list ID and deferred sync status. Use that ID to put tasks in the newly created list. Without an explicit list_id, task tools use the user's configured default list instead.
To Do changes are first queued locally in ToolsAPI; a successful MCP call does not mean Microsoft Graph has synchronized them. Open Microsoft To Do or the task workspace to run/check sync. ChatGPT's write-permission settings and the server's owner checks still apply.
For a combined To Do and Google Calendar ChatGPT connection, configure Base scopes mcp.connect, mcp.todo, and mcp.calendar. A Refresh fetches newly deployed tools; it cannot silently grant extra OAuth scopes. Adding scopes requires new authorization and explicit user approval; Google Calendar also requires its own account connection in ToolsAPI. If the client exposes only toolsapi.connection_status, inspect missing_scopes and the specific client's authorization under /me/mcp. Do not revoke other clients or Microsoft account permissions to fix a stale ChatGPT grant.
See the full MCP reference for JSON examples, all tools, security scopes, sync statuses, and reconnection guidance.