Lodol Docs

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

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 by ID

Parameters

ParameterTypeRequiredDescription
task_idstringYesTask ID to close.

Response

{
  "status": "closed"
}

Create a task

Create a new Todoist task with optional project and due date

Parameters

ParameterTypeRequiredDescription
contentstringYesTask content.
project_idstringNoProject ID.
due_stringstringNoDue 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

ParameterTypeRequiredDescription
task_idstringYesTask ID to reopen.

Response

{
  "status": "reopened"
}

On this page