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

# Create exit path

> Adds an exit path to a playbook; the model leaves the playbook through it when the path's description holds. Exit paths take effect when the playbook runs from a Playbook or Operator step in a workflow, where the new path appears as a port with no link.



## OpenAPI

````yaml /specs-prettified/realtime/openapi.stable.json post /v1/stable/playbook-path
openapi: 3.0.0
info:
  title: Realtime
  description: Realtime gateway API service
  version: 1.0.0
  contact: {}
servers:
  - url: https://realtime-api.voiceflow.com
security: []
tags: []
paths:
  /v1/stable/playbook-path:
    post:
      tags:
        - Playbook Path
      summary: Create exit path
      description: Adds an exit path to a playbook; the model leaves the playbook
        through it when the path's description holds. Exit paths take effect
        when the playbook runs from a Playbook or Operator step in a workflow,
        where the new path appears as a port with no link.
      operationId: StablePlaybookPathController_create
      parameters:
        - name: projectID
          required: true
          in: query
          schema:
            type: string
            description: The ID of the project to operate on.
        - name: environmentAlias
          required: true
          in: query
          schema:
            type: string
            description: The alias of the environment to operate on (e.g. `main`).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/StablePlaybookPathCreateRequest"
      responses:
        "201":
          description: Returns the created exit path, including the ID assigned to it.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StablePlaybookPathResponse"
          x-vf-doc:
            description: Returns the created exit path, including the ID assigned to it.
      security:
        - token: []
components:
  schemas:
    StablePlaybookPathCreateRequest:
      type: object
      properties:
        playbookID:
          type: string
          description: The ID of the playbook to add the exit path to.
        name:
          type: string
          minLength: 1
          maxLength: 255
          description: "The name of the exit path, trimmed. Use Latin letters, digits,
            spaces, hyphens and underscores, as the editor does: the runtime
            turns the name into the snake_case name of the exit tool the model
            calls."
        description:
          default: null
          nullable: true
          description: "The exit condition: the model reads it to decide when to leave the
            playbook through this path."
          type: string
      required:
        - playbookID
        - name
      additionalProperties: false
    StablePlaybookPathResponse:
      type: object
      properties:
        path:
          $ref: "#/components/schemas/StablePlaybookPath"
      required:
        - path
    StablePlaybookPath:
      type: object
      properties:
        id:
          type: string
        playbookID:
          type: string
          description: The ID of the playbook this exit path belongs to.
        name:
          type: string
          description: The name of the exit path. It labels the port on every Playbook
            step that runs this playbook, and the runtime turns it into the name
            of the exit tool the model calls.
        description:
          nullable: true
          description: "The exit condition: the model reads it to decide when to leave the
            playbook through this path."
          type: string
        createdAt:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        updatedAt:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
      required:
        - id
        - playbookID
        - name
        - description
        - createdAt
        - updatedAt
  securitySchemes:
    token:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Voiceflow bearer token
````
