Back to Autogpt

Todoist Blocks

docs/integrations/block-integrations/todoist.md

0.6.4416.4 KB
Original Source

Todoist Blocks

Todoist Create Label

What it is

A block that creates a new label in Todoist.

What it does

Creates a new label in Todoist with specified name, order, color and favorite status.

How it works

It takes label details as input, connects to Todoist API, creates the label and returns the created label's details.

Inputs

InputDescription
CredentialsTodoist API credentials
NameName of the label
OrderOptional label order
ColorOptional color of the label icon
Is FavoriteWhether label is marked as favorite

Outputs

OutputDescription
IDID of the created label
NameName of the label
ColorColor of the label
OrderLabel order
Is FavoriteFavorite status
ErrorError message if request failed

Possible use case

Creating new labels to organize and categorize tasks in Todoist.


Todoist List Labels

What it is

A block that retrieves all personal labels from Todoist.

What it does

Fetches all personal labels from the user's Todoist account.

How it works

Connects to Todoist API using provided credentials and retrieves all labels.

Inputs

InputDescription
CredentialsTodoist API credentials

Outputs

OutputDescription
LabelsList of complete label data
Label IDsList of label IDs
Label NamesList of label names
ErrorError message if request failed

Possible use case

Getting an overview of all labels to organize tasks or find specific labels.


Todoist Get Label

What it is

A block that retrieves a specific label by ID.

What it does

Fetches details of a specific label using its ID.

How it works

Uses the label ID to retrieve label details from Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Label IDID of label to retrieve

Outputs

OutputDescription
IDLabel ID
NameLabel name
ColorLabel color
OrderLabel order
Is FavoriteFavorite status
ErrorError message if request failed

Possible use case

Looking up details of a specific label for editing or verification.


Todoist Create Task

What it is

A block that creates a new task in Todoist.

What it does

Creates a new task with specified content, description, project assignment and other optional parameters.

How it works

Takes task details and creates a new task via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
ContentTask content
DescriptionOptional task description
Project IDOptional project to add task to
Section IDOptional section to add task to
Parent IDOptional parent task ID
OrderOptional task order
LabelsOptional task labels
PriorityOptional priority (1-4)
Due DateOptional due date
Deadline DateOptional deadline date
Assignee IDOptional assignee
Duration UnitOptional duration unit
DurationOptional duration amount

Outputs

OutputDescription
IDCreated task ID
URLTask URL
Complete DataComplete task data
ErrorError message if request failed

Possible use case

Creating new tasks with full customization of parameters.


Todoist Get Tasks

What it is

A block that retrieves active tasks from Todoist.

What it does

Fetches tasks based on optional filters like project, section, label etc.

How it works

Queries Todoist API with provided filters to get matching tasks.

Inputs

InputDescription
CredentialsTodoist API credentials
Project IDOptional filter by project
Section IDOptional filter by section
LabelOptional filter by label
FilterOptional custom filter string
LangOptional filter language
IDsOptional specific task IDs

Outputs

OutputDescription
IDsList of task IDs
URLsList of task URLs
Complete DataComplete task data
ErrorError message if request failed

Possible use case

Retrieving tasks matching specific criteria for review or processing.


Todoist Update Task

What it is

A block that updates an existing task.

What it does

Updates specified fields of an existing task.

How it works

Takes task ID and updated fields, applies changes via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Task IDID of task to update
ContentNew task content
DescriptionNew description
Project IDNew project ID
Section IDNew section ID
Parent IDNew parent task ID
OrderNew order
LabelsNew labels
PriorityNew priority
Due DateNew due date
Deadline DateNew deadline date
Assignee IDNew assignee
Duration UnitNew duration unit
DurationNew duration

Outputs

OutputDescription
SuccessWhether update succeeded
ErrorError message if failed

Possible use case

Modifying task details like due dates, priority etc.


Todoist Close Task

What it is

A block that completes/closes a task.

What it does

Marks a task as complete in Todoist.

How it works

Uses task ID to mark it complete via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Task IDID of task to close

Outputs

OutputDescription
SuccessWhether task was closed
ErrorError message if failed

Possible use case

Marking tasks as done in automated workflows.


Todoist Reopen Task

What it is

A block that reopens a completed task.

What it does

Marks a completed task as active again.

How it works

Uses task ID to reactivate via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Task IDID of task to reopen

Outputs

OutputDescription
SuccessWhether task was reopened
ErrorError message if failed

Possible use case

Reactivating tasks that were closed accidentally or need to be repeated.


Todoist Delete Task

What it is

A block that permanently deletes a task.

What it does

Removes a task completely from Todoist.

How it works

Uses task ID to delete via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Task IDID of task to delete

Outputs

OutputDescription
SuccessWhether deletion succeeded
ErrorError message if failed

Possible use case

Removing unwanted or obsolete tasks from the system.


Todoist List Projects

What it is

A block that retrieves all projects from Todoist.

What it does

Fetches all projects and their details from a user's Todoist account.

How it works

Connects to Todoist API using provided credentials and retrieves all projects.

Inputs

InputDescription
CredentialsTodoist API credentials

Outputs

OutputDescription
Names ListList of project names
IDs ListList of project IDs
URL ListList of project URLs
Complete DataComplete project data
ErrorError message if request failed

Possible use case

Getting an overview of all projects for organization or automation.


Todoist Create Project

What it is

A block that creates a new project in Todoist.

What it does

Creates a new project with specified name, parent project, color and other settings.

How it works

Takes project details and creates via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
NameName of the project
Parent IDOptional parent project ID
ColorOptional color of project icon
Is FavoriteWhether project is favorite
View StyleDisplay style (list/board)

Outputs

OutputDescription
SuccessWhether creation succeeded
ErrorError message if failed

Possible use case

Creating new projects programmatically for workflow automation.


Todoist Get Project

What it is

A block that retrieves details for a specific project.

What it does

Fetches complete details of a single project by ID.

How it works

Uses project ID to retrieve details via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Project IDID of project to get

Outputs

OutputDescription
Project IDID of the project
Project NameName of the project
Project URLURL of the project
Complete DataComplete project data
ErrorError message if failed

Possible use case

Looking up project details for verification or editing.


Todoist Update Project

What it is

A block that updates an existing project.

What it does

Updates specified fields of an existing project.

How it works

Takes project ID and updated fields, applies via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Project IDID of project to update
NameNew project name
ColorNew color for icon
Is FavoriteNew favorite status
View StyleNew display style

Outputs

OutputDescription
SuccessWhether update succeeded
ErrorError message if failed

Possible use case

Modifying project settings or reorganizing projects.


Todoist Delete Project

What it is

A block that deletes a project and its contents.

What it does

Permanently removes a project including sections and tasks.

How it works

Uses project ID to delete via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Project IDID of project to delete

Outputs

OutputDescription
SuccessWhether deletion succeeded
ErrorError message if failed

Possible use case

Removing completed or obsolete projects.


Todoist List Collaborators

What it is

A block that retrieves collaborators on a project.

What it does

Fetches all collaborators and their details for a specific project.

How it works

Uses project ID to get collaborator list via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Project IDID of project to check

Outputs

OutputDescription
Collaborator IDsList of collaborator IDs
Collaborator NamesList of collaborator names
Collaborator EmailsList of collaborator emails
Complete DataComplete collaborator data
ErrorError message if failed

Possible use case

Managing project sharing and collaboration.


Todoist List Sections

What it is

A block that retrieves sections from Todoist.

What it does

Fetches all sections, optionally filtered by project.

How it works

Connects to Todoist API to retrieve sections list.

Inputs

InputDescription
CredentialsTodoist API credentials
Project IDOptional project filter

Outputs

OutputDescription
Names ListList of section names
IDs ListList of section IDs
Complete DataComplete section data
ErrorError message if failed

Possible use case

Getting section information for task organization.


Todoist Get Section

What it is

A block that retrieves details for a specific section.

What it does

Fetches complete details of a single section by ID.

How it works

Uses section ID to retrieve details via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Section IDID of section to get

Outputs

OutputDescription
IDSection ID
Project IDParent project ID
OrderSection order
NameSection name
ErrorError message if failed

Possible use case

Looking up section details for task management.


Todoist Delete Section

What it is

A block that deletes a section and its tasks.

What it does

Permanently removes a section including all tasks.

How it works

Uses section ID to delete via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Section IDID of section to delete

Outputs

OutputDescription
SuccessWhether deletion succeeded
ErrorError message if failed

Possible use case

Removing unused sections or reorganizing projects.


Todoist Create Comment

What it is

A block that creates a new comment on a Todoist task or project.

What it does

Creates a comment with specified content on either a task or project.

How it works

Takes comment content and task/project ID, creates comment via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
ContentComment content
ID TypeTask ID or Project ID to comment on
AttachmentOptional file attachment

Outputs

OutputDescription
IDID of created comment
ContentComment content
Posted AtComment timestamp
Task IDAssociated task ID
Project IDAssociated project ID
ErrorError message if request failed

Possible use case

Adding notes and comments to tasks or projects automatically.


Todoist Get Comments

What it is

A block that retrieves all comments for a task or project.

What it does

Fetches all comments associated with a specific task or project.

How it works

Uses task/project ID to get comments list via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
ID TypeTask ID or Project ID to get comments for

Outputs

OutputDescription
CommentsList of comments
ErrorError message if request failed

Possible use case

Reviewing comment history on tasks or projects.


Todoist Get Comment

What it is

A block that retrieves a specific comment by ID.

What it does

Fetches details of a single comment using its ID.

How it works

Uses comment ID to retrieve details via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Comment IDID of comment to retrieve

Outputs

OutputDescription
ContentComment content
IDComment ID
Posted AtComment timestamp
Project IDAssociated project ID
Task IDAssociated task ID
AttachmentOptional file attachment
ErrorError message if request failed

Possible use case

Looking up specific comment details for reference.


Todoist Update Comment

What it is

A block that updates an existing comment.

What it does

Updates the content of a specific comment.

How it works

Takes comment ID and new content, updates via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Comment IDID of comment to update
ContentNew content for the comment

Outputs

OutputDescription
SuccessWhether update succeeded
ErrorError message if request failed

Possible use case

Modifying existing comments to fix errors or update information.


Todoist Delete Comment

What it is

A block that deletes a comment.

What it does

Permanently removes a comment from a task or project.

How it works

Uses comment ID to delete via Todoist API.

Inputs

InputDescription
CredentialsTodoist API credentials
Comment IDID of comment to delete

Outputs

OutputDescription
SuccessWhether deletion succeeded
ErrorError message if request failed

Possible use case

Removing outdated or incorrect comments from tasks/projects.