Todoist

Learn how to use Todoist with Composio

Overview

SLUG: TODOIST

Description

Todoist is a task management tool allowing users to create to-do lists, set deadlines, and collaborate on projects with reminders and cross-platform syncing

Authentication Details

client_id
stringRequired
client_secret
stringRequired
oauth_redirect_uri
stringDefaults to https://backend.composio.dev/api/v1/auth-apps/add
scopes
stringDefaults to data:read_write

Connecting to Todoist

Create an auth config

Use the dashboard to create an auth config for the Todoist toolkit. This allows you to connect multiple Todoist accounts to Composio for agents to use.

1

Select App

Navigate to Todoist.

2

Configure Auth Config Settings

Select among the supported auth schemes of and configure them here.

3

Create and Get auth config ID

Click “Create Todoist Auth Config”. After creation, copy the displayed ID starting with ac_. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database. This ID will be used to create connections to the toolkit for a given user.

Connect Your Account

Using OAuth2

1from composio import Composio
2
3# Replace these with your actual values
4todoist_auth_config_id = "ac_YOUR_TODOIST_CONFIG_ID" # Auth config ID created above
5user_id = "0000-0000-0000" # UUID from database/application
6
7composio = Composio()
8
9
10def authenticate_toolkit(user_id: str, auth_config_id: str):
11 connection_request = composio.connected_accounts.initiate(
12 user_id=user_id,
13 auth_config_id=auth_config_id,
14 )
15
16 print(
17 f"Visit this URL to authenticate Todoist: {connection_request.redirect_url}"
18 )
19
20 # This will wait for the auth flow to be completed
21 connection_request.wait_for_connection(timeout=15)
22 return connection_request.id
23
24
25connection_id = authenticate_toolkit(user_id, todoist_auth_config_id)
26
27# You can also verify the connection status using:
28connected_account = composio.connected_accounts.get(connection_id)
29print(f"Connected account: {connected_account}")

Tools

Executing tools

To prototype you can execute some tools to see the responses and working on the Todoist toolkit’s playground

For code examples, see the Tool calling guide and Provider examples.

Tool List

Tool Name: Add Workspace

Description

Tool to create a new workspace in Todoist. Use when you need a separate workspace to organize projects. Generates UUID and temp_id automatically.

Action Parameters

color
icon
name
stringRequired
temp_id
uuid

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Archive Project

Description

Tool to archive a Todoist project. Use when you need to hide a project for the user (personal projects) or all workspace users (workspace projects).

Action Parameters

project_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Bulk Create Tasks

Description

Create many tasks in one request using Todoist's Sync batching. Use when scaffolding projects or creating multiple tasks at once to reduce round trips.

Action Parameters

tasks
arrayRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Close Task

Description

This tool marks an existing task as completed in Todoist. It requires the `task_id` of the task to be closed.

Action Parameters

task_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create Comment

Description

Tool to create a new comment in Todoist. Use when you need to add a note to a specific task or project. IMPORTANT: You must provide EXACTLY ONE of task_id or project_id - these parameters are mutually exclusive. - To comment on a task, provide task_id (and omit project_id) - To comment on a project, provide project_id (and omit task_id) - Providing both task_id AND project_id will cause an error.

Action Parameters

content
stringRequired
project_id
task_id

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create Label

Description

Creates a new label.

Action Parameters

color
is_favorite
name
stringRequired
order

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create Project

Description

Creates a new project in Todoist.

Action Parameters

color
favorite
name
stringRequired
parent_id
view_style

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create Section

Description

Tool to create a new section within a specific project. Use when you need to group tasks under a new heading in a project.

Action Parameters

name
stringRequired
order
project_id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create task

Description

Create a new task in Todoist. This action allows users to create tasks with various parameters including content, due dates, priority, and more. The task can be created in a specific project, section, or as a subtask of another task.

Action Parameters

assignee_id
content
stringRequired
description
due_date
due_datetime
due_lang
due_string
duration
duration_unit
labels
order
parent_id
priority
project_id
section_id

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete Label

Description

Tool to delete a specific label. Use when you need to permanently remove an unused label by its ID after confirming it's not in use. Example: "Delete label with ID 2298391482".

Action Parameters

label_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete Personal Label

Description

Tool to delete a personal label. Use when you need to permanently remove a label, which will remove all instances of the label from associated tasks.

Action Parameters

label_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete Project

Description

Tool to delete a specific Todoist project. Use when you need to permanently remove a project by its ID.

Action Parameters

project_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete Section

Description

Tool to delete a specific section. Use when you need to permanently remove unused section by its ID after confirming it's not in use. Example: "Delete section with ID 82181370".

Action Parameters

section_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete Task

Description

Tool to delete a specific task from Todoist. Use when you need to permanently remove a task by its ID.

Action Parameters

task_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Active Task

Description

Tool to retrieve a single active (non-completed) task by ID. Use when you need to fetch details of a specific active task.

Action Parameters

task_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get All Collaborators

Description

Tool to retrieve all collaborators of a shared project. Use when you need to see who has access to a shared Todoist project.

Action Parameters

project_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get All Comments

Description

This tool retrieves all comments associated with a specific task or project in Todoist. You must provide exactly one of task_id or project_id (they are mutually exclusive - do not provide both). Returns a JSON array of comment objects with details such as id, posted_at, content, and attachment information.

Action Parameters

project_id
task_id

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get All Personal Labels

Description

Tool to retrieve all personal labels for the authenticated user. Use when you need to see all available labels in the user's account.

Action Parameters

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get all projects

Description

Get all projects from a user's Todoist account. This tool retrieves all projects from the authenticated user's Todoist account. The response includes details like project ID, name, color, parent project, sharing status, and other metadata for each project.

Action Parameters

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get All Sections

Description

Tool to retrieve all the sections for a specific project in Todoist. Use when you need to list section structure within a project after selecting the project.

Action Parameters

project_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get All Tasks

Description

Fetches all INCOMPLETE tasks from Todoist and returns their details. IMPORTANT LIMITATIONS: - This endpoint only returns active (incomplete) tasks - Cannot retrieve completed tasks - use a different endpoint for that - Filter queries using 'completed', '!completed', or 'completed after' will fail - Project/label references must use ACTUAL EXISTING names from the user's account - Arbitrary text in filters causes 400 errors - use 'search: keyword' for text search Common use cases: - Get all tasks: no filter - Get today's tasks: filter="today" - Get overdue tasks: filter="overdue" - Get tasks from specific project: filter="#ProjectName" (project must exist) - Get high priority tasks: filter="p1" - Search task content: filter="search: keyword"

Action Parameters

filter
ids
lang

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Backups

Description

Tool to list all available backup archives for the user. Use when you need to retrieve and review all existing backups.

Action Parameters

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Comment

Description

Tool to retrieve details of a specific comment by its comment_id. Use when you need full information (content, timestamp, or attachment) about a known comment.

Action Parameters

comment_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Completed Tasks By Completion Date

Description

Tool to retrieve completed tasks within a specified completion date window. Use when you need to fetch historical completed tasks for reporting, audits, or weekly summaries. The API restricts the completion-date range to approximately 3 months between since and until parameters.

Action Parameters

cursor
filter_lang
filter_query
limit
parent_id
project_id
section_id
since
stringRequired
until
stringRequired
workspace_id

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Label

Description

Tool to retrieve a specific label by its ID. Use when you need detailed info about a label after you have its ID.

Action Parameters

id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Personal Label

Description

Tool to retrieve a personal label by its ID. Use when you need to fetch details about a specific personal label.

Action Parameters

label_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Project

Description

Tool to retrieve a specific project by its ID. Use when you have a project ID and need its metadata before display or update.

Action Parameters

project_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Project Collaborators

Description

Tool to get all collaborators of a shared project. Use when you need to retrieve the list of people who have access to a specific shared project.

Action Parameters

project_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Section

Description

Tool to retrieve a specific section by its ID. Use when you have a section ID and need its metadata before display or update.

Action Parameters

section_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Shared Labels

Description

Tool to retrieve all shared labels across the user's workspace. Use when you need to see labels that are shared within the workspace.

Action Parameters

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Single Section

Description

Tool to retrieve a single section as a JSON object by its ID. Use when you have a section ID and need to fetch its details.

Action Parameters

section_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Special Backups

Description

Tool to list special backup archives for the user. Use when you need to retrieve all project backups for the authenticated user after creating or managing projects.

Action Parameters

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Task

Description

Tool to retrieve a specific task by its ID. Use when you need to fetch all details of an existing task before processing or display.

Action Parameters

task_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: List Archived Workspace Projects

Description

Tool to list all archived projects in a workspace. Use when you need to retrieve archived workspace projects with optional filters or pagination.

Action Parameters

limit
offset
project_ids
since
until

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: List Filters

Description

Tool to list all filters for the authenticated user. Use when you need to retrieve the current set of custom filters.

Action Parameters

sync_token
stringDefaults to *

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: List Pending Workspace Invitations

Description

Tool to list pending invitation emails in a workspace. Use when you need to check which email invites are still pending acceptance in a workspace.

Action Parameters

workspace_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Move Task

Description

Tool to move a task to another project, section, or parent task while preserving task identity and metadata. Use when you need to relocate a task without recreating it.

Action Parameters

parent_id
project_id
section_id
task_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Remove Shared Labels

Description

Tool to remove all instances of a shared label from tasks. Use when you need to remove a shared label created by a collaborator from your account.

Action Parameters

name
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Rename Shared Labels

Description

Tool to rename a shared label across the workspace. Use when you need to change the name of a shared label created by a collaborator.

Action Parameters

name
stringRequired
new_name
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Reopen Task

Description

Tool to reopen a completed task in Todoist. Use when you need to restore a previously completed task and its ancestors.

Action Parameters

task_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Unarchive Project

Description

Tool to unarchive a Todoist project. Use when you need to reactivate an archived project for the user (personal projects) or all workspace users (workspace projects).

Action Parameters

project_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update Comment

Description

Tool to update a specific comment's content. Use when you need to correct or clarify an existing comment after confirming its ID and the new text.

Action Parameters

comment_id
stringRequired
content
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update Label

Description

Tool to update a personal label's properties. Use when you need to modify a label's name, color, order, or favorite status.

Action Parameters

color
is_favorite
label_id
stringRequired
name
order

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update Personal Label

Description

Tool to update an existing personal label's properties. Use when you need to modify a label's name, color, order, or favorite status.

Action Parameters

color
is_favorite
label_id
stringRequired
name
order

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update Project

Description

Tool to update a project's properties including name, color, favorite status, and view style. Use when you need to modify project settings after reviewing its current configuration.

Action Parameters

color
is_favorite
name
project_id
stringRequired
view_style

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update Section

Description

Tool to update a specific section's name. Use when you need to rename a section after confirming its ID.

Action Parameters

name
stringRequired
section_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update Task

Description

Tool to update an existing task's properties. Use when you need to modify a task's details after confirming its ID and new values.

Action Parameters

assignee_id
content
description
due_date
due_datetime
due_lang
due_string
duration
duration_unit
labels
priority
task_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired