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

# Retrieve a task

> Retorna uma tarefa pelo ID (com `parent: { id, name }` quando é subtarefa).



## OpenAPI

````yaml get /v1/tasks/{id}
openapi: 3.0.0
info:
  title: Kinbox API
  description: Kinbox public API
  version: '2.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/tasks/{id}:
    get:
      tags:
        - v1Tasks
      summary: Retrieve a task
      description: >-
        Retorna uma tarefa pelo ID (com `parent: { id, name }` quando é
        subtarefa).
      operationId: retrieveTask
      parameters:
        - name: id
          required: true
          in: path
          description: ID da tarefa
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskPublicDto'
components:
  schemas:
    TaskPublicDto:
      type: object
      properties:
        id:
          type: string
        _id:
          type: string
        priority:
          type: string
          enum:
            - none
            - low
            - medium
            - high
            - urgent
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/TaskAttachment'
      required:
        - id
        - _id
    TaskAttachment:
      type: object
      properties:
        id:
          type: string
        filename:
          type: string
        name:
          type: string
        size:
          type: number
        mimeType:
          type: string
        authorId:
          type: number
        createdAt:
          format: date-time
          type: string
      required:
        - id
        - filename
        - name
        - size
        - createdAt

````

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