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

# Get Pipeline Execution

> Poll execution status. Returns per-step status with lookup keys for partial results.

Decision rule: Check PG PipelineExecution.status first.
- If terminal (completed/failed): return from PostgreSQL (post-sync, complete data)
- If running/pending: read Firestore for real-time step status



## OpenAPI

````yaml https://www.datalab.to/openapi.json get /api/v1/pipelines/executions/{execution_id}
openapi: 3.1.0
info:
  title: Datalab API
  version: 0.0.1
servers:
  - url: https://www.datalab.to
    description: Datalab API
security: []
paths:
  /api/v1/pipelines/executions/{execution_id}:
    get:
      tags:
        - pipelines
      summary: Get Pipeline Execution
      description: >-
        Poll execution status. Returns per-step status with lookup keys for
        partial results.


        Decision rule: Check PG PipelineExecution.status first.

        - If terminal (completed/failed): return from PostgreSQL (post-sync,
        complete data)

        - If running/pending: read Firestore for real-time step status
      operationId: get_pipeline_execution_api_v1_pipelines_executions__execution_id__get
      parameters:
        - name: execution_id
          in: path
          required: true
          schema:
            type: string
            title: Execution Id
        - name: wos-session
          in: cookie
          required: false
          schema:
            type: string
            title: Wos-Session
        - name: datalab_active_team
          in: cookie
          required: false
          schema:
            type: string
            title: Datalab Active Team
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PipelineExecutionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PipelineExecutionResponse:
      properties:
        execution_id:
          type: string
          title: Execution Id
        pipeline_id:
          type: string
          title: Pipeline Id
        pipeline_version:
          type: integer
          title: Pipeline Version
        status:
          type: string
          title: Status
        steps:
          items:
            $ref: '#/components/schemas/PipelineExecutionStepResponse'
          type: array
          title: Steps
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        created:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created
        config_snapshot:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Config Snapshot
        input_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Input Config
        rate_breakdown:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Rate Breakdown
      type: object
      required:
        - execution_id
        - pipeline_id
        - pipeline_version
        - status
        - steps
      title: PipelineExecutionResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PipelineExecutionStepResponse:
      properties:
        step_index:
          type: integer
          title: Step Index
        step_type:
          type: string
          title: Step Type
        status:
          type: string
          title: Status
        lookup_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Lookup Key
        result_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Result Url
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        finished_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Finished At
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        source_step_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Step Type
        checkpoint_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Checkpoint Id
      type: object
      required:
        - step_index
        - step_type
        - status
      title: PipelineExecutionStepResponse
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````