Lodol Docs

Todoist

API actions for the Todoist integration.

Todoist

Create and manage tasks, comments, and projects in Todoist.


Add a task comment

Add a comment to a Todoist task.

Parameters

ParameterTypeRequiredDescription
task_idstringYesTask ID to comment on.
contentstringYesComment text.

Response

{
  "content": "Don't forget to get organic milk",
  "id": "123456789",
  "task_id": "2995104339"
}

Close a task

Close a Todoist task.

Parameters

ParameterTypeRequiredDescription
task_idstringYesTask ID to close.

Response

{
  "status": "closed"
}

Create a task

Create a new Todoist task, with an optional project and due date.

Parameters

ParameterTypeRequiredDescription
contentstringYesThe task text, for example, Buy milk.
project_idstringNoThe ID of the project to add the task to.
due_stringstringNoWhen the task is due, in plain words, for example, tomorrow or next Monday at 3pm.

Response

{
  "content": "Buy milk",
  "due": {
    "date": "2024-01-20",
    "string": "tomorrow"
  },
  "id": "2995104339",
  "project_id": "2203306141"
}

List projects

List all of your Todoist projects.

Response

[
  {
    "color": "blue",
    "id": "2203306141",
    "name": "Shopping"
  }
]

Reopen a task

Reopen a completed Todoist task.

Parameters

ParameterTypeRequiredDescription
task_idstringYesTask ID to reopen.

Response

{
  "status": "reopened"
}

On this page