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

# Get task output preimage

> Retrieves the output tree preimage for a specific task. The preimage contains the raw output data that hashes to the output tree root. This endpoint does not require authentication.



## OpenAPI

````yaml /data-processor-api/openapi/openapi-hdp-server.json get /tasks/{uuid}/output_preimage
openapi: 3.1.0
info:
  title: Herodotus Data Processor Server API
  description: API documentation for the Herodotus Data Processor Server
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://staging.hdp.api.herodotus.cloud
    description: Staging API endpoint
security: []
tags:
  - name: tasks
    description: Task management endpoints
  - name: health
    description: Health check endpoints
  - name: modules
    description: Module registry endpoints
paths:
  /tasks/{uuid}/output_preimage:
    get:
      tags:
        - tasks
      summary: Get task output preimage
      description: >-
        Retrieves the output tree preimage for a specific task. The preimage
        contains the raw output data that hashes to the output tree root. This
        endpoint does not require authentication.
      operationId: getTaskOutputPreimage
      parameters:
        - name: uuid
          in: path
          description: The unique identifier (UUID) of the task
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Output preimage retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskOutputPreimageResponse'
              example:
                outputPreimage:
                  - '0xcc'
                  - '0x1572afe6949fdf51cb3e0856216670ae9ee160ee'
                  - '0x752c60'
                  - '0xcb'
                  - '0x711babb04ceccaf36db38bd0dd3172f1c27d1511'
                  - '0x752c61'
                taskId: 01J3Z3K2P4W6M8Q0A1B2C3D4E5
        '404':
          description: Task not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TaskOutputPreimageResponse:
      type: object
      required:
        - taskId
        - outputPreimage
      properties:
        outputPreimage: {}
        taskId:
          type: string
      example:
        outputPreimage:
          - '0xcc'
          - '0x1572afe6949fdf51cb3e0856216670ae9ee160ee'
          - '0x752c60'
          - '0xcb'
          - '0x711babb04ceccaf36db38bd0dd3172f1c27d1511'
          - '0x752c61'
        taskId: 01J3Z3K2P4W6M8Q0A1B2C3D4E5
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        details:
          type:
            - string
            - 'null'
        error:
          type: string
        message:
          type:
            - string
            - 'null'
        taskId:
          type:
            - string
            - 'null'

````