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

# List pipeline stages

> Returns active stages for a pipeline ordered by `stage_order`.



## OpenAPI

````yaml get /v1/pipelines/{pipeline_id}/stages
openapi: 3.1.0
info:
  title: Octolane Public API
  version: 1.0.0
  description: >-
    OpenAPI specification for Octolane public APIs. These endpoints let external
    systems read CRM data and create or update accounts, contacts,
    opportunities, notes, and activities through the public API gateway.
  contact:
    name: Octolane
    url: https://octolane.com
servers:
  - url: https://api.octolane.com
    description: Public API gateway
security:
  - ApiKeyAuth: []
tags:
  - name: CRM
    description: >-
      Public endpoints for creating, bulk creating, listing, searching, and
      updating CRM data.
paths:
  /v1/pipelines/{pipeline_id}/stages:
    get:
      tags:
        - CRM
      summary: List pipeline stages
      description: Returns active stages for a pipeline ordered by `stage_order`.
      operationId: listPipelineStagesV1
      parameters:
        - name: pipeline_id
          in: path
          required: true
          description: Pipeline ID.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Pipeline stages were returned.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiResponse'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/StagesListData'
        '400':
          description: The request failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: >-
            The API key is missing, invalid, or not allowed to access this
            route.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: The route rate limit was exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ApiResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
        data:
          description: Endpoint-specific response payload.
      additionalProperties: true
    StagesListData:
      type: object
      required:
        - stages
      properties:
        stages:
          type: array
          items:
            $ref: '#/components/schemas/StageDefinition'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
          example: Validation failed
        statusCode:
          type: integer
          example: 400
      additionalProperties: true
    StageDefinition:
      type: object
      required:
        - stage_id
        - pipeline_id
        - label
        - stage_order
      properties:
        stage_id:
          type: string
          format: uuid
        pipeline_id:
          type: string
          format: uuid
        label:
          type: string
          example: Qualified
        color:
          type:
            - string
            - 'null'
          example: '#3B82F6'
        is_active:
          type: boolean
        is_default:
          type: boolean
        probability:
          type: number
          minimum: 0
          maximum: 100
        stage_order:
          type: integer
          minimum: 1
        stage_type:
          type: string
          enum:
            - default
            - positive
            - negative
      additionalProperties: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Public API key for the Octolane organization.

````