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

# List Adhoc Executions

> List execution history for ad-hoc retrievers.

Returns execution history for all ad-hoc retriever executions in the namespace,
sorted by timestamp descending (most recent first).

Use Cases:
    - Track ad-hoc retriever usage across the namespace
    - Debug ad-hoc retriever executions
    - Analyze query patterns from ad-hoc searches
    - Monitor performance of ad-hoc executions

Filtering:
    - Filter by status (completed, failed, etc.)
    - Filter by time range (start_time, end_time)

Pagination:
    - Supports offset-based pagination via query parameters
    - Default limit: 20, max limit: 100
    - Use ?page_size=X&page_number=Y for pagination



## OpenAPI

````yaml post /v1/retrievers/executions/list
openapi: 3.1.0
info:
  title: Mixpeek API
  description: >-
    This is the Mixpeek API, providing access to various endpoints for data
    processing and retrieval.
  termsOfService: https://mixpeek.com/terms
  contact:
    name: Mixpeek Support
    url: https://mixpeek.com/contact
    email: info@mixpeek.com
  version: '0.82'
servers:
  - url: https://api.mixpeek.com
    description: Production
security: []
paths:
  /v1/retrievers/executions/list:
    post:
      tags:
        - Adhoc Retrievers
      summary: List Adhoc Executions
      description: >-
        List execution history for ad-hoc retrievers.


        Returns execution history for all ad-hoc retriever executions in the
        namespace,

        sorted by timestamp descending (most recent first).


        Use Cases:
            - Track ad-hoc retriever usage across the namespace
            - Debug ad-hoc retriever executions
            - Analyze query patterns from ad-hoc searches
            - Monitor performance of ad-hoc executions

        Filtering:
            - Filter by status (completed, failed, etc.)
            - Filter by time range (start_time, end_time)

        Pagination:
            - Supports offset-based pagination via query parameters
            - Default limit: 20, max limit: 100
            - Use ?page_size=X&page_number=Y for pagination
      operationId: list_adhoc_executions_v1_retrievers_executions_list_post
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 1000
                minimum: 1
              - type: 'null'
            title: Limit
        - name: page_size
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 1000
                minimum: 1
              - type: 'null'
            title: Page Size
        - name: offset
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 10000
                minimum: 0
              - type: 'null'
            title: Offset
        - name: page
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 1
              - type: 'null'
            title: Page
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
        - name: include_total
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Include Total
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListAdhocExecutionsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAdhocExecutionsResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ListAdhocExecutionsRequest:
      properties:
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: >-
            Filter by execution status. Common values: 'completed', 'failed'.
            OPTIONAL - omit to see all statuses.
          examples:
            - completed
            - failed
        start_time:
          anyOf:
            - {}
            - type: 'null'
          title: Start Time
          description: >-
            Filter executions after this timestamp (inclusive). OPTIONAL - omit
            for no start time filter.
        end_time:
          anyOf:
            - {}
            - type: 'null'
          title: End Time
          description: >-
            Filter executions before this timestamp (inclusive). OPTIONAL - omit
            for no end time filter.
      type: object
      title: ListAdhocExecutionsRequest
      description: |-
        Request to list ad-hoc retriever executions with filtering.

        Allows filtering by status, time range, and searching by query summary.
        Results are ordered by timestamp descending (most recent first).
    ListAdhocExecutionsResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/AdhocExecutionSummary'
          type: array
          title: Results
          description: List of ad-hoc execution summaries.
        total:
          type: integer
          title: Total
          description: Total number of ad-hoc executions matching filters.
          default: 0
        pagination:
          title: Pagination
          description: Pagination metadata.
      type: object
      required:
        - pagination
      title: ListAdhocExecutionsResponse
      description: Response from listing ad-hoc retriever executions.
    ErrorResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Always false for error responses
          default: false
        status:
          type: integer
          title: Status
          description: HTTP status code for this error
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: Error details payload
      type: object
      required:
        - status
        - error
      title: ErrorResponse
      description: Error response model.
      examples:
        - error:
            details:
              id: ns_123
              resource: namespace
            message: Namespace not found
            type: NotFoundError
          status: 404
          success: false
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AdhocExecutionSummary:
      properties:
        execution_id:
          type: string
          title: Execution Id
          description: Unique execution identifier.
        execution_mode:
          type: string
          title: Execution Mode
          description: Execution mode ('adhoc').
        status:
          type: string
          title: Status
          description: Execution status ('completed', 'failed', etc.).
        timestamp:
          title: Timestamp
          description: When the execution started (UTC).
        duration_ms:
          type: number
          minimum: 0
          title: Duration Ms
          description: Total execution duration in milliseconds.
        credits_used:
          type: number
          minimum: 0
          title: Credits Used
          description: Credits consumed during execution.
        total_processed:
          type: integer
          minimum: 0
          title: Total Processed
          description: Total documents processed across all stages.
        total_returned:
          type: integer
          minimum: 0
          title: Total Returned
          description: Number of documents returned in final results.
        cache_hit_rate:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Cache Hit Rate
          description: Cache hit rate across stages (0.0-1.0).
        query_summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Query Summary
          description: Brief summary of the query inputs.
        stages_completed:
          type: integer
          minimum: 0
          title: Stages Completed
          description: Number of stages completed.
        total_stages:
          type: integer
          minimum: 0
          title: Total Stages
          description: Total number of stages in the pipeline.
        collection_ids:
          items:
            type: string
          type: array
          title: Collection Ids
          description: Collections queried during execution.
      type: object
      required:
        - execution_id
        - execution_mode
        - status
        - timestamp
        - duration_ms
        - credits_used
        - total_processed
        - total_returned
        - stages_completed
        - total_stages
      title: AdhocExecutionSummary
      description: |-
        Summary of an ad-hoc retriever execution from ClickHouse.

        Provides high-level execution metadata for ad-hoc retrievers without
        full document results. Used for listing and filtering execution history.
    ErrorDetail:
      properties:
        message:
          type: string
          title: Message
          description: Human-readable error message
        type:
          type: string
          title: Type
          description: Stable error type identifier (machine-readable)
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
          description: >-
            Fine-grained error code for programmatic handling (e.g.,
            namespace_name_taken, feature_extractor_not_found). Present only
            when consumers may need to branch on a specific error condition.
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Details
          description: >-
            Optional structured details to help debugging (validation errors,
            IDs, etc.)
      type: object
      required:
        - message
        - type
      title: ErrorDetail
      description: Error detail model.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````