> ## 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.

# Create time entry

> Log time against a task. Omit endTime to start a running entry that can be closed later with an update.



## OpenAPI

````yaml /openapi.json post /time-entry
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:
    post:
      tags:
        - Time Entries
      summary: Create time entry
      description: >-
        Log time against a task. Omit endTime to start a running entry that can
        be closed later with an update.
      operationId: createTimeEntry
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                taskId:
                  type: string
                startTime:
                  type: string
                  format: date-time
                  example: '2026-01-31T09:00:00Z'
                endTime:
                  type: string
                  format: date-time
                  example: '2026-01-31T09:00:00Z'
                  description: Omit to start an open-ended entry that is still running.
                description:
                  type: string
              required:
                - taskId
                - startTime
      responses:
        '200':
          description: The created time entry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimeEntry'
        '400':
          description: Invalid timestamps, or unknown task
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing task:update permission
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    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)

````