Todoist

Create, update, and complete tasks in Todoist.

ProductivityAPI key5 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (5)
  4. create_task
  5. find_task
  6. update_task
  7. custom_api_call
  8. mark_task_completed
  9. Details

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.

Workflow
// 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);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "todoist",
    "piece_action": "create_task",
    "input": {
      "content": "<content>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
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

InputTypeDescription
project_idoptionalid (picked from your account)Task project ID. If not set, task is put to user's Inbox.
contentrequiredlong textThe task's content. It may contain some markdown-formatted text and hyperlinks
descriptionoptionallong textA description for the task. This value may contain some markdown-formatted text and hyperlinks.
labelsoptionalarrayThe task's labels (a list of names that may represent either personal or shared labels)
priorityoptionalnumberTask priority from 1 (normal) to 4 (urgent)
due_dateoptionaltextCan 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_idoptionalid (picked from your account)Section

find_task

Find Task. Finds a task by name.

InputTypeDescription
namerequiredtextThe name of the task to search for.
project_idoptionalid (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.

InputTypeDescription
task_idrequiredtextTask ID
contentoptionallong textThe task's content. It may contain some markdown-formatted text and hyperlinks
descriptionoptionallong textA description for the task. This value may contain some markdown-formatted text and hyperlinks.
labelsoptionalarrayThe task's labels (a list of names that may represent either personal or shared labels)
priorityoptionalnumberTask priority from 1 (normal) to 4 (urgent)
due_dateoptionaltextCan 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

InputTypeDescription
urlrequiredobject (depends on other props)url
methodrequiredone of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD"Method
headersrequiredobjectAuthorization headers are injected automatically from your connection.
queryParamsrequiredobjectQuery Parameters
body_typeoptionalone of "none" | "json" | "form_data" | "raw"Body Type
bodyoptionalobject (depends on other props)Body
response_is_binaryoptionalbooleanEnable for files like PDFs, images, etc.
failsafeoptionalbooleanNo Error on Failure
timeoutoptionalnumberTimeout (in seconds)
followRedirectsoptionalbooleanFollow redirects

mark_task_completed

Mark Task as Completed. Marks a task as being completed.

InputTypeDescription
task_idrequiredtextTask ID

Details

Id
todoist
Category
Productivity
Tags
tasks, todo, personal-productivity, gtd
Package
@activepieces/piece-todoist@0.4.6
Runs
Through the integration runner