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

# List pipeline executions

> List executions for a pipeline (agent), newest first



## OpenAPI

````yaml /swagger.yml get /public/pipelines/{pipelineId}/executions
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:
    get:
      tags:
        - Pipelines
      summary: List pipeline executions
      description: List executions for a pipeline (agent), newest first
      operationId: PublicPipelinesController_listExecutions
      parameters:
        - name: pipelineId
          in: path
          required: true
          description: The ID of the pipeline
          schema:
            type: string
            format: uuid
        - name: limit
          in: query
          required: false
          description: Number of items to return (max 50)
          example: 10
          schema:
            type: number
        - name: page
          in: query
          required: false
          description: Page number
          example: 1
          schema:
            type: number
      responses:
        '200':
          description: A paginated list of pipeline executions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedPipelineExecutionsResponse'
        '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:
    PaginatedPipelineExecutionsResponse:
      type: object
      required:
        - data
        - total
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/PipelineExecutionSummaryObject'
        links:
          type: object
          properties:
            next:
              type: string
              description: The URL for the next page
            prev:
              type: string
              description: The URL for the previous page
            self:
              type: string
              description: The URL for the current page
        total:
          type: number
          description: The total number of pipeline executions
          example: 1
    PipelineExecutionSummaryObject:
      type: object
      description: A lightweight summary of a pipeline execution
      required:
        - id
        - pipelineVersionId
        - status
        - startedAt
        - runTime
        - aiTokensUsed
        - nodesStarted
      properties:
        id:
          type: string
          format: uuid
          description: The ID of the pipeline execution
          example: 00000000-0000-0000-0000-000000000000
        pipelineVersionId:
          type: string
          format: uuid
          description: The ID of the pipeline version that was executed
          example: 00000000-0000-0000-0000-000000000000
        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
        runTime:
          type: number
          description: The total run time of the execution in milliseconds
          example: 1234
        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
        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
        error:
          type: string
          description: The error message if the execution failed
          nullable: true
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: apiKey

````