Todoist
Create, update, and complete tasks in Todoist.
On this page
Connect
Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.
- From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
- Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
- Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.
Call it from a workflow
step.ctx.integrations.invoke("todoist", action, input) resolves with the provider's answer and rejects when Todoist isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "todoist"} says whether yours can call it.
// workflows/notify.ts: call Todoist when a booking is confirmed
import { on } from "@appbricx/workflows";
export const tellTodoist = on.transition("booking", "status", "confirmed", async (_event, step) => {
// Recorded once: a retry doesn't send it twice. Rejects when Todoist isn't connected.
const output = await step.run("Todoist", () =>
step.ctx.integrations.invoke("todoist", "create_task", {
"content": "<content>"
}),
);
step.ctx.log("Todoist answered", output);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "todoist",
"piece_action": "create_task",
"input": {
"content": "<content>"
},
"env": "dev"
}
}curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/todoist/create_task" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"content":"<content>"}}'Actions
create_task
Create Task. Create task
| Input | Type | Description |
|---|---|---|
project_idoptional | id (picked from your account) | Task project ID. If not set, task is put to user's Inbox. |
contentrequired | long text | The task's content. It may contain some markdown-formatted text and hyperlinks |
descriptionoptional | long text | A description for the task. This value may contain some markdown-formatted text and hyperlinks. |
labelsoptional | array | The task's labels (a list of names that may represent either personal or shared labels) |
priorityoptional | number | Task priority from 1 (normal) to 4 (urgent) |
due_dateoptional | text | Can be either a specific date in YYYY-MM-DD format relative to user's timezone, a specific date and time in RFC3339 format, or a human defined date (e.g. 'next Monday') using local time |
section_idoptional | id (picked from your account) | Section |
find_task
Find Task. Finds a task by name.
| Input | Type | Description |
|---|---|---|
namerequired | text | The name of the task to search for. |
project_idoptional | id (picked from your account) | Search for tasks within the selected project. If left blank, then all projects are searched. |
update_task
Update Task. Updates an existing task.
| Input | Type | Description |
|---|---|---|
task_idrequired | text | Task ID |
contentoptional | long text | The task's content. It may contain some markdown-formatted text and hyperlinks |
descriptionoptional | long text | A description for the task. This value may contain some markdown-formatted text and hyperlinks. |
labelsoptional | array | The task's labels (a list of names that may represent either personal or shared labels) |
priorityoptional | number | Task priority from 1 (normal) to 4 (urgent) |
due_dateoptional | text | Can be either a specific date in YYYY-MM-DD format relative to user's timezone, a specific date and time in RFC3339 format, or a human defined date (e.g. 'next Monday') using local time |
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
mark_task_completed
Mark Task as Completed. Marks a task as being completed.
| Input | Type | Description |
|---|---|---|
task_idrequired | text | Task ID |
Details
- Id
todoist- Category
- Productivity
- Tags
- tasks, todo, personal-productivity, gtd
- Package
@activepieces/piece-todoist@0.4.6- Runs
- Through the integration runner