From 560f2f262dc31ae0837b01e03735324bf259337d Mon Sep 17 00:00:00 2001 From: Marcello Alarcon Date: Sat, 23 May 2026 18:54:30 -0300 Subject: [PATCH] fix(integrations): update Todoist endpoint to api/v1 The /rest/v2/ endpoint is deprecated and returns errors. Todoist's current REST API lives at /api/v1/. Update the connectivity test to hit the correct URL so the integration health check works. --- dashboard/backend/routes/integrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/backend/routes/integrations.py b/dashboard/backend/routes/integrations.py index 972cb049..3111eb4c 100644 --- a/dashboard/backend/routes/integrations.py +++ b/dashboard/backend/routes/integrations.py @@ -860,7 +860,7 @@ def fail(error: str) -> "tuple[object, int]": return fail("TODOIST_API_TOKEN não configurado") try: r = http.get( - "https://api.todoist.com/rest/v2/projects", + "https://api.todoist.com/api/v1/projects", headers={"Authorization": f"Bearer {token}"}, timeout=8, )