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

# Get a pipeline execution

> Get full details of a single pipeline execution



## OpenAPI

````yaml /swagger.yml get /public/pipelines/{pipelineId}/executions/{executionId}
openapi: 3.0.0
info:
  title: Public API Docs
  description: Clerk Public API
  version: '1.0'
  contact: {}
servers:
  - url: https://web-api.clerk.chat
    description: Production server
  - url: http://localhost:3000
    description: Production server
security: []
tags: []
paths:
  /public/pipelines/{pipelineId}/executions/{executionId}:
    get:
      tags:
        - Pipelines
      summary: Get a pipeline execution
      description: Get full details of a single pipeline execution
      operationId: PublicPipelinesController_getExecution
      parameters:
        - name: pipelineId
          in: path
          required: true
          description: The ID of the pipeline
          schema:
            type: string
            format: uuid
        - name: executionId
          in: path
          required: true
          description: The ID of the pipeline execution
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The pipeline execution
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PipelineExecutionObject'
        '400':
          description: Invalid request body
        '401':
          description: Unauthorized request
        '403':
          description: You do not have permission to access this resource
        '404':
          description: Resource not found
        '422':
          description: Invalid request parameters
        '429':
          description: Too many requests for this resource
        '500':
          description: Internal server error
      security:
        - api_key: []
components:
  schemas:
    PipelineExecutionObject:
      type: object
      description: >-
        Represents a full pipeline execution, including node executions and
        messages
      required:
        - id
        - pipelineId
        - pipelineVersionId
        - status
      properties:
        id:
          type: string
          format: uuid
          description: The ID of the pipeline execution
          example: 00000000-0000-0000-0000-000000000000
        pipelineId:
          type: string
          format: uuid
          description: The ID of the pipeline (agent)
          example: 00000000-0000-0000-0000-000000000000
        pipelineName:
          type: string
          description: The name of the pipeline (agent)
          example: My Agent
        pipelineVersionId:
          type: string
          format: uuid
          description: The ID of the pipeline version that was executed
          example: 00000000-0000-0000-0000-000000000000
        pipelineVersionNumber:
          type: number
          description: The version number that was executed
          example: 1
        status:
          type: string
          description: The status of the execution
          enum:
            - new
            - running
            - paused
            - success
            - failed
          example: success
        startedAt:
          type: string
          format: date-time
          description: When the execution started
          example: '2021-01-01T00:00:00.000Z'
        finishedAt:
          type: string
          format: date-time
          description: When the execution finished
          example: '2021-01-01T00:00:01.000Z'
          nullable: true
        error:
          type: string
          description: The error message if the execution failed
          nullable: true
        aiTokensUsed:
          type: number
          description: The number of AI tokens used during the execution
          example: 512
        nodesStarted:
          type: number
          description: The number of nodes started during the execution
          example: 3
        conversationHistory:
          type: object
          description: The conversation history captured during the execution
        contactDetails:
          type: object
          description: Details about the contact associated with the execution
        environment:
          type: object
          description: The environment variables available to the execution
        triggeredBy:
          type: string
          description: What triggered the execution
          example: message_received
          nullable: true
        triggeredByEntityId:
          type: string
          description: The ID of the entity that triggered the execution
          example: 00000000-0000-0000-0000-000000000000
          nullable: true
        conversationId:
          type: string
          format: uuid
          description: The ID of the conversation associated with the execution
          example: 00000000-0000-0000-0000-000000000000
          nullable: true
        nodesExecuted:
          type: array
          description: The node executions, ordered by start time
          items:
            $ref: '#/components/schemas/NodeExecutionObject'
        pipelineMessages:
          type: array
          description: The messages produced during the execution, ordered by creation time
          items:
            $ref: '#/components/schemas/PipelineMessageObject'
    NodeExecutionObject:
      type: object
      description: The execution record for a single node within a pipeline execution
      properties:
        nodeName:
          type: string
          description: The name of the node (kept for backwards compatibility)
          example: Greeting
        node:
          $ref: '#/components/schemas/PipelineNodeObject'
        id:
          type: string
          format: uuid
          description: The ID of the node execution
          example: 00000000-0000-0000-0000-000000000000
        startedAt:
          type: string
          format: date-time
          description: When the node execution started
          example: '2021-01-01T00:00:00.000Z'
        finishedAt:
          type: string
          format: date-time
          description: When the node execution finished
          example: '2021-01-01T00:00:01.000Z'
          nullable: true
        status:
          type: string
          description: The status of the node execution
          enum:
            - new
            - running
            - paused
            - success
            - failed
          example: success
        errorMessage:
          type: string
          description: The error message if the node execution failed
          nullable: true
        aiTokensUsed:
          type: number
          description: The number of AI tokens used by this node
          example: 128
        input:
          type: object
          description: The input passed to the node
        output:
          type: object
          description: The output produced by the node
    PipelineMessageObject:
      type: object
      description: A message produced during a pipeline execution
      properties:
        sourceNode:
          $ref: '#/components/schemas/PipelineNodeObject'
        id:
          type: string
          format: uuid
          description: The ID of the message
          example: 00000000-0000-0000-0000-000000000000
        content:
          type: object
          description: The content of the message
        messageType:
          type: string
          description: The type of the message
          example: text
        sourceNodeExecutionId:
          type: string
          format: uuid
          description: The ID of the node execution that produced the message
          example: 00000000-0000-0000-0000-000000000000
          nullable: true
        created:
          type: string
          format: date-time
          description: When the message was created
          example: '2021-01-01T00:00:00.000Z'
        destinations:
          type: object
          description: >-
            A map of message destinations, keyed by destination, each including
            the destination node
    PipelineNodeObject:
      type: object
      description: A reference to a node within the pipeline version
      properties:
        id:
          type: string
          description: The static ID of the node (stable across versions)
          example: '1'
        name:
          type: string
          description: The name of the node
          example: Greeting
        staticId:
          type: string
          description: The static ID of the node
          example: '1'
          nullable: true
        isGoal:
          type: boolean
          description: Whether the node is a goal node
          example: false
        goalName:
          type: string
          description: The name of the goal, if the node is a goal
          example: Booked appointment
          nullable: true
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: apiKey

````