Skip to content
Back to skills

889 Completed Tasks D9f35a42

ASecurity

The `td completed` command is the primary way to retrieve completed tasks.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsbashapi

Works with

  • cursor
  • cli
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 889-completed-tasks_d9f35a42 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 889 Completed Tasks D9f35a42?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 889 Completed Tasks D9f35a42
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-889-completed-tasks-d9f35a42/badge)](https://www.skillsdirectory.com/skills/tools-only-889-completed-tasks-d9f35a42)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Retrieving Completed Tasks

The `td completed` command is the primary way to retrieve completed tasks.

## CLI Usage

### Basic Usage

```bash
td completed                    # Today's completed tasks
td completed --json             # JSON output
td completed --all --json       # All completed (no limit)
```

### Date Range

```bash
td completed --since 2024-01-01 --until 2024-01-31
td completed --since 2024-01-01 --json
```

### Filter by Project

```bash
td completed --project "Work" --json
```

### Options

- `--since <date>` - Start date (YYYY-MM-DD), default: today
- `--until <date>` - End date (YYYY-MM-DD), default: tomorrow
- `--project <name>` - Filter by project name
- `--limit <n>` - Limit number of results (default: 300)
- `--all` - Fetch all results (no limit)
- `--json` - Output as JSON
- `--ndjson` - Output as newline-delimited JSON
- `--full` - Include all fields in JSON output

## Alternative: Direct API Access

If you need more control or the CLI doesn't provide the required functionality, you can use the API directly.

### API v1 Endpoints

**By Completion Date:**
```bash
curl -s -H "Authorization: Bearer $TODOIST_API_TOKEN" \
  "https://api.todoist.com/api/v1/tasks/completed/by_completion_date?since=2024-01-01T00:00:00Z&until=2024-01-31T23:59:59Z"
```

**By Due Date:**
```bash
curl -s -H "Authorization: Bearer $TODOIST_API_TOKEN" \
  "https://api.todoist.com/api/v1/tasks/completed/by_due_date?since=2024-01-01T00:00:00Z"
```

### API Parameters

- `since` - Start date (ISO 8601 format)
- `until` - End date (ISO 8601 format)
- `project_id` - Filter by project ID
- `limit` - Results per page
- `cursor` - Pagination cursor

### Response Structure

Completed task objects include:

```json
{
  "id": "123456789",
  "content": "Task content",
  "project_id": "987654321",
  "completed_at": "2024-06-15T14:30:00Z",
  "meta_data": null
}
```

## Notes

- Completed tasks are stored in history and may have limited retention based on user plan
- Use `td task uncomplete id:xxx` to reopen a completed task
- Recurring tasks create new instances when completed; the original remains in history

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…