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

# Get task time entries

> Get every time entry logged against a task.



## OpenAPI

````yaml /openapi.json get /time-entry/task/{taskId}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /time-entry/task/{taskId}:
    get:
      tags:
        - Time Entries
      summary: Get task time entries
      description: Get every time entry logged against a task.
      operationId: getTaskTimeEntries
      parameters:
        - schema:
            type: string
          required: true
          name: taskId
          in: path
      responses:
        '200':
          description: List of time entries for the task
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TimeEntryWithUser'
        '400':
          description: Unknown task, or its workspace could not be determined
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No access to the task's workspace
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    TimeEntryWithUser:
      allOf:
        - $ref: '#/components/schemas/TimeEntry'
        - type: object
          properties:
            userName:
              type:
                - string
                - 'null'
          required:
            - userName
    TimeEntry:
      type: object
      properties:
        id:
          type: string
        taskId:
          type: string
        userId:
          type:
            - string
            - 'null'
          description: Null once the user who logged the time has been removed.
        description:
          type:
            - string
            - 'null'
        startTime:
          type: string
          format: date-time
        endTime:
          type:
            - string
            - 'null'
          format: date-time
          description: Null while the timer is still running.
        duration:
          type:
            - number
            - 'null'
          description: Elapsed seconds, filled in once the entry has an endTime.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - taskId
        - userId
        - description
        - startTime
        - endTime
        - duration
        - createdAt
        - updatedAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````