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

# Create Pipeline

> Create a new pipeline for the team.



## OpenAPI

````yaml https://www.datalab.to/openapi.json post /api/v1/pipelines
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:
    post:
      tags:
        - pipelines
      summary: Create Pipeline
      description: Create a new pipeline for the team.
      operationId: create_pipeline_api_v1_pipelines_post
      parameters:
        - 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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePipelineRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PipelineResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    CreatePipelineRequest:
      properties:
        steps:
          items:
            $ref: '#/components/schemas/PipelineStep'
          type: array
          minItems: 1
          title: Steps
          description: Ordered list of pipeline steps
      type: object
      required:
        - steps
      title: CreatePipelineRequest
    PipelineResponse:
      properties:
        id:
          type: integer
          title: Id
        pipeline_id:
          type: string
          title: Pipeline Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        steps:
          items: {}
          type: array
          title: Steps
        is_saved:
          type: boolean
          title: Is Saved
        archived:
          type: boolean
          title: Archived
        active_version:
          type: integer
          title: Active Version
        created:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created
        updated:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated
      type: object
      required:
        - id
        - pipeline_id
        - name
        - steps
        - is_saved
        - archived
        - active_version
        - created
        - updated
      title: PipelineResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PipelineStep:
      properties:
        type:
          type: string
          enum:
            - convert
            - extract
            - segment
            - custom
            - fill
          title: Type
          description: The type of processing step
        settings:
          additionalProperties: true
          type: object
          title: Settings
          description: >-
            Step-specific executor settings. For extract steps, includes
            'page_schema' (JSON string). For segment steps, includes
            'segmentation_schema' (JSON string). These flow directly to the
            executor via config.update(settings).
        custom_processor_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Custom Processor Id
          description: Custom processor ID (cp_XXXXX) for custom steps
        eval_rubric_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Eval Rubric Id
          description: Eval rubric ID to score this step's output against
        pending_check_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Pending Check Url
          description: >-
            URL to poll for processor creation status (temporary, cleared on
            completion)
        pending_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Pending Name
          description: >-
            Display name while processor is generating (temporary, cleared on
            completion)
      type: object
      required:
        - type
      title: PipelineStep
    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

````