Todoist: Create, Update, Retrieve, and Delete Tasks

This workflow automates Todoist task management using the Todoist API, supporting task creation, retrieval, updates, and deletion. Key nodes include Webhook Trigger (starts via POST), Input Validation (ensures valid action), Action Router (directs to create_task/get_task/update_task/get_tasks/close_task/reopen_task/delete_task), Create Task Validation (checks content), Task ID Validation (verifies taskId), Sanitize Task Data (sets defaults for content/description/project/priority/dueDate/labels), Create/Get/Update/GetAll/Close/Reopen/Delete Todoist Task (performs operations), Success Response nodes (return results), and error nodes (General/Create Task/Task ID/Todoist API Error) for handling failures.\n\nSetup Requirements and Configuration: Install n8n from n8n.io for self-hosting or sign up at cloud.n8n.io for cloud setup. Follow prompts or create a cloud account. Obtain a Todoist API token from todoist.com: log in, go to 'Settings' > 'Integrations' > 'Developer,' and copy the API token. In n8n, import the JSON workflow. Configure Todoist nodes (Create/Get/Update/GetAll/Close/Reopen/Delete Task) with the API token under ‘Credentials’ > ‘Todoist API.’ Set Webhook Trigger path to ‘todoist-automation,’ configure for POST requests, and add header authentication with a secure key (e.g., ‘Authorization: Bearer your-key’). Ensure server resources support API calls. Verify token permissions for task operations.\n\nTesting and Deployment Steps: Test with Postman using a POST request to the Webhook URL. Example JSON: {'action': 'create_task', 'content': 'Buy groceries', 'dueDate': '2025-07-29'} or {'action': 'get_task', 'taskId': '123456789'} with an authentication header. Success responses return 200 with task data (id/content) or task list. Error nodes return 400 for invalid inputs (e.g., missing content/taskId) or 500 for API failures. Check logs for errors like ‘Invalid token’ or ‘Task not found,’ and verify the token or input format. Activate workflow in n8n. Validate output: ensure task ID/content match for create/get/update or status for close/reopen/delete. Debug errors using n8n logs for token issues, rate limits, or network problems.

$6.99

Workflow steps: 25

Integrated apps: webhook, if, switch

Todoist: Create, Update, Retrieve, and Delete Tasks preview