omi icon indicating copy to clipboard operation
omi copied to clipboard

Todoist task export still targets retired REST v2 endpoint

Open kaijakagi-sys opened this issue 2 months ago • 1 comments

The shared Todoist task-creation path in backend/utils/task_integrations_ops.py still posts to https://api.todoist.com/rest/v2/tasks. The HTTP export route delegates to this function, which is also documented as the auto-sync implementation.

Todoist's current API contract documents task creation at POST https://api.todoist.com/api/v1/tasks. On September 8, an unauthenticated GET of the old route returned HTTP 410 with:

This endpoint is deprecated. If you're using the API directly, please update your use case to rely on the new API endpoints, available under /api/v1/ prefixes.

The corresponding v1 GET returned HTTP 401 without authentication. These are public endpoint-retirement checks, not an authenticated task-creation or deployed Omi reproduction.

I also ran four offline checks using the unchanged production create_task_internal function and an injected fake HTTP client. All three response cases still request the retired v2 URL: a stubbed 410 produces api_error, while 200/201 controls propagate the task ID. A missing-token control makes no request. No live task was created, and no implementation or repository-preflight result is claimed.

Proposed focused scope:

  • Migrate Todoist task creation to the supported v1 route, preserving existing content, description, priority and date-only behavior.
  • Verify successful string-ID propagation and provider-error behavior against the v1 contract.
  • Add hermetic production-function regressions for the v1 POST URL/payload, successful response, provider rejection and missing-token behavior; update affected backend task-integration fixtures.
  • Run the relevant contribution checks before a PR. OAuth, time-of-day changes, other providers and general delivery retries remain out of scope.

Duplicate checks covered Todoist, the exact old URL, migration/deprecation terms and the shared source path. I reviewed all changed filenames in open #9084, #10646 and #8816. #10646 touches this function's provider error/identity handling but leaves the v2 URL unchanged; this proposal would coordinate with that work, not duplicate its improvements. No open endpoint-migration fix appeared in those checks.

@josancamon19, would you accept this narrow migration as a paid bounty under the contribution guide? Please confirm the cash reward and acceptance criteria before implementation. This is a proposed bounty, not an approved award.

kaijakagi-sys avatar Sep 08 '26 16:09 kaijakagi-sys

Implemented in PR #13166 — migrated Todoist task creation from the retired rest/v2/tasks (HTTP 410) to api/v1/tasks, payload unchanged (verified compatible with the current API docs).

Nofates avatar Sep 08 '26 17:09 Nofates