> ## Documentation Index
> Fetch the complete documentation index at: https://superthread.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List or aggregate time entries

> Returns a date-bounded paginated list using the same composable filters as reports
and CSV. Values within a dimension are ORed; dimensions are ANDed. Aggregation is
served by `GET /{team_id}/time/reports`.

During the rolling migration, the legacy `scope_type`, `scope_id`, `user_id`,
`aggregate`, and `group_by` parameters remain supported. New clients should use
the canonical filters and report endpoint.




## OpenAPI

````yaml GET /{team_id}/time/entries
openapi: 3.0.0
info:
  description: Superthread Public API Specification
  version: '0.1'
  title: Public API
  contact:
    email: engineering@superthread.com
servers:
  - url: https://api.superthread.com/v1
security:
  - BearerAuth: []
tags:
  - name: AI
    description: >-
      [Service: AI]. Handles AI-powered functionalities, such as
      recommendations, predictions, and automation features.
  - name: Activity
    description: >-
      [Service: Activity] Manages all activities; creating notifications and
      digests
  - name: Auth
    description: >-
      [Service: Auth] Responsible for user authentication, authorization, and
      session management.
  - name: Boards
    description: >-
      [Service: Boards] Manages core collaboration features such as "boards",
      "cards", "lists", "sprints", "epics".
  - name: Comments
    description: >-
      [Service: Comments] Handles the creation, editing, and management of
      comments across various entities.
  - name: Customers
    description: >-
      [Service: Customers] Manages customers, customer tiers and statuses,
      customer settings, and customer requests on cards and projects. Requires
      the `customers` team feature; not available to workspace guests.
  - name: Favourites
    description: >-
      [Service: Favourites] Responsible for favouriting resources in the system
      for quick access.
  - name: Files
    description: >-
      [Service: Files] Manages file uploads, storage, and retrieval for user and
      project resources.
  - name: Importer
    description: >-
      [Service: Importer] Handles data import operations from external sources
      into the platform.
  - name: Integrations
    description: >-
      [Service: Integrations] Facilitates connectivity with external tools and
      services, enabling smooth integration with third-party platforms and APIs.
  - name: Pages
    description: >-
      [Service: Pages] Manages the creation and organization of both public and
      private pages, supporting structured content and navigation and
      collaboration.
  - name: Projects
    description: '[Service: Projects] Handles all project related tasks.'
  - name: Reports
    description: >-
      [Service: Reports] Generates and manages analytical reports and insights
      for users and projects.
  - name: Search
    description: >-
      [Service: Search] Provides search functionalities, including indexing and
      retrieval of platform data.
  - name: TimeTracking
    description: >
      [Service: TimeTracking] Manages time entries, active timers, time
      categories, job roles, billing rates, and audit/lock for time-tracking
      workflows.


      A member's billing rate is their own rate when one is set, otherwise their
      job role's rate, otherwise the workspace default rate. Each time entry
      keeps the rate and job role it was created with.
  - name: Resourcing
    description: >-
      [Service: TimeTracking] Plans people's capacity: working patterns, time
      off, closures, public holidays, allocations of hours to projects, and
      retainer budgets. Not available to workspace guests.
  - name: Views
    description: >-
      [Feature] Provides tools to create and customize views, enabling users to
      organize and visualize their data according to their preferences and
      workflows.
  - name: OAuth2
    description: >-
      [Feature] Supports OAuth2 integration for seamless user authentication and
      authorization, ensuring secure access to external APIs and services.
  - name: Sprints
    description: >-
      [Feature] Facilitates sprint management within agile workflows, including
      planning, progress tracking, and reporting.
  - name: Cards
    description: >-
      [Feature] A Card is the core concept used in the system to describe an
      individual task or work item. They are used across Boards, Sprints, and
      Roadmaps. Cards include features like descriptions, checklists, comments,
      priorities, tags and more.
  - name: Checklists
    description: >-
      [Feature] A Checklist is a list of items that need to be completed. It is
      used to track progress on a card.
  - name: Lists
    description: >-
      [Feature] Represents a collection of tasks or items grouped within
      different contexts in the system. Lists (externally referenced as
      "statuses") are utilized across various entities such as boards, sprints,
      and roadmaps.
  - name: Notes
    description: >-
      [Feature] Enables users to create, edit, and organize notes, supporting
      rich text, attachments, transcriptions and AI enhancements.
  - name: Tags
    description: >-
      [Feature] Groups endpoints related to the creation, retrieval, updating,
      deletion, and merging of tags within teams (workspaces).
  - name: Agents
    description: >-
      [Feature] Manages agents and runs. Provides CRUD operations for agents,
      launching cloud agents, monitoring agent status, retrieving conversations,
      and sending follow-ups.
  - name: PublishedAgents
    description: >-
      [Feature] [Service: AI] External API for agents published to websites,
      apps and custom clients. Authenticated with scoped chat sessions
      (PublishedAgentSession) or host app assertions (AgentAppAssertion), never
      with workspace member credentials. Management routes for publications and
      app registrations live under the Agents tag. Base URL: these paths are
      absolute from the API origin. The real URL is
      `https://api.superthread.com/public/agents/v1/...`, and the spec's
      `basePath` `/v1` does not apply, the same as `/public/forms` (Swagger 2.0
      has no per-path base). Generated clients default to `.../v1` and would
      call `/v1/public/agents/v1/...`, so construct them with the API origin as
      the base: in TypeScript `new Api({ baseURL: 'https://api.superthread.com'
      })`, and in Go a transport whose base path is `/`. The www forms portal
      does the same, using an axios client whose `baseURL` is the API origin.
paths:
  /{team_id}/time/entries:
    parameters:
      - $ref: '#/components/parameters/path_team_id'
    get:
      tags:
        - TimeTracking
      summary: List or aggregate time entries
      description: >
        Returns a date-bounded paginated list using the same composable filters
        as reports

        and CSV. Values within a dimension are ORed; dimensions are ANDed.
        Aggregation is

        served by `GET /{team_id}/time/reports`.


        During the rolling migration, the legacy `scope_type`, `scope_id`,
        `user_id`,

        `aggregate`, and `group_by` parameters remain supported. New clients
        should use

        the canonical filters and report endpoint.
      operationId: getTimeEntries
      parameters:
        - in: query
          name: from
          description: >-
            Lower bound (inclusive), as a Unix timestamp in seconds. Required
            for canonical queries.
          required: false
          schema:
            type: integer
            format: int64
        - in: query
          name: to
          description: >-
            Upper bound (exclusive), as a Unix timestamp in seconds. Required
            for canonical queries.
          required: false
          schema:
            type: integer
            format: int64
        - in: query
          name: scope_type
          description: Legacy filter for a card scope.
          required: false
          schema:
            type: string
            enum:
              - card
              - category
        - in: query
          name: scope_id
          description: Legacy scope ID filter, used with `scope_type`.
          required: false
          schema:
            type: string
        - in: query
          name: user_id
          description: Legacy single logger filter.
          required: false
          schema:
            type: string
        - in: query
          name: aggregate
          description: Legacy aggregate mode. New clients should use `/time/reports`.
          required: false
          schema:
            type: boolean
        - in: query
          name: group_by
          description: Legacy aggregate dimension. Required when `aggregate=true`.
          required: false
          schema:
            type: string
            enum:
              - user
              - scope
              - week
              - billable
        - $ref: '#/components/parameters/query_time_timezone'
        - $ref: '#/components/parameters/query_time_logger_ids'
        - $ref: '#/components/parameters/query_time_assignee_ids'
        - $ref: '#/components/parameters/query_time_space_ids'
        - $ref: '#/components/parameters/query_time_project_ids'
        - $ref: '#/components/parameters/query_time_board_ids'
        - $ref: '#/components/parameters/query_time_sprint_ids'
        - $ref: '#/components/parameters/query_time_card_ids'
        - $ref: '#/components/parameters/query_time_category_ids'
        - $ref: '#/components/parameters/query_time_tag_ids'
        - $ref: '#/components/parameters/query_time_tag_match'
        - $ref: '#/components/parameters/query_time_report_billable'
        - $ref: '#/components/parameters/query_time_sources'
        - $ref: '#/components/parameters/query_time_rollup_mode'
        - $ref: '#/components/parameters/query_time_cursor'
        - $ref: '#/components/parameters/query_time_limit'
      responses:
        '200':
          description: Paginated list of time entries matching the canonical filters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTimeEntriesResponse'
        default:
          description: client error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/Error'
components:
  parameters:
    path_team_id:
      in: path
      name: team_id
      description: >-
        Team ID is an alphanumerical string that identifies a Team. This is
        externally referred to as a "Workspace".
      required: true
      schema:
        type: string
    query_time_timezone:
      in: query
      name: timezone
      description: IANA timezone used for day, week, and month boundaries.
      required: false
      schema:
        type: string
    query_time_logger_ids:
      in: query
      name: logger_ids
      description: Restrict to entries logged by these member IDs.
      required: false
      style: form
      explode: false
      schema:
        type: array
        items:
          type: string
    query_time_assignee_ids:
      in: query
      name: assignee_ids
      description: Restrict to cards currently assigned to any of these member IDs.
      required: false
      style: form
      explode: false
      schema:
        type: array
        items:
          type: string
    query_time_space_ids:
      in: query
      name: space_ids
      description: >-
        Restrict to entries whose card was in these spaces when the time was
        logged.
      required: false
      style: form
      explode: false
      schema:
        type: array
        items:
          type: string
    query_time_project_ids:
      in: query
      name: project_ids
      description: >-
        Restrict to entries on cards currently in these projects, including time
        logged before the cards joined.
      required: false
      style: form
      explode: false
      schema:
        type: array
        items:
          type: string
    query_time_board_ids:
      in: query
      name: board_ids
      description: >-
        Restrict to entries whose card was in these boards when the time was
        logged.
      required: false
      style: form
      explode: false
      schema:
        type: array
        items:
          type: string
    query_time_sprint_ids:
      in: query
      name: sprint_ids
      description: >-
        Restrict to entries whose card was in these sprints when the time was
        logged.
      required: false
      style: form
      explode: false
      schema:
        type: array
        items:
          type: string
    query_time_card_ids:
      in: query
      name: card_ids
      description: >-
        Restrict to these cards. Descendant roll-up uses the ancestor path
        captured when each entry was logged.
      required: false
      style: form
      explode: false
      schema:
        type: array
        items:
          type: string
    query_time_category_ids:
      in: query
      name: category_ids
      description: Restrict to entries assigned to these time categories.
      required: false
      style: form
      explode: false
      schema:
        type: array
        items:
          type: string
    query_time_tag_ids:
      in: query
      name: tag_ids
      description: Restrict to cards currently carrying the selected tags.
      required: false
      style: form
      explode: false
      schema:
        type: array
        items:
          type: string
    query_time_tag_match:
      in: query
      name: tag_match
      description: Match cards carrying any selected tag or every selected tag.
      required: false
      schema:
        type: string
        enum:
          - any
          - all
    query_time_report_billable:
      in: query
      name: billable
      description: >-
        Optional filter — restrict to billable (`true`) or non-billable
        (`false`) entries.
      required: false
      schema:
        type: boolean
    query_time_sources:
      in: query
      name: sources
      description: >-
        Restrict to entries created manually, by a timer, or by idle-time
        handling.
      required: false
      style: form
      explode: false
      schema:
        type: array
        items:
          type: string
          enum:
            - manual
            - timer
            - idle
    query_time_rollup_mode:
      in: query
      name: rollup_mode
      description: >-
        Direct includes only cards in the selected scope; descendants
        recursively includes every child card.
      required: false
      schema:
        type: string
        enum:
          - direct
          - descendants
    query_time_cursor:
      in: query
      name: cursor
      description: Opaque cursor for date-bounded time-entry or report pagination.
      required: false
      schema:
        type: string
    query_time_limit:
      in: query
      name: limit
      description: Page size. The service applies a bounded default and maximum.
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 500
  schemas:
    GetTimeEntriesResponse:
      type: object
      allOf:
        - $ref: '#/components/schemas/ResponseMetadata'
      properties:
        time_entries:
          type: array
          items:
            $ref: '#/components/schemas/TimeEntry'
        filters:
          $ref: '#/components/schemas/TimeQueryFilters'
        group_by:
          type: string
          enum:
            - user
            - scope
            - week
            - billable
          x-omitempty: true
        buckets:
          type: array
          items:
            $ref: '#/components/schemas/TimeEntryAggregateBucket'
          x-omitempty: true
    Error:
      type: object
      properties:
        id:
          type: string
          example: err5f744ab
        code:
          type: integer
          format: int32
          example: 403
        sec:
          $ref: '#/components/schemas/SuperthreadErrorCode'
        message:
          type: string
          example: You do not have access to this resource
          description: A user-friendly error message
        date:
          $ref: '#/components/schemas/STime'
    ResponseMetadata:
      type: object
      required:
        - cursor
        - count
      properties:
        cursor:
          type: string
          example: dmsjqh9d8w1hdjosjaasda
          nullable: false
        count:
          type: integer
          example: 14
          nullable: false
    TimeEntry:
      type: object
      description: >
        A durable work record. Card ownership metadata is captured when the
        entry is created,

        so later card moves or renames do not retroactively change historical
        reports.
      required:
        - id
        - team_id
        - card_id
        - user_id
        - started_at
        - duration_seconds
        - billable
        - rate_snapshot_cents
        - currency_snapshot
        - source
        - version
      properties:
        id:
          type: string
          description: Client-supplied ULID.
          example: 01HQK6Z9YJZ4M9JX8FVB6QXYAB
        type:
          type: string
          example: time_entry
        team_id:
          type: string
          example: tDsu0j19
        card_id:
          type: string
          description: Card this entry belongs to.
          example: '2700'
        scope_type:
          $ref: '#/components/schemas/TimeEntryScopeType'
        scope_id:
          type: string
          description: Legacy alias for `card_id`.
          x-omitempty: true
        card_title_snapshot:
          type: string
          description: >-
            Card title captured when the time entry was created. Historical
            entries are not changed when the card is renamed.
          example: Prepare September campaign
          x-omitempty: true
        space_id_snapshot:
          type: string
          description: >-
            Space ID captured when the time entry was created. Historical
            entries are not changed when the card moves.
          example: space_01HQK6Z9YJZ4M9JX8FVB6QXYAB
          x-omitempty: true
        project_id_snapshot:
          type: string
          description: Project card ID captured when the time entry was created.
          example: '2701'
          x-omitempty: true
        board_id_snapshot:
          type: string
          description: Board ID captured when the time entry was created.
          example: board_01HQK6Z9YJZ4M9JX8FVB6QXYAB
          x-omitempty: true
        sprint_id_snapshot:
          type: string
          description: Sprint ID captured when the time entry was created.
          example: sprint_01HQK6Z9YJZ4M9JX8FVB6QXYAB
          x-omitempty: true
        ancestor_card_ids_snapshot:
          type: array
          description: >-
            Ordered ancestor card IDs captured when the time entry was created,
            nearest parent first. Used for historical descendant rollups.
          items:
            type: string
          x-omitempty: true
        time_category_id:
          type: string
          description: Optional workspace time category associated with this card entry.
          example: tc_01HQK6Z9YJZ4M9JX8FVB6QXYAB
          nullable: true
        category_id:
          type: string
          description: Legacy alias for `time_category_id`.
          x-omitempty: true
          nullable: true
        user_id:
          type: string
          example: uR2dws11
        started_at:
          $ref: '#/components/schemas/STime'
        duration_seconds:
          type: integer
          format: int64
          description: Duration of the entry in seconds.
          example: 1800
        description:
          type: string
          description: Optional free-text note.
          example: Pairing with Alex on the API spec
        billable:
          type: boolean
          example: true
          description: >-
            Whether this entry is billable. Initial value comes from the
            project, space, time category and workspace billable defaults.
        rate_snapshot_cents:
          type: integer
          format: int64
          description: >
            Billing rate, in cents per hour, captured when this entry was
            created: the person's own

            rate, otherwise their job role's rate, otherwise the workspace
            default rate.
          example: 12500
        currency_snapshot:
          type: string
          description: ISO 4217 currency code captured when this entry was created.
          pattern: ^[A-Z]{3}$
          example: GBP
        role_id_snapshot:
          type: string
          description: >-
            The person's job role when this entry was created. Omitted when they
            had none.
          example: jr_01HQK6Z9YJZ4M9JX8FVB6QXYAB
          x-omitempty: true
        source:
          $ref: '#/components/schemas/TimeEntrySource'
        version:
          type: integer
          format: int64
          minimum: 1
          description: Optimistic-concurrency version; bumped on every write.
          example: 1
        needs_review:
          type: boolean
          description: >-
            True when an abandoned timer or another server rule requires
            confirmation.
          x-omitempty: false
        review_reason:
          type: string
          enum:
            - abandoned_timer
          x-omitempty: true
        reviewed_at:
          $ref: '#/components/schemas/STimePtr'
        reviewed_by:
          type: string
          x-omitempty: true
        deleted_at:
          $ref: '#/components/schemas/STimePtr'
        locked_at:
          $ref: '#/components/schemas/STimePtr'
        time_created:
          $ref: '#/components/schemas/STime'
        time_updated:
          $ref: '#/components/schemas/STime'
    TimeQueryFilters:
      type: object
      description: Exact effective filters applied by entries, reports, and CSV.
      properties:
        from:
          type: integer
          format: int64
        to:
          type: integer
          format: int64
        timezone:
          type: string
          example: Europe/London
        logger_ids:
          type: array
          items:
            type: string
        assignee_ids:
          type: array
          description: Matches the card's current assignees, not its historical assignees.
          items:
            type: string
        space_ids:
          type: array
          description: Matches the space captured on each entry when the work was logged.
          items:
            type: string
        project_ids:
          type: array
          description: >-
            Matches the card's current project, including time logged before it
            joined. Grouping and export attribution still use historical
            snapshots.
          items:
            type: string
        board_ids:
          type: array
          description: Matches the board captured on each entry when the work was logged.
          items:
            type: string
        sprint_ids:
          type: array
          description: Matches the sprint captured on each entry when the work was logged.
          items:
            type: string
        card_ids:
          type: array
          items:
            type: string
        category_ids:
          type: array
          items:
            type: string
        tag_ids:
          type: array
          description: Matches the card's current tags, not its historical tags.
          items:
            type: string
        tag_match:
          type: string
          enum:
            - any
            - all
        billable:
          type: boolean
          x-omitempty: true
          nullable: true
        sources:
          type: array
          items:
            $ref: '#/components/schemas/TimeEntrySource'
        rollup_mode:
          $ref: '#/components/schemas/TimeRollupMode'
    TimeEntryAggregateBucket:
      type: object
      description: Legacy aggregate bucket retained for rolling-client compatibility.
      properties:
        user_id:
          type: string
          x-omitempty: true
        scope_type:
          $ref: '#/components/schemas/TimeEntryScopeType'
        scope_id:
          type: string
          x-omitempty: true
        week_start:
          $ref: '#/components/schemas/STimePtr'
        billable:
          type: boolean
          x-omitempty: true
        total_seconds:
          type: integer
          format: int64
        total_cents:
          type: integer
          format: int64
        entry_count:
          type: integer
    SuperthreadErrorCode:
      type: string
      description: |
        Superthread Error Code (`SEC`): A structured error code.
        Format: `SEC:{ServiceID}-{InternalErrorCode}`.


          - `SEC`: Prefix for all structured error codes.
          - `ServiceID`: First 3 characters identify the service, '000' is reserved for generic errors.
          - `InternalErrorCode`: the next (last) 5 characters define the specific error.
      pattern: ^SEC:\d{3}-\d{5}$
      example: SEC:000-00014
    STime:
      type: integer
      format: int64
      example: 1608742037016
      description: unix timestamp in seconds
      x-go-type:
        type: STime
        import:
          package: github.com/superthread-com/common/pkg/types
        hints:
          noValidation: true
          kind: primitive
    TimeEntryScopeType:
      type: string
      description: Legacy time-entry target type retained for rolling-client compatibility.
      enum:
        - card
        - category
      example: card
    TimeEntrySource:
      type: string
      description: How the time entry was created.
      enum:
        - manual
        - timer
        - idle
      example: manual
    STimePtr:
      type: integer
      format: int64
      example: 1608742037016
      description: unix timestamp in seconds
      x-go-type:
        type: STime
        import:
          package: github.com/superthread-com/common/pkg/types
        hints:
          noValidation: true
          kind: primitive
      nullable: true
    TimeRollupMode:
      type: string
      description: >-
        Whether a selected scope includes only its direct cards or every
        recursive descendant card.
      enum:
        - direct
        - descendants
      example: direct
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.