> ## 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 All Executions

> List execution history for all alerts in the namespace.



## OpenAPI

````yaml get /v1/alerts/executions
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/alerts/executions:
    get:
      tags:
        - Alerts
      summary: List All Executions
      description: List execution history for all alerts in the namespace.
      operationId: list_all_executions_v1_alerts_executions_get
      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
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertExecutionListResponse'
        '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:
    AlertExecutionListResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/AlertExecutionResult'
          type: array
          title: Results
          description: List of execution results
        pagination:
          $ref: '#/components/schemas/PaginationResponse'
          description: Pagination information
        total_count:
          type: integer
          title: Total Count
          description: Total number of executions
      type: object
      required:
        - results
        - pagination
        - total_count
      title: AlertExecutionListResponse
      description: Response model for listing alert 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
    AlertExecutionResult:
      properties:
        alert_id:
          type: string
          title: Alert Id
          description: ID of the alert that was executed
        collection_id:
          type: string
          title: Collection Id
          description: Collection the alert was executed against
        execution_id:
          type: string
          title: Execution Id
          description: Unique identifier for this execution
        triggered:
          type: boolean
          title: Triggered
          description: Whether the alert was triggered
        match_count:
          type: integer
          minimum: 0
          title: Match Count
          description: Number of matches found
        matches:
          anyOf:
            - items:
                $ref: '#/components/schemas/AlertMatchResult'
              type: array
            - type: 'null'
          title: Matches
          description: List of match results
        source_documents:
          items:
            type: string
          type: array
          title: Source Documents
          description: Document IDs that triggered the alert check
        executed_at:
          type: string
          title: Executed At
          description: ISO 8601 timestamp when the alert was executed
        duration_ms:
          type: integer
          minimum: 0
          title: Duration Ms
          description: How long the execution took in milliseconds
      type: object
      required:
        - alert_id
        - collection_id
        - triggered
        - match_count
        - executed_at
        - duration_ms
      title: AlertExecutionResult
      description: |-
        Result of an alert execution.

        Captures the outcome of running an alert against one or more documents,
        including whether the alert was triggered and what matched.

        Attributes:
            alert_id: ID of the alert that was executed
            collection_id: Collection the alert was executed against
            execution_id: Unique identifier for this execution
            triggered: Whether the alert was triggered (i.e., retriever returned results)
            match_count: Number of matches found
            matches: List of match results (if include_matches was True)
            source_documents: Document IDs that triggered the alert check
            executed_at: When the alert was executed
            duration_ms: How long the execution took
    PaginationResponse:
      properties:
        total:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total
        page:
          anyOf:
            - type: integer
            - type: 'null'
          title: Page
        page_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Page Size
        total_pages:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Pages
        next_page:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Page
        previous_page:
          anyOf:
            - type: string
            - type: 'null'
          title: Previous Page
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      type: object
      title: PaginationResponse
      description: |-
        PaginationResponse.

        Cursor-based pagination response:
        - Use next_cursor for navigation
        - Total count fields only populated when include_total=true
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    AlertMatchResult:
      properties:
        document_id:
          type: string
          title: Document Id
          description: ID of the matched document
        asset_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Asset Id
          description: Asset ID of the matched document
        score:
          type: number
          maximum: 1
          minimum: 0
          title: Score
          description: Similarity/relevance score
        matched_features:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Matched Features
          description: Features that caused the match
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
          description: Metadata from the matched document
      type: object
      required:
        - document_id
        - score
      title: AlertMatchResult
      description: |-
        A single match from alert execution.

        Represents a document that matched the retriever's query criteria.

        Attributes:
            document_id: ID of the matched document
            asset_id: Asset ID of the matched document
            score: Similarity/relevance score
            matched_features: Optional features that caused the match
            metadata: Optional metadata from the matched document

````