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

# Get callback payload

> Returns the full task result payload in the same shape sent to callback URLs. Pass `task_id` as a single string for the single-task shape (`{success, data}`, 404 if not found), or as an array for the batch shape (`{success, data: [...], found_task_count, not_found_task_ids}`, always 200). Batches are capped at 50 `task_id`s per request. `endpoint_name` is optional — when supplied it's echoed back onto every payload as-is; when omitted it's resolved server-side per task from its recording. Pass full_logs=true to also include for_loop_status.



## OpenAPI

````yaml /openapi.json post /api/v1/get_callback_data
openapi: 3.1.0
info:
  title: Dashboard Backend API
  version: 0.1.0
servers:
  - url: https://api.optexity.com
security: []
paths:
  /api/v1/get_callback_data:
    post:
      tags:
        - task_details
      summary: Get callback payload
      description: >-
        Returns the full task result payload in the same shape sent to callback
        URLs. Pass `task_id` as a single string for the single-task shape
        (`{success, data}`, 404 if not found), or as an array for the batch
        shape (`{success, data: [...], found_task_count, not_found_task_ids}`,
        always 200). Batches are capped at 50 `task_id`s per request.
        `endpoint_name` is optional — when supplied it's echoed back onto every
        payload as-is; when omitted it's resolved server-side per task from its
        recording. Pass full_logs=true to also include for_loop_status.
      operationId: get_callback_data_api_v1_get_callback_data_post
      parameters:
        - name: full_logs
          in: query
          required: false
          schema:
            type: boolean
            description: When true, include for_loop_status in the payload.
            default: false
            title: Full Logs
          description: When true, include for_loop_status in the payload.
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
            title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetCallbackDataRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/GetCallbackDataResponse'
                  - $ref: '#/components/schemas/GetCallbackDataBatchResponse'
                description: >-
                  GetCallbackDataResponse when `task_id` was a string;
                  GetCallbackDataBatchResponse when it was an array.
                title: Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GetCallbackDataRequest:
      properties:
        task_id:
          anyOf:
            - type: string
            - items:
                type: string
              type: array
          title: Task Id
        endpoint_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Endpoint Name
      type: object
      required:
        - task_id
      title: GetCallbackDataRequest
      description: |-
        `task_id` accepts either a single task id or a list of them — the
        response shape mirrors whichever was sent. A list is capped at
        `MAX_BATCH_TASK_IDS` (50) items per request. `endpoint_name` is
        optional: when supplied it's trusted client input echoed onto every
        payload unchanged (matching the original single-task contract); when
        omitted it's resolved server-side per task from its recording.
    GetCallbackDataResponse:
      properties:
        success:
          type: boolean
          title: Success
        data:
          anyOf:
            - $ref: '#/components/schemas/CallbackDataItem'
            - type: 'null'
      type: object
      required:
        - success
      title: GetCallbackDataResponse
    GetCallbackDataBatchResponse:
      properties:
        success:
          type: boolean
          title: Success
        data:
          items:
            $ref: '#/components/schemas/CallbackDataItem'
          type: array
          title: Data
        found_task_count:
          type: integer
          title: Found Task Count
        not_found_task_ids:
          items:
            type: string
          type: array
          title: Not Found Task Ids
      type: object
      required:
        - success
        - data
        - found_task_count
        - not_found_task_ids
      title: GetCallbackDataBatchResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CallbackDataItem:
      properties:
        task_id:
          type: string
          title: Task Id
        recording_id:
          type: string
          title: Recording Id
        output_data:
          anyOf:
            - {}
            - type: 'null'
          title: Output Data
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        status:
          type: string
          enum:
            - queued
            - allocated
            - running
            - success
            - failed
            - cancelled
            - killed
          title: Status
        endpoint_name:
          type: string
          title: Endpoint Name
        downloads:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Downloads
        downloads_with_metadata:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Downloads With Metadata
        input_parameters:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Input Parameters
        unique_parameter_names:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Unique Parameter Names
        for_loop_status:
          anyOf:
            - {}
            - type: 'null'
          title: For Loop Status
      type: object
      required:
        - task_id
        - recording_id
        - status
        - endpoint_name
      title: CallbackDataItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

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