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

> Get a single task by ID, with its assignee's name resolved.



## OpenAPI

````yaml /openapi.json get /task/{id}
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:
  /task/{id}:
    get:
      tags:
        - Tasks
      summary: Get task
      description: Get a single task by ID, with its assignee's name resolved.
      operationId: getTask
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Task details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskWithAssignee'
        '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:
    TaskWithAssignee:
      allOf:
        - $ref: '#/components/schemas/Task'
        - type: object
          properties:
            assigneeName:
              type:
                - string
                - 'null'
            assigneeId:
              type:
                - string
                - 'null'
          required:
            - assigneeName
            - assigneeId
    Task:
      type: object
      properties:
        id:
          type: string
        projectId:
          type: string
        position:
          type:
            - number
            - 'null'
          description: Order within its column, ascending.
        number:
          type:
            - number
            - 'null'
          description: Per-project counter shown as {projectSlug}-{number}.
        userId:
          type:
            - string
            - 'null'
          description: The assignee, if any.
        title:
          type: string
        description:
          type:
            - string
            - 'null'
        status:
          type: string
          description: The slug of the column the task sits in.
        priority:
          type: string
          description: 'One of: no-priority, low, medium, high, urgent.'
        startDate:
          type:
            - string
            - 'null'
          format: date-time
        dueDate:
          type:
            - string
            - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - projectId
        - position
        - number
        - userId
        - title
        - description
        - status
        - priority
        - startDate
        - dueDate
        - createdAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````