> ## 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.

# Get Alert Execution

> Get a single alert execution result by execution ID. Use this to poll for alert results without needing a webhook.



## OpenAPI

````yaml get /v1/alerts/executions/{execution_id}
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/{execution_id}:
    get:
      tags:
        - Alerts
      summary: Get Alert Execution
      description: >-
        Get a single alert execution result by execution ID. Use this to poll
        for alert results without needing a webhook.
      operationId: get_execution_v1_alerts_executions__execution_id__get
      parameters:
        - name: execution_id
          in: path
          required: true
          schema:
            type: string
            description: Execution ID (exec_...)
            title: Execution Id
          description: Execution ID (exec_...)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertExecutionResult'
        '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:
    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
    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
    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
    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

````