{
  "schemaVersion": "1.0",
  "item": {
    "slug": "todoist-api",
    "name": "Todoist",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/todoist-api",
    "canonicalUrl": "https://clawhub.ai/byungkyu/todoist-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/todoist-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=todoist-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/todoist-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/todoist-api",
    "agentPageUrl": "https://openagent3.xyz/skills/todoist-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/todoist-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/todoist-api/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Todoist",
        "body": "Access the Todoist API v1 with managed OAuth authentication. Manage tasks, projects, sections, labels, and comments."
      },
      {
        "title": "Quick Start",
        "body": "# List all tasks\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/todoist/api/v1/tasks')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/todoist/api/v1/{resource}\n\nThe gateway proxies requests to api.todoist.com/api/v1 and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your Todoist OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=todoist&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'todoist'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"todoist\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple Todoist connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/todoist/api/v1/tasks')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "Projects",
        "body": "List Projects\n\nGET /todoist/api/v1/projects\n\nResponse:\n\n{\n  \"results\": [\n    {\n      \"id\": \"6fwFRqmVCFvWVX5R\",\n      \"name\": \"Inbox\",\n      \"color\": \"charcoal\",\n      \"parent_id\": null,\n      \"child_order\": 0,\n      \"is_shared\": false,\n      \"is_favorite\": false,\n      \"inbox_project\": true,\n      \"view_style\": \"list\",\n      \"description\": \"\",\n      \"is_archived\": false\n    }\n  ],\n  \"next_cursor\": null\n}\n\nGet Project\n\nGET /todoist/api/v1/projects/{id}\n\nCreate Project\n\nPOST /todoist/api/v1/projects\nContent-Type: application/json\n\n{\n  \"name\": \"My Project\",\n  \"color\": \"blue\",\n  \"is_favorite\": true,\n  \"view_style\": \"board\"\n}\n\nParameters:\n\nname (required) - Project name\nparent_id - Parent project ID for nesting\ncolor - Project color (e.g., \"red\", \"blue\", \"green\")\nis_favorite - Boolean favorite status\nview_style - \"list\" or \"board\" (default: list)\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'name': 'My New Project', 'color': 'blue'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/todoist/api/v1/projects', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nUpdate Project\n\nPOST /todoist/api/v1/projects/{id}\nContent-Type: application/json\n\n{\n  \"name\": \"Updated Project Name\",\n  \"color\": \"red\"\n}\n\nDelete Project\n\nDELETE /todoist/api/v1/projects/{id}\n\nReturns 204 No Content on success.\n\nGet Project Collaborators\n\nGET /todoist/api/v1/projects/{id}/collaborators"
      },
      {
        "title": "Tasks",
        "body": "List Tasks\n\nGET /todoist/api/v1/tasks\n\nQuery Parameters:\n\nParameterTypeDescriptionproject_idstringFilter by projectsection_idstringFilter by sectionlabelstringFilter by label namefilterstringTodoist filter expressionidsstringComma-separated task IDs\n\nResponse:\n\n{\n  \"results\": [\n    {\n      \"id\": \"6fwhG9wMHr4wxgpR\",\n      \"content\": \"Buy groceries\",\n      \"description\": \"\",\n      \"project_id\": \"6fwFRqmVCFvWVX5R\",\n      \"section_id\": null,\n      \"parent_id\": null,\n      \"child_order\": 1,\n      \"priority\": 2,\n      \"checked\": false,\n      \"labels\": [],\n      \"due\": {\n        \"date\": \"2026-02-07T10:00:00\",\n        \"string\": \"tomorrow at 10am\",\n        \"lang\": \"en\",\n        \"is_recurring\": false\n      },\n      \"added_at\": \"2026-02-06T20:41:08.449320Z\"\n    }\n  ],\n  \"next_cursor\": null\n}\n\nGet Task\n\nGET /todoist/api/v1/tasks/{id}\n\nCreate Task\n\nPOST /todoist/api/v1/tasks\nContent-Type: application/json\n\n{\n  \"content\": \"Buy groceries\",\n  \"project_id\": \"2366834771\",\n  \"priority\": 2,\n  \"due_string\": \"tomorrow at 10am\",\n  \"labels\": [\"shopping\", \"errands\"]\n}\n\nRequired Fields:\n\ncontent - Task content/title\n\nOptional Fields:\n\ndescription - Task description\nproject_id - Project to add task to (defaults to Inbox)\nsection_id - Section within project\nparent_id - Parent task ID for subtasks\nlabels - Array of label names\npriority - 1 (normal) to 4 (urgent)\ndue_string - Natural language due date (\"tomorrow\", \"next Monday 3pm\")\ndue_date - ISO format YYYY-MM-DD\ndue_datetime - RFC3339 format with timezone\nassignee_id - User ID to assign task\nduration - Task duration (integer)\nduration_unit - \"minute\" or \"day\"\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\n    'content': 'Complete project report',\n    'priority': 4,\n    'due_string': 'tomorrow at 5pm',\n    'labels': ['work', 'urgent']\n}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/todoist/api/v1/tasks', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nUpdate Task\n\nPOST /todoist/api/v1/tasks/{id}\nContent-Type: application/json\n\n{\n  \"content\": \"Updated task content\",\n  \"priority\": 3\n}\n\nClose Task (Complete)\n\nPOST /todoist/api/v1/tasks/{id}/close\n\nReturns 204 No Content. For recurring tasks, this schedules the next occurrence.\n\nReopen Task\n\nPOST /todoist/api/v1/tasks/{id}/reopen\n\nReturns 204 No Content.\n\nDelete Task\n\nDELETE /todoist/api/v1/tasks/{id}\n\nReturns 204 No Content."
      },
      {
        "title": "Sections",
        "body": "List Sections\n\nGET /todoist/api/v1/sections\nGET /todoist/api/v1/sections?project_id={project_id}\n\nResponse:\n\n{\n  \"results\": [\n    {\n      \"id\": \"6g424m6CQm47v7mm\",\n      \"project_id\": \"6g424jv8X52hP7qF\",\n      \"section_order\": 1,\n      \"name\": \"To Do\",\n      \"added_at\": \"2026-02-20T22:25:04.203675Z\",\n      \"is_archived\": false,\n      \"is_collapsed\": false\n    }\n  ],\n  \"next_cursor\": null\n}\n\nGet Section\n\nGET /todoist/api/v1/sections/{id}\n\nCreate Section\n\nPOST /todoist/api/v1/sections\nContent-Type: application/json\n\n{\n  \"name\": \"In Progress\",\n  \"project_id\": \"2366834771\",\n  \"order\": 2\n}\n\nRequired Fields:\n\nname - Section name\nproject_id - Parent project ID\n\nUpdate Section\n\nPOST /todoist/api/v1/sections/{id}\nContent-Type: application/json\n\n{\n  \"name\": \"Updated Section Name\"\n}\n\nDelete Section\n\nDELETE /todoist/api/v1/sections/{id}\n\nReturns 204 No Content."
      },
      {
        "title": "Labels",
        "body": "List Labels\n\nGET /todoist/api/v1/labels\n\nResponse:\n\n{\n  \"results\": [\n    {\n      \"id\": \"2182980313\",\n      \"name\": \"urgent\",\n      \"color\": \"red\",\n      \"order\": 1,\n      \"is_favorite\": false\n    }\n  ],\n  \"next_cursor\": null\n}\n\nGet Label\n\nGET /todoist/api/v1/labels/{id}\n\nCreate Label\n\nPOST /todoist/api/v1/labels\nContent-Type: application/json\n\n{\n  \"name\": \"work\",\n  \"color\": \"blue\",\n  \"is_favorite\": true\n}\n\nParameters:\n\nname (required) - Label name\ncolor - Label color\norder - Sort order\nis_favorite - Boolean favorite status\n\nUpdate Label\n\nPOST /todoist/api/v1/labels/{id}\nContent-Type: application/json\n\n{\n  \"name\": \"updated-label\",\n  \"color\": \"green\"\n}\n\nDelete Label\n\nDELETE /todoist/api/v1/labels/{id}\n\nReturns 204 No Content."
      },
      {
        "title": "Comments",
        "body": "List Comments\n\nGET /todoist/api/v1/comments?task_id={task_id}\nGET /todoist/api/v1/comments?project_id={project_id}\n\nNote: Either task_id or project_id is required.\n\nResponse:\n\n{\n  \"results\": [\n    {\n      \"id\": \"6g424pWVXPpwW7hR\",\n      \"item_id\": \"6g424pQr2xfCcFr2\",\n      \"content\": \"This is a comment\",\n      \"posted_at\": \"2026-02-20T22:25:20.045703Z\",\n      \"posted_uid\": \"57402826\",\n      \"file_attachment\": null,\n      \"reactions\": null\n    }\n  ],\n  \"next_cursor\": null\n}\n\nGet Comment\n\nGET /todoist/api/v1/comments/{id}\n\nCreate Comment\n\nPOST /todoist/api/v1/comments\nContent-Type: application/json\n\n{\n  \"task_id\": \"9993408170\",\n  \"content\": \"Don't forget to check the budget\"\n}\n\nRequired Fields:\n\ncontent - Comment text\ntask_id OR project_id - Where to attach the comment\n\nUpdate Comment\n\nPOST /todoist/api/v1/comments/{id}\nContent-Type: application/json\n\n{\n  \"content\": \"Updated comment text\"\n}\n\nDelete Comment\n\nDELETE /todoist/api/v1/comments/{id}\n\nReturns 204 No Content."
      },
      {
        "title": "Priority Values",
        "body": "PriorityMeaning1Normal (default)2Medium3High4Urgent"
      },
      {
        "title": "Due Date Formats",
        "body": "Use ONE of these formats per request:\n\ndue_string - Natural language: \"tomorrow\", \"next Monday at 3pm\", \"every week\"\ndue_date - Date only: \"2026-02-15\"\ndue_datetime - Full datetime: \"2026-02-15T14:00:00Z\""
      },
      {
        "title": "JavaScript",
        "body": "// Create a task\nconst response = await fetch('https://gateway.maton.ai/todoist/api/v1/tasks', {\n  method: 'POST',\n  headers: {\n    'Authorization': `Bearer ${process.env.MATON_API_KEY}`,\n    'Content-Type': 'application/json'\n  },\n  body: JSON.stringify({\n    content: 'Review pull request',\n    priority: 3,\n    due_string: 'today at 5pm'\n  })\n});\nconst task = await response.json();"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\n# Create a task\nresponse = requests.post(\n    'https://gateway.maton.ai/todoist/api/v1/tasks',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    json={\n        'content': 'Review pull request',\n        'priority': 3,\n        'due_string': 'today at 5pm'\n    }\n)\ntask = response.json()"
      },
      {
        "title": "Notes",
        "body": "Task IDs and Project IDs are strings, not integers\nPriority 4 is the highest (urgent), priority 1 is normal\nUse only one due date format per request (due_string, due_date, or due_datetime)\nClosing a recurring task schedules the next occurrence\nThe Inbox project cannot be deleted\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments"
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning204Success (no content) - for close, reopen, delete operations400Invalid request or missing Todoist connection401Invalid or missing Maton API key404Resource not found429Rate limited4xx/5xxPassthrough error from Todoist API"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with todoist. For example:\n\nCorrect: https://gateway.maton.ai/todoist/api/v1/tasks\nIncorrect: https://gateway.maton.ai/api/v1/tasks"
      },
      {
        "title": "Resources",
        "body": "Todoist API v1 Documentation\nTodoist Filter Syntax\nTodoist OAuth Documentation\nMaton Community\nMaton Support"
      }
    ],
    "body": "Todoist\n\nAccess the Todoist API v1 with managed OAuth authentication. Manage tasks, projects, sections, labels, and comments.\n\nQuick Start\n# List all tasks\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/todoist/api/v1/tasks')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/todoist/api/v1/{resource}\n\n\nThe gateway proxies requests to api.todoist.com/api/v1 and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your Todoist OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=todoist&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'todoist'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"todoist\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSpecifying Connection\n\nIf you have multiple Todoist connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/todoist/api/v1/tasks')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\nAPI Reference\nProjects\nList Projects\nGET /todoist/api/v1/projects\n\n\nResponse:\n\n{\n  \"results\": [\n    {\n      \"id\": \"6fwFRqmVCFvWVX5R\",\n      \"name\": \"Inbox\",\n      \"color\": \"charcoal\",\n      \"parent_id\": null,\n      \"child_order\": 0,\n      \"is_shared\": false,\n      \"is_favorite\": false,\n      \"inbox_project\": true,\n      \"view_style\": \"list\",\n      \"description\": \"\",\n      \"is_archived\": false\n    }\n  ],\n  \"next_cursor\": null\n}\n\nGet Project\nGET /todoist/api/v1/projects/{id}\n\nCreate Project\nPOST /todoist/api/v1/projects\nContent-Type: application/json\n\n{\n  \"name\": \"My Project\",\n  \"color\": \"blue\",\n  \"is_favorite\": true,\n  \"view_style\": \"board\"\n}\n\n\nParameters:\n\nname (required) - Project name\nparent_id - Parent project ID for nesting\ncolor - Project color (e.g., \"red\", \"blue\", \"green\")\nis_favorite - Boolean favorite status\nview_style - \"list\" or \"board\" (default: list)\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'name': 'My New Project', 'color': 'blue'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/todoist/api/v1/projects', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nUpdate Project\nPOST /todoist/api/v1/projects/{id}\nContent-Type: application/json\n\n{\n  \"name\": \"Updated Project Name\",\n  \"color\": \"red\"\n}\n\nDelete Project\nDELETE /todoist/api/v1/projects/{id}\n\n\nReturns 204 No Content on success.\n\nGet Project Collaborators\nGET /todoist/api/v1/projects/{id}/collaborators\n\nTasks\nList Tasks\nGET /todoist/api/v1/tasks\n\n\nQuery Parameters:\n\nParameter\tType\tDescription\nproject_id\tstring\tFilter by project\nsection_id\tstring\tFilter by section\nlabel\tstring\tFilter by label name\nfilter\tstring\tTodoist filter expression\nids\tstring\tComma-separated task IDs\n\nResponse:\n\n{\n  \"results\": [\n    {\n      \"id\": \"6fwhG9wMHr4wxgpR\",\n      \"content\": \"Buy groceries\",\n      \"description\": \"\",\n      \"project_id\": \"6fwFRqmVCFvWVX5R\",\n      \"section_id\": null,\n      \"parent_id\": null,\n      \"child_order\": 1,\n      \"priority\": 2,\n      \"checked\": false,\n      \"labels\": [],\n      \"due\": {\n        \"date\": \"2026-02-07T10:00:00\",\n        \"string\": \"tomorrow at 10am\",\n        \"lang\": \"en\",\n        \"is_recurring\": false\n      },\n      \"added_at\": \"2026-02-06T20:41:08.449320Z\"\n    }\n  ],\n  \"next_cursor\": null\n}\n\nGet Task\nGET /todoist/api/v1/tasks/{id}\n\nCreate Task\nPOST /todoist/api/v1/tasks\nContent-Type: application/json\n\n{\n  \"content\": \"Buy groceries\",\n  \"project_id\": \"2366834771\",\n  \"priority\": 2,\n  \"due_string\": \"tomorrow at 10am\",\n  \"labels\": [\"shopping\", \"errands\"]\n}\n\n\nRequired Fields:\n\ncontent - Task content/title\n\nOptional Fields:\n\ndescription - Task description\nproject_id - Project to add task to (defaults to Inbox)\nsection_id - Section within project\nparent_id - Parent task ID for subtasks\nlabels - Array of label names\npriority - 1 (normal) to 4 (urgent)\ndue_string - Natural language due date (\"tomorrow\", \"next Monday 3pm\")\ndue_date - ISO format YYYY-MM-DD\ndue_datetime - RFC3339 format with timezone\nassignee_id - User ID to assign task\nduration - Task duration (integer)\nduration_unit - \"minute\" or \"day\"\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({\n    'content': 'Complete project report',\n    'priority': 4,\n    'due_string': 'tomorrow at 5pm',\n    'labels': ['work', 'urgent']\n}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/todoist/api/v1/tasks', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nUpdate Task\nPOST /todoist/api/v1/tasks/{id}\nContent-Type: application/json\n\n{\n  \"content\": \"Updated task content\",\n  \"priority\": 3\n}\n\nClose Task (Complete)\nPOST /todoist/api/v1/tasks/{id}/close\n\n\nReturns 204 No Content. For recurring tasks, this schedules the next occurrence.\n\nReopen Task\nPOST /todoist/api/v1/tasks/{id}/reopen\n\n\nReturns 204 No Content.\n\nDelete Task\nDELETE /todoist/api/v1/tasks/{id}\n\n\nReturns 204 No Content.\n\nSections\nList Sections\nGET /todoist/api/v1/sections\nGET /todoist/api/v1/sections?project_id={project_id}\n\n\nResponse:\n\n{\n  \"results\": [\n    {\n      \"id\": \"6g424m6CQm47v7mm\",\n      \"project_id\": \"6g424jv8X52hP7qF\",\n      \"section_order\": 1,\n      \"name\": \"To Do\",\n      \"added_at\": \"2026-02-20T22:25:04.203675Z\",\n      \"is_archived\": false,\n      \"is_collapsed\": false\n    }\n  ],\n  \"next_cursor\": null\n}\n\nGet Section\nGET /todoist/api/v1/sections/{id}\n\nCreate Section\nPOST /todoist/api/v1/sections\nContent-Type: application/json\n\n{\n  \"name\": \"In Progress\",\n  \"project_id\": \"2366834771\",\n  \"order\": 2\n}\n\n\nRequired Fields:\n\nname - Section name\nproject_id - Parent project ID\nUpdate Section\nPOST /todoist/api/v1/sections/{id}\nContent-Type: application/json\n\n{\n  \"name\": \"Updated Section Name\"\n}\n\nDelete Section\nDELETE /todoist/api/v1/sections/{id}\n\n\nReturns 204 No Content.\n\nLabels\nList Labels\nGET /todoist/api/v1/labels\n\n\nResponse:\n\n{\n  \"results\": [\n    {\n      \"id\": \"2182980313\",\n      \"name\": \"urgent\",\n      \"color\": \"red\",\n      \"order\": 1,\n      \"is_favorite\": false\n    }\n  ],\n  \"next_cursor\": null\n}\n\nGet Label\nGET /todoist/api/v1/labels/{id}\n\nCreate Label\nPOST /todoist/api/v1/labels\nContent-Type: application/json\n\n{\n  \"name\": \"work\",\n  \"color\": \"blue\",\n  \"is_favorite\": true\n}\n\n\nParameters:\n\nname (required) - Label name\ncolor - Label color\norder - Sort order\nis_favorite - Boolean favorite status\nUpdate Label\nPOST /todoist/api/v1/labels/{id}\nContent-Type: application/json\n\n{\n  \"name\": \"updated-label\",\n  \"color\": \"green\"\n}\n\nDelete Label\nDELETE /todoist/api/v1/labels/{id}\n\n\nReturns 204 No Content.\n\nComments\nList Comments\nGET /todoist/api/v1/comments?task_id={task_id}\nGET /todoist/api/v1/comments?project_id={project_id}\n\n\nNote: Either task_id or project_id is required.\n\nResponse:\n\n{\n  \"results\": [\n    {\n      \"id\": \"6g424pWVXPpwW7hR\",\n      \"item_id\": \"6g424pQr2xfCcFr2\",\n      \"content\": \"This is a comment\",\n      \"posted_at\": \"2026-02-20T22:25:20.045703Z\",\n      \"posted_uid\": \"57402826\",\n      \"file_attachment\": null,\n      \"reactions\": null\n    }\n  ],\n  \"next_cursor\": null\n}\n\nGet Comment\nGET /todoist/api/v1/comments/{id}\n\nCreate Comment\nPOST /todoist/api/v1/comments\nContent-Type: application/json\n\n{\n  \"task_id\": \"9993408170\",\n  \"content\": \"Don't forget to check the budget\"\n}\n\n\nRequired Fields:\n\ncontent - Comment text\ntask_id OR project_id - Where to attach the comment\nUpdate Comment\nPOST /todoist/api/v1/comments/{id}\nContent-Type: application/json\n\n{\n  \"content\": \"Updated comment text\"\n}\n\nDelete Comment\nDELETE /todoist/api/v1/comments/{id}\n\n\nReturns 204 No Content.\n\nPriority Values\nPriority\tMeaning\n1\tNormal (default)\n2\tMedium\n3\tHigh\n4\tUrgent\nDue Date Formats\n\nUse ONE of these formats per request:\n\ndue_string - Natural language: \"tomorrow\", \"next Monday at 3pm\", \"every week\"\ndue_date - Date only: \"2026-02-15\"\ndue_datetime - Full datetime: \"2026-02-15T14:00:00Z\"\nCode Examples\nJavaScript\n// Create a task\nconst response = await fetch('https://gateway.maton.ai/todoist/api/v1/tasks', {\n  method: 'POST',\n  headers: {\n    'Authorization': `Bearer ${process.env.MATON_API_KEY}`,\n    'Content-Type': 'application/json'\n  },\n  body: JSON.stringify({\n    content: 'Review pull request',\n    priority: 3,\n    due_string: 'today at 5pm'\n  })\n});\nconst task = await response.json();\n\nPython\nimport os\nimport requests\n\n# Create a task\nresponse = requests.post(\n    'https://gateway.maton.ai/todoist/api/v1/tasks',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    json={\n        'content': 'Review pull request',\n        'priority': 3,\n        'due_string': 'today at 5pm'\n    }\n)\ntask = response.json()\n\nNotes\nTask IDs and Project IDs are strings, not integers\nPriority 4 is the highest (urgent), priority 1 is normal\nUse only one due date format per request (due_string, due_date, or due_datetime)\nClosing a recurring task schedules the next occurrence\nThe Inbox project cannot be deleted\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments\nError Handling\nStatus\tMeaning\n204\tSuccess (no content) - for close, reopen, delete operations\n400\tInvalid request or missing Todoist connection\n401\tInvalid or missing Maton API key\n404\tResource not found\n429\tRate limited\n4xx/5xx\tPassthrough error from Todoist API\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with todoist. For example:\nCorrect: https://gateway.maton.ai/todoist/api/v1/tasks\nIncorrect: https://gateway.maton.ai/api/v1/tasks\nResources\nTodoist API v1 Documentation\nTodoist Filter Syntax\nTodoist OAuth Documentation\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/todoist-api",
    "publisherUrl": "https://clawhub.ai/byungkyu/todoist-api",
    "owner": "byungkyu",
    "version": "1.0.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/todoist-api",
    "downloadUrl": "https://openagent3.xyz/downloads/todoist-api",
    "agentUrl": "https://openagent3.xyz/skills/todoist-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/todoist-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/todoist-api/agent.md"
  }
}