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

# Listar histórico da tarefa

> Retorna o histórico vinculado ao ID informado. Para tasks, passe o ID da tarefa (`GET /history/{taskId}`). Também funciona para outros módulos que gravam histórico no mesmo endpoint.



## OpenAPI

````yaml https://api.juridiq.com.br/api-docs/client/openapi.json get /history/{id}
openapi: 3.1.0
info:
  title: Juridiq API — Documentação para Integradores
  description: ''
  version: 1.0.0
servers:
  - url: https://api.juridiq.com.br
    description: Production server
security:
  - apiKeyAuth: []
tags: []
paths:
  /history/{id}:
    get:
      tags:
        - Tasks
      summary: Listar histórico da tarefa
      description: >-
        Retorna o histórico vinculado ao ID informado. Para tasks, passe o ID da
        tarefa (`GET /history/{taskId}`). Também funciona para outros módulos
        que gravam histórico no mesmo endpoint.
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: 'ID da entidade vinculada (ex.: ID da tarefa para histórico de tasks)'
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      id:
                        type: string
                      module:
                        type: string
                        description: 'Módulo do histórico (ex.: task)'
                      linkedId:
                        type: string
                        description: ID da entidade vinculada
                      history:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              anyOf:
                                - type: string
                                - type: string
                                  format: date-time
                              description: Data do evento
                            action:
                              type: string
                              description: Descrição da ação
                            type:
                              type: string
                              description: Tipo do evento
                            taskKanban: {}
                            fromTaskKanban: {}
                            toTaskKanban: {}
                            taskKanbanFolder: {}
                            taskKanbanBoard: {}
                            fromTaskKanbanBoard: {}
                            toTaskKanbanBoard: {}
                            user:
                              type: object
                              properties:
                                name:
                                  type: string
                                  nullable: true
                                avatar:
                                  type: string
                                  nullable: true
                              additionalProperties: true
                          additionalProperties: true
                        description: Eventos do histórico
                      createdAt:
                        anyOf:
                          - type: string
                          - type: string
                            format: date-time
                    required:
                      - history
                    additionalProperties: true
                  - type: string
                    description: Mensagem quando não há histórico
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  translateMessage:
                    type: string
                required:
                  - message
                  - statusCode
                  - translateMessage
                additionalProperties: false
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-juridiq-api-key
      description: >-
        Chave de API do escritório (criada no painel). Envie o valor no header
        x-juridiq-api-key.

````