Todoist
API actions for the Todoist integration.
Todoist
Create and manage Todoist tasks, comments, and projects with API tokens.
Add a task comment
Add a comment to a Todoist task
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | string | Yes | Task ID to comment on. |
content | string | Yes | Comment text. |
Response
{
"content": "Don't forget to get organic milk",
"id": "123456789",
"task_id": "2995104339"
}Close a task
Close a Todoist task by ID
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | string | Yes | Task ID to close. |
Response
{
"status": "closed"
}Create a task
Create a new Todoist task with optional project and due date
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
content | string | Yes | Task content. |
project_id | string | No | Project ID. |
due_string | string | No | Due date string. |
Response
{
"content": "Buy milk",
"due": {
"date": "2024-01-20",
"string": "tomorrow"
},
"id": "2995104339",
"project_id": "2203306141"
}List projects
Fetch all Todoist projects for the authenticated user
Response
[
{
"color": "blue",
"id": "2203306141",
"name": "Shopping"
}
]Reopen a task
Reopen a completed Todoist task
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | string | Yes | Task ID to reopen. |
Response
{
"status": "reopened"
}