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

# Create new pathway

> Creates a new pathway with the provided name and description



## OpenAPI

````yaml post /agency/pathway
openapi: 3.0.0
info:
  title: ClearTalk API
  description: The ClearTalk API Documentation
  version: '1.0'
  contact:
    name: Developer Support
    email: devsupport@cleartalk.ai
servers:
  - url: https://api.cleartalk.ai
    description: ClearTalk AI API Server
security: []
tags: []
paths:
  /agency/pathway:
    post:
      tags:
        - Pathway
      summary: Create new pathway
      description: Creates a new pathway with the provided name and description
      operationId: PathwayController_createPathway
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePathwayDto'
      responses:
        '201':
          description: Pathway created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PathwayCreateResponseDto'
        '400':
          description: Invalid input data
        '401':
          description: Unauthorized access
      security:
        - apiKey: []
components:
  schemas:
    CreatePathwayDto:
      type: object
      properties:
        name:
          type: string
          example: Pathway Name
        description:
          type: string
          example: Pathway Description
        pathwayId:
          type: string
          example: Pathway ID
        userId:
          type: string
          example: User ID
      required:
        - name
        - description
        - pathwayId
        - userId
    PathwayCreateResponseDto:
      type: object
      properties:
        success:
          type: boolean
          example: true
        redirect:
          type: string
          example: /pathway/1
      required:
        - success
        - redirect
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````