GetItDone Task occurrences API

The per-day ledger of a repeating task — one date-keyed row per day it is due, each completed or skipped independently (including past days and days finished early).

GitHub OpenAPI

Operations 2

GET /v1/tasks/{task_id}/occurrences List a task's occurrences #
PATCH /v1/tasks/{task_id}/occurrences/{occurrence_date} Complete or skip one day #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nowgetitdone-com:nowgetitdone-com-task-occurrences-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nowgetitdone-com-task-occurrences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GetItDone Task occurrences API
  version: 1.0.0
  description: 'The public GetItDone REST API — AI-native task management for people and agents. Authenticate with a `gid_` API key (or OAuth 2.1 access token) via `Authorization: Bearer`.'
  contact:
    name: GetItDone support
    url: https://nowgetitdone.com
    email: support@devino.ca
servers:
- url: https://app.nowgetitdone.com
  description: Production
security:
- bearerAuth: []
tags:
- name: Task occurrences
  x-displayName: Task occurrences
  description: The per-day ledger of a repeating task — one date-keyed row per day it is due, each completed or skipped independently (including past days and days finished early).
paths:
  /v1/tasks/{task_id}/occurrences:
    get:
      operationId: listTaskOccurrences
      summary: List a task's occurrences
      description: 'Cursor-paginated ledger of the days a repeating task is due, most recent day first. Filter with `status`, and with `starting_on` / `ending_on` for a calendar window (both inclusive, and both interpreted in the recurrence''s own timezone). Future days already exist inside the materialization horizon — that is what makes completing early possible. A task that does not repeat answers an empty page rather than 404. Every filter is baked into the cursor: reusing an `after` cursor with different filters answers 400 `validation_failed`.'
      tags:
      - Task occurrences
      security:
      - bearerAuth: []
      x-scopes:
      - tasks:read
      x-entitlement: public_api
      x-idempotent: false
      x-meter:
        metric: API_CALLS
        cost: 1
      parameters:
      - in: query
        name: limit
        schema:
          default: 25
          description: Maximum number of items to return (1-100).
          example: 25
          type: integer
          minimum: 1
          maximum: 100
          examples:
          - 25
        description: Maximum number of items to return (1-100).
      - in: query
        name: after
        schema:
          description: Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`.
          type: string
        description: Opaque cursor from a previous page's `next_cursor` — omit for the first page. Reusing a cursor with DIFFERENT query parameters (e.g. a different `limit`) answers 400 `validation_failed`.
      - in: query
        name: status
        schema:
          description: Only occurrences currently in this state.
          $ref: '#/components/schemas/TaskOccurrenceStatus'
        description: Only occurrences currently in this state.
      - in: query
        name: starting_on
        schema:
          description: Only occurrences on or after this calendar day (YYYY-MM-DD).
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
          example: '2026-08-06'
          examples:
          - '2026-08-06'
        description: Only occurrences on or after this calendar day (YYYY-MM-DD).
      - in: query
        name: ending_on
        schema:
          description: Only occurrences on or before this calendar day (YYYY-MM-DD).
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
          example: '2026-08-06'
          examples:
          - '2026-08-06'
        description: Only occurrences on or before this calendar day (YYYY-MM-DD).
      - in: path
        name: task_id
        schema:
          type: string
          pattern: ^(?:T-)?[0-9]{1,12}$
          description: Task short id, e.g. `T-123` (a bare `123` is also accepted on input).
          example: T-123
          examples:
          - T-123
        required: true
        description: Task short id, e.g. `T-123` (a bare `123` is also accepted on input).
      responses:
        '200':
          description: Page of occurrences.
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
            RateLimit-Policy:
              required: true
              description: IETF draft-11 structured-field policy list, burst window first, e.g. `"per-key-minute";q=120;w=60, "api-calls-period";q=50000;w=2592000`.
              schema:
                type: string
                description: IETF draft-11 structured-field policy list, burst window first, e.g. `"per-key-minute";q=120;w=60, "api-calls-period";q=50000;w=2592000`.
            RateLimit:
              required: true
              description: IETF draft-11 current state of the primary (burst) policy, e.g. `"per-key-minute";r=97;t=42`.
              schema:
                type: string
                description: IETF draft-11 current state of the primary (burst) policy, e.g. `"per-key-minute";r=97;t=42`.
            X-RateLimit-Limit:
              required: true
              description: Primary window request allowance (de-facto trio).
              schema:
                type: string
                description: Primary window request allowance (de-facto trio).
            X-RateLimit-Remaining:
              required: true
              description: Requests remaining in the primary window.
              schema:
                type: string
                description: Requests remaining in the primary window.
            X-RateLimit-Reset:
              required: true
              description: Unix epoch seconds at which the primary window resets.
              schema:
                type: string
                description: Unix epoch seconds at which the primary window resets.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskOccurrenceList'
        '400':
          description: Malformed request — `validation_failed` (see `errors`; a malformed `Idempotency-Key` header lands here too).
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Authenticated but denied — `insufficient_scope` or `feature_not_enabled`.
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: No such resource in this organization — `resource_not_found`.
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Over a limit — `rate_limited` (burst; retry after `Retry-After`) or `quota_exhausted` (billing-period allowance).
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: Unexpected server error — `internal_error`; quote `request_id` when reporting.
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/tasks/{task_id}/occurrences/{occurrence_date}:
    patch:
      operationId: setTaskOccurrenceStatus
      summary: Complete or skip one day
      description: Marks ONE day of a repeating task completed or skipped — the SAME shared operation the MCP `complete_task_occurrence` tool executes. The day may be in the PAST ("I brushed my teeth yesterday") or a scheduled FUTURE day finished early; neither breaks the chain, and neither touches any other day or the task's own `status`. Re-sending the state a day is already in is a no-op success, so retries are safe. A day the schedule does not produce (or a task that does not repeat) answers 404 `resource_not_found`.
      tags:
      - Task occurrences
      security:
      - bearerAuth: []
      x-scopes:
      - tasks:write
      x-entitlement: public_api
      x-idempotent: false
      x-meter:
        metric: API_CALLS
        cost: 1
      parameters:
      - in: path
        name: task_id
        schema:
          type: string
          pattern: ^(?:T-)?[0-9]{1,12}$
          description: Task short id, e.g. `T-123` (a bare `123` is also accepted on input).
          example: T-123
          examples:
          - T-123
        required: true
        description: Task short id, e.g. `T-123` (a bare `123` is also accepted on input).
      - in: path
        name: occurrence_date
        schema:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
          description: The calendar day the occurrence is for, as YYYY-MM-DD in the recurrence timezone.
          example: '2026-08-06'
          examples:
          - '2026-08-06'
        required: true
        description: The calendar day the occurrence is for, as YYYY-MM-DD in the recurrence timezone.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetTaskOccurrenceStatusBody'
      responses:
        '200':
          description: The updated occurrence.
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
            RateLimit-Policy:
              required: true
              description: IETF draft-11 structured-field policy list, burst window first, e.g. `"per-key-minute";q=120;w=60, "api-calls-period";q=50000;w=2592000`.
              schema:
                type: string
                description: IETF draft-11 structured-field policy list, burst window first, e.g. `"per-key-minute";q=120;w=60, "api-calls-period";q=50000;w=2592000`.
            RateLimit:
              required: true
              description: IETF draft-11 current state of the primary (burst) policy, e.g. `"per-key-minute";r=97;t=42`.
              schema:
                type: string
                description: IETF draft-11 current state of the primary (burst) policy, e.g. `"per-key-minute";r=97;t=42`.
            X-RateLimit-Limit:
              required: true
              description: Primary window request allowance (de-facto trio).
              schema:
                type: string
                description: Primary window request allowance (de-facto trio).
            X-RateLimit-Remaining:
              required: true
              description: Requests remaining in the primary window.
              schema:
                type: string
                description: Requests remaining in the primary window.
            X-RateLimit-Reset:
              required: true
              description: Unix epoch seconds at which the primary window resets.
              schema:
                type: string
                description: Unix epoch seconds at which the primary window resets.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskOccurrence'
        '400':
          description: Malformed request — `validation_failed` (see `errors`; a malformed `Idempotency-Key` header lands here too).
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Missing or invalid credentials — `missing_credentials`, `invalid_api_key` or `invalid_token`.
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Authenticated but denied — `insufficient_scope` or `feature_not_enabled`.
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: No such resource in this organization — `resource_not_found`.
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Over a limit — `rate_limited` (burst; retry after `Retry-After`) or `quota_exhausted` (billing-period allowance).
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: Unexpected server error — `internal_error`; quote `request_id` when reporting.
          headers:
            x-request-id:
              required: true
              description: Unique id for this request — present on EVERY response; quote it in support requests.
              schema:
                type: string
                description: Unique id for this request — present on EVERY response; quote it in support requests.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
components:
  schemas:
    FieldError:
      type: object
      properties:
        pointer:
          type: string
          description: RFC 6901 JSON Pointer to the offending request field.
          example: /name
          examples:
          - /name
        code:
          type: string
          description: Machine-readable per-field validation code.
          example: invalid_type
          examples:
          - invalid_type
        message:
          type: string
          description: Human-readable explanation for this field.
      required:
      - pointer
      - code
      - message
      additionalProperties: false
      description: A single field-level validation failure.
    Problem:
      type: object
      properties:
        type:
          type: string
          description: URI identifying the problem class; resolves to its docs page.
          example: https://nowgetitdone.com/docs/api/problems/validation-failed
          examples:
          - https://nowgetitdone.com/docs/api/problems/validation-failed
        title:
          type: string
          description: Short human-readable summary of the problem class. Never parse it — switch on `code`.
        status:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: HTTP status code, duplicated from the response.
          example: 400
          examples:
          - 400
        detail:
          description: Human-readable explanation specific to this occurrence.
          type: string
        code:
          type: string
          enum:
          - missing_credentials
          - invalid_api_key
          - invalid_token
          - insufficient_scope
          - feature_not_enabled
          - validation_failed
          - resource_not_found
          - rate_limited
          - quota_exhausted
          - idempotency_key_missing
          - idempotency_key_reused
          - idempotency_in_progress
          - webhook_url_rejected
          - delivery_already_pending
          - conflict
          - dependency_cycle
          - internal_error
          description: Stable machine-readable problem code — the value SDKs branch on.
        request_id:
          type: string
          description: The x-request-id of the failing request — quote it in support requests.
        errors:
          description: Field-level failures (present on validation_failed).
          type: array
          items:
            $ref: '#/components/schemas/FieldError'
      required:
      - type
      - title
      - status
      - code
      - request_id
      additionalProperties: false
      description: RFC 9457 problem document with the GetItDone `code` extension.
    TaskOccurrenceStatus:
      type: string
      enum:
      - PENDING
      - COMPLETED
      - SKIPPED
      - MISSED
      description: Per-day state of one occurrence of a repeating task. `PENDING` is written by materialization and `MISSED` by the rollover sweep — only `COMPLETED` and `SKIPPED` are user-written.
    TaskOccurrenceList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/TaskOccurrence'
          description: The current page of results.
        has_more:
          type: boolean
          description: True when another page exists after this one.
        next_cursor:
          description: Opaque cursor for the next page (pass as `after`); null on the last page.
          type:
          - string
          - 'null'
      required:
      - data
      - has_more
      - next_cursor
      additionalProperties: false
      description: Cursor-envelope page of occurrences, most recent day first. A task that does not repeat answers an empty page.
    SetTaskOccurrenceStatusBody:
      type: object
      properties:
        status:
          type: string
          enum:
          - COMPLETED
          - SKIPPED
          description: '`COMPLETED` = the work for that day is done (records the completion instant and actor). `SKIPPED` = it will not be done and the day is closed rather than rolled over.'
      required:
      - status
      description: The new state for this one day of the series.
    TaskOccurrence:
      type: object
      properties:
        task_id:
          type: string
          description: The repeating task's short id.
          example: T-123
          examples:
          - T-123
        occurrence_date:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
          description: The calendar day the occurrence is for, as YYYY-MM-DD in the recurrence timezone.
          example: '2026-08-06'
          examples:
          - '2026-08-06'
        sequence:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: 1-based ordinal of this day within the series — what an RRULE COUNT limit and streak math count.
          example: 12
          examples:
          - 12
        status:
          $ref: '#/components/schemas/TaskOccurrenceStatus'
        completed_at:
          anyOf:
          - type: string
            format: date-time
            pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
          - type: 'null'
          description: 'The INSTANT the user completed this day, ISO-8601 UTC, or null. Deliberately distinct from `occurrence_date`: completing Tuesday on Monday records both truths.'
      required:
      - task_id
      - occurrence_date
      - sequence
      - status
      - completed_at
      additionalProperties: false
      description: One DAY of a repeating task, with its own completion state.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `gid_` API key ([Profile → API Keys](https://app.nowgetitdone.com/settings/api-keys)) or an OAuth 2.1 access token.