Skip to main content

Todoist SDK

This is the official TypeScript SDK for the Todoist API.

Installation

npm install @doist/todoist-sdk

Basic Usage

Here's how to initialize the API client and fetch tasks:

import { TodoistApi } from '@doist/todoist-sdk'

const api = new TodoistApi('YOUR_API_TOKEN')

api.getTask('6X4Vw2Hfmg73Q2XR')
.then((task) => console.log(task))
.catch((error) => console.log(error))

Explore all available methods in TodoistApi.