---
updatedAt: 2025-08-26T08:35:50.000Z
agentTools:
  projectIndex: https://docs.ducky.ai/llms.txt
---

# Get task details with complete history

Retrieve task details including all actions and agent responses for complete state reconstruction.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "contact": {
      "email": "support@ducky.ai",
      "name": "Ducky Developer Support"
    },
    "description": "API for managing and retrieving data from Ducky.",
    "title": "Ducky API",
    "version": "1.0.1"
  },
  "servers": [
    {
      "url": "https://api.ducky.ai"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "paths": {
    "/v1/webapp/tasks/{task_id}": {
      "get": {
        "description": "Retrieve task details including all actions and agent responses for complete state reconstruction.",
        "operationId": "getWebappTask",
        "parameters": [
          {
            "description": "The unique identifier of the task to retrieve",
            "explode": false,
            "in": "path",
            "name": "task_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "description": "The ID of the project containing the task",
            "explode": true,
            "in": "query",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskResponse"
                }
              }
            },
            "description": "Task details retrieved successfully"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Task not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request (e.g., missing required fields)"
          }
        },
        "security": [
          {
            "bearer_auth": []
          }
        ],
        "summary": "Get task details with complete history",
        "tags": [
          "webapp"
        ]
      },
      "x-internal": true
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "example": {
          "error": "error"
        },
        "properties": {
          "error": {
            "description": "Error message explaining the issue",
            "title": "error",
            "type": "string"
          }
        },
        "title": "ErrorResponse",
        "type": "object"
      },
      "TaskResponse": {
        "example": {
          "updated_at": "2000-01-23T04:56:07.000+00:00",
          "project_id": "project_id",
          "created_at": "2000-01-23T04:56:07.000+00:00",
          "task_id": "task_id",
          "state": [
            {
              "key": ""
            },
            {
              "key": ""
            }
          ]
        },
        "properties": {
          "task_id": {
            "description": "The unique identifier of the task",
            "title": "task_id",
            "type": "string"
          },
          "project_id": {
            "description": "The ID of the project containing the task",
            "title": "project_id",
            "type": "string"
          },
          "state": {
            "description": "List of state objects representing the task conversation history",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "state",
            "type": "array"
          },
          "created_at": {
            "description": "When the task was created",
            "format": "date-time",
            "title": "created_at",
            "type": "string"
          },
          "updated_at": {
            "description": "When the task was last updated",
            "format": "date-time",
            "title": "updated_at",
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "project_id",
          "state",
          "task_id",
          "updated_at"
        ],
        "title": "TaskResponse",
        "type": "object"
      }
    },
    "securitySchemes": {
      "api_key": {
        "description": "API key providing access to a project.",
        "in": "header",
        "name": "x-api-key",
        "type": "apiKey"
      },
      "bearer_auth": {
        "description": "JWT token submitted from the webapp",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      }
    }
  },
  "x-google-backend": {
    "address": "api.ducky.ai"
  },
  "x-samples-languages": [
    "python",
    "shell"
  ]
}
```