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

# Create a branch

> Needs a Full access key.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v2/agents/{agentId}/branches
openapi: 3.1.0
info:
  title: Centillion Labs API
  description: >-
    The public API of Centillion Labs: agents, their branches and versions,
    knowledge, tools and the secrets they send, chat, conversations, contacts,
    campaigns, batch calls, agent testing, issues and Helpdesk.
  version: 2.0.0
servers:
  - url: https://app.cntillion.com
security:
  - workspaceApiKey: []
  - workspaceApiKeyHeader: []
tags:
  - name: Agents
    description: Create, read, change, clone and delete agents.
  - name: Branches and versions
    description: Branches, drafts, immutable versions, merges, publishing and traffic.
  - name: Workflow and voice
    description: A branch's workflow and its voice settings.
  - name: Tools
    description: 'Workspace tools: HTTP, client, MCP server and code tools.'
  - name: Secrets
    description: >-
      Named credentials, such as an API key, that HTTP tools and MCP servers
      send as a header by naming the secret's id in
      `configuration.secretHeaders`. A value is encrypted when saved and never
      returned. A new value reaches every tool and published agent that uses the
      secret on its next call, with nothing to publish, and a secret can be
      deleted only once no tool and no published agent sends it.
  - name: Auth connections
    description: >-
      How the workspace's tools sign in to an API, kept once and named by id in
      an HTTP tool's or an MCP server's `configuration.authConnectionId` (or
      `configuration.page.authConnectionId` for a web form's link request).
      Secrets are encrypted when saved and never returned. A change reaches
      every tool and published agent that uses the connection on its next call,
      and a connection can be deleted only once nothing signs in with it.
  - name: Knowledge sources
    description: What an agent knows, and training it on that.
  - name: Chat
    description: Talk to an agent from your own systems.
  - name: Conversations
    description: Conversations, their messages, feedback and analysis.
  - name: Leads and contacts
    description: The leads and contacts an agent collected.
  - name: Contacts and enrollments
    description: Upsert contacts and enroll them in always-open campaigns.
  - name: Batch calls
    description: Outbound call batches, their recipients and their runs.
  - name: Campaigns
    description: >-
      Managed outbound calling: campaigns that call each lead within calling
      windows and retry, call back or redirect as their lead policy allows,
      their leads, calls and attention items, and the workspace's campaign
      settings.
  - name: WhatsApp
    description: WhatsApp templates and template messages.
  - name: Agent testing
    description: Workspace tests, agent suites, execution, and results.
  - name: Issues
    description: >-
      Issues an agent raised or a teammate flagged about how it behaves: triage,
      comment, merge and resolve.
  - name: Helpdesk
    description: Helpdesk tickets, their messages, teams and statuses.
  - name: Status
    description: Whether the API is up.
paths:
  /api/v2/agents/{agentId}/branches:
    post:
      tags:
        - Branches and versions
      summary: Create a branch
      description: Needs a Full access key.
      operationId: createBranch
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateBranchRequest'
      responses:
        '201':
          description: Created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateBranchResponse'
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '403':
          $ref: '#/components/responses/Error403'
        '404':
          $ref: '#/components/responses/Error404'
        '409':
          $ref: '#/components/responses/Error409'
        '413':
          $ref: '#/components/responses/Error413'
        '415':
          $ref: '#/components/responses/Error415'
        '429':
          $ref: '#/components/responses/Error429'
        '500':
          $ref: '#/components/responses/Error500'
        '504':
          $ref: '#/components/responses/Error504'
components:
  schemas:
    CreateBranchRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 140
        description:
          type: string
          maxLength: 4000
        fromBranchId:
          description: The branch to start from. Main when left out.
          type: string
          minLength: 1
          maxLength: 128
        versionId:
          description: A version to start from instead of a head.
          type: string
          minLength: 1
          maxLength: 128
      required:
        - name
      additionalProperties: false
    CreateBranchResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/AgentBranch'
      required:
        - data
    AgentBranch:
      type: object
      properties:
        id:
          type: string
        agentId:
          type: string
        name:
          type: string
        description:
          type: string
        isMain:
          type: boolean
        trafficPercent:
          type: integer
        currentVersionId:
          type:
            - string
            - 'null'
        revision:
          type: integer
          description: Send it back to save a draft or publish.
        createdBy:
          type: string
        protected:
          type: boolean
        autoRebase:
          type: boolean
        archivedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        isDraft:
          type: boolean
          description: Whether `configuration` is a draft.
        configuration:
          $ref: '#/components/schemas/AgentSnapshot'
      required:
        - id
        - agentId
        - name
        - description
        - isMain
        - trafficPercent
        - currentVersionId
        - revision
        - createdBy
        - protected
        - autoRebase
        - archivedAt
        - createdAt
        - updatedAt
        - isDraft
        - configuration
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: A stable code, such as `NOT_FOUND`.
            message:
              type: string
              description: What went wrong, for a person.
            details:
              description: More about the failure, on some endpoints.
          required:
            - code
            - message
      required:
        - error
    AgentSnapshot:
      type: object
      properties:
        format:
          type: number
          const: 1
        resourceIds:
          type: array
          items:
            type: string
        settings:
          type: object
          properties:
            name:
              type: string
              minLength: 1
              maxLength: 140
            role:
              type: string
            instructions:
              type: string
              maxLength: 100000
            guardrails:
              type: string
              maxLength: 20000
            model:
              type: string
              minLength: 1
              maxLength: 100
            temperature:
              type: number
              minimum: 0
              maximum: 1
            greeting:
              type: string
              maxLength: 3000
            defaultLanguage:
              type:
                - string
                - 'null'
            suggestedMessages:
              type: array
              items:
                type: string
            displaySettings:
              type: object
              propertyNames:
                type: string
              additionalProperties: {}
            activeTrainingId:
              type:
                - string
                - 'null'
            rateLimitMessages:
              type: integer
              exclusiveMinimum: 0
            rateLimitWindowSeconds:
              type: integer
              exclusiveMinimum: 0
            rateLimitMessage:
              type: string
            spamDetectionEnabled:
              type: boolean
            spamDetectionPrompt:
              type: string
          required:
            - name
            - role
            - instructions
            - guardrails
            - model
            - temperature
            - greeting
            - defaultLanguage
            - suggestedMessages
            - displaySettings
            - activeTrainingId
            - rateLimitMessages
            - rateLimitWindowSeconds
            - rateLimitMessage
            - spamDetectionEnabled
            - spamDetectionPrompt
        actions:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              key:
                type: string
              type:
                type: string
                enum:
                  - CUSTOM
                  - INTEGRATION
                  - ESCALATION
                  - TOOL
              enabled:
                type: boolean
              config: {}
              helpdeskFields:
                type: array
                items:
                  type: object
                  properties:
                    customFieldId:
                      type: string
                    required:
                      type: boolean
                    position:
                      type: integer
                  required:
                    - customFieldId
                    - required
                    - position
            required:
              - id
              - key
              - enabled
              - config
        resources:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                minLength: 1
                maxLength: 140
              description:
                default: ''
                type: string
                maxLength: 4000
              configuration:
                oneOf:
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: KNOWLEDGE
                      content:
                        type: string
                        minLength: 1
                        maxLength: 200000
                    required:
                      - kind
                      - content
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: HTTP_TOOL
                      responseMocks:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                              maxLength: 140
                            when:
                              default: {}
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties:
                                $ref: '#/components/schemas/JsonValue'
                            conditions:
                              maxItems: 30
                              type: array
                              items:
                                $ref: '#/components/schemas/TestParameterAssertion'
                            response:
                              $ref: '#/components/schemas/JsonValue'
                            isError:
                              type: boolean
                          required:
                            - name
                            - when
                            - response
                      voice:
                        type: object
                        properties:
                          interruptions:
                            type: string
                            enum:
                              - allow
                              - execution
                              - whole_turn
                          preToolSpeech:
                            type: string
                            enum:
                              - auto
                              - force
                              - 'off'
                          speechText:
                            type: string
                            maxLength: 500
                          executionMode:
                            type: string
                            enum:
                              - immediate
                              - post_speech
                              - async
                          executionSound:
                            type: string
                            enum:
                              - none
                              - typing
                              - hold_music
                      errorHandling:
                        type: string
                        enum:
                          - auto
                          - summarized
                          - passthrough
                          - hide
                      dynamicVariables:
                        type: object
                        propertyNames:
                          type: string
                          minLength: 1
                          maxLength: 140
                        additionalProperties:
                          $ref: '#/components/schemas/JsonValue'
                      assignments:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            variable:
                              type: string
                              minLength: 1
                              maxLength: 140
                            path:
                              type: string
                              minLength: 1
                              maxLength: 500
                          required:
                            - variable
                            - path
                      url:
                        type: string
                        maxLength: 2048
                        format: uri
                      method:
                        default: POST
                        type: string
                        enum:
                          - GET
                          - POST
                          - PUT
                          - PATCH
                          - DELETE
                      headers:
                        default: {}
                        type: object
                        propertyNames:
                          type: string
                          maxLength: 100
                        additionalProperties:
                          type: string
                          maxLength: 40000
                          description: >-
                            A header value. Values are always read back masked
                            as `••••••••`; send the mask back to keep the stored
                            value. A header that has no stored value yet needs
                            its real value.
                      secretHeaders:
                        description: >-
                          Headers whose value is a workspace secret, by header
                          name. The secret's value is read when the tool runs,
                          so a new value reaches every tool and published
                          version that uses it, and it is never returned.
                        type: object
                        propertyNames:
                          type: string
                          maxLength: 100
                        additionalProperties:
                          type: string
                          minLength: 1
                          maxLength: 64
                          description: >-
                            The id of a workspace secret, as `GET /secrets`
                            lists it.
                      auth:
                        oneOf:
                          - type: object
                            properties:
                              type:
                                type: string
                                const: oauth2_client_credentials
                              tokenUrl:
                                type: string
                                maxLength: 2048
                                format: uri
                                description: >-
                                  The HTTPS address the access token is
                                  requested from, with the client credentials
                                  grant.
                              clientId:
                                type: string
                                minLength: 1
                                maxLength: 500
                              clientSecret:
                                type: string
                                minLength: 1
                                maxLength: 40000
                                description: >-
                                  The client secret. It is always read back
                                  masked as `••••••••`; send the mask back to
                                  keep the stored secret. Changing the token
                                  URL's or the tool's server origin needs the
                                  real secret again.
                              scope:
                                description: >-
                                  Space-separated scopes to request. Left out,
                                  the token request names none.
                                type: string
                                maxLength: 1000
                                pattern: >-
                                  ^(?:[\x21\x23-\x5B\x5D-\x7E]+(?:
                                  [\x21\x23-\x5B\x5D-\x7E]+)*)?$
                              clientAuthentication:
                                description: >-
                                  How the client ID and secret reach the token
                                  URL: `basic` (the default) in an HTTP Basic
                                  `Authorization` header, `body` as `client_id`
                                  and `client_secret` form fields.
                                type: string
                                enum:
                                  - basic
                                  - body
                            required:
                              - type
                              - tokenUrl
                              - clientId
                              - clientSecret
                        description: >-
                          How the tool signs in. Left out, the tool sends only
                          its headers. With OAuth 2.0 client credentials the
                          tool gets an access token from `tokenUrl`, reuses it
                          until shortly before it expires, and sends it as
                          `Authorization: Bearer`, so the tool cannot also have
                          its own `Authorization` header.
                      authConnectionId:
                        description: >-
                          The workspace auth connection the request signs in
                          with, as `GET /auth-connections` lists it. The
                          connection sends the `Authorization` header, so the
                          request cannot also have its own, and cannot also set
                          `auth`.
                        type: string
                        pattern: >-
                          ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
                      parameters:
                        $ref: '#/components/schemas/ToolParameters'
                      timeoutMs:
                        type: integer
                        minimum: 1000
                        maximum: 120000
                      followRedirects:
                        type: boolean
                      bodyEncoding:
                        type: string
                        enum:
                          - json
                          - form
                      responseFields:
                        maxItems: 50
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 500
                    required:
                      - kind
                      - url
                      - method
                      - headers
                      - parameters
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: CLIENT_TOOL
                      responseMocks:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                              maxLength: 140
                            when:
                              default: {}
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties:
                                $ref: '#/components/schemas/JsonValue'
                            conditions:
                              maxItems: 30
                              type: array
                              items:
                                $ref: '#/components/schemas/TestParameterAssertion'
                            response:
                              $ref: '#/components/schemas/JsonValue'
                            isError:
                              type: boolean
                          required:
                            - name
                            - when
                            - response
                      voice:
                        type: object
                        properties:
                          interruptions:
                            type: string
                            enum:
                              - allow
                              - execution
                              - whole_turn
                          preToolSpeech:
                            type: string
                            enum:
                              - auto
                              - force
                              - 'off'
                          speechText:
                            type: string
                            maxLength: 500
                          executionMode:
                            type: string
                            enum:
                              - immediate
                              - post_speech
                              - async
                          executionSound:
                            type: string
                            enum:
                              - none
                              - typing
                              - hold_music
                      errorHandling:
                        type: string
                        enum:
                          - auto
                          - summarized
                          - passthrough
                          - hide
                      dynamicVariables:
                        type: object
                        propertyNames:
                          type: string
                          minLength: 1
                          maxLength: 140
                        additionalProperties:
                          $ref: '#/components/schemas/JsonValue'
                      assignments:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            variable:
                              type: string
                              minLength: 1
                              maxLength: 140
                            path:
                              type: string
                              minLength: 1
                              maxLength: 500
                          required:
                            - variable
                            - path
                      parameters:
                        $ref: '#/components/schemas/ToolParameters'
                      waitForResponse:
                        default: false
                        type: boolean
                      timeoutMs:
                        default: 20000
                        type: integer
                        minimum: 1000
                        maximum: 120000
                    required:
                      - kind
                      - parameters
                      - waitForResponse
                      - timeoutMs
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: MCP_SERVER
                      responseMocks:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                              maxLength: 140
                            when:
                              default: {}
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties:
                                $ref: '#/components/schemas/JsonValue'
                            conditions:
                              maxItems: 30
                              type: array
                              items:
                                $ref: '#/components/schemas/TestParameterAssertion'
                            response:
                              $ref: '#/components/schemas/JsonValue'
                            isError:
                              type: boolean
                          required:
                            - name
                            - when
                            - response
                      voice:
                        type: object
                        properties:
                          interruptions:
                            type: string
                            enum:
                              - allow
                              - execution
                              - whole_turn
                          preToolSpeech:
                            type: string
                            enum:
                              - auto
                              - force
                              - 'off'
                          speechText:
                            type: string
                            maxLength: 500
                          executionMode:
                            type: string
                            enum:
                              - immediate
                              - post_speech
                              - async
                          executionSound:
                            type: string
                            enum:
                              - none
                              - typing
                              - hold_music
                      errorHandling:
                        type: string
                        enum:
                          - auto
                          - summarized
                          - passthrough
                          - hide
                      dynamicVariables:
                        type: object
                        propertyNames:
                          type: string
                          minLength: 1
                          maxLength: 140
                        additionalProperties:
                          $ref: '#/components/schemas/JsonValue'
                      assignments:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            variable:
                              type: string
                              minLength: 1
                              maxLength: 140
                            path:
                              type: string
                              minLength: 1
                              maxLength: 500
                          required:
                            - variable
                            - path
                      url:
                        type: string
                        maxLength: 2048
                        format: uri
                      headers:
                        default: {}
                        type: object
                        propertyNames:
                          type: string
                          maxLength: 100
                        additionalProperties:
                          type: string
                          maxLength: 40000
                          description: >-
                            A header value. Values are always read back masked
                            as `••••••••`; send the mask back to keep the stored
                            value. A header that has no stored value yet needs
                            its real value.
                      secretHeaders:
                        description: >-
                          Headers whose value is a workspace secret, by header
                          name. The secret's value is read when the tool runs,
                          so a new value reaches every tool and published
                          version that uses it, and it is never returned.
                        type: object
                        propertyNames:
                          type: string
                          maxLength: 100
                        additionalProperties:
                          type: string
                          minLength: 1
                          maxLength: 64
                          description: >-
                            The id of a workspace secret, as `GET /secrets`
                            lists it.
                      authConnectionId:
                        description: >-
                          The workspace auth connection the server's requests
                          sign in with, as `GET /auth-connections` lists it, on
                          discovery and on every tool call. The connection sends
                          the `Authorization` header, so the server cannot also
                          have an `Authorization` header or secret header of its
                          own.
                        type: string
                        pattern: >-
                          ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
                      allowedTools:
                        default: []
                        maxItems: 100
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 128
                      tools:
                        default: []
                        maxItems: 100
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                              maxLength: 128
                            description:
                              default: ''
                              type: string
                              maxLength: 8000
                            inputSchema:
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties: {}
                          required:
                            - name
                            - description
                            - inputSchema
                    required:
                      - kind
                      - url
                      - headers
                      - allowedTools
                      - tools
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: CODE_TOOL
                      responseMocks:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                              maxLength: 140
                            when:
                              default: {}
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties:
                                $ref: '#/components/schemas/JsonValue'
                            conditions:
                              maxItems: 30
                              type: array
                              items:
                                $ref: '#/components/schemas/TestParameterAssertion'
                            response:
                              $ref: '#/components/schemas/JsonValue'
                            isError:
                              type: boolean
                          required:
                            - name
                            - when
                            - response
                      voice:
                        type: object
                        properties:
                          interruptions:
                            type: string
                            enum:
                              - allow
                              - execution
                              - whole_turn
                          preToolSpeech:
                            type: string
                            enum:
                              - auto
                              - force
                              - 'off'
                          speechText:
                            type: string
                            maxLength: 500
                          executionMode:
                            type: string
                            enum:
                              - immediate
                              - post_speech
                              - async
                          executionSound:
                            type: string
                            enum:
                              - none
                              - typing
                              - hold_music
                      errorHandling:
                        type: string
                        enum:
                          - auto
                          - summarized
                          - passthrough
                          - hide
                      dynamicVariables:
                        type: object
                        propertyNames:
                          type: string
                          minLength: 1
                          maxLength: 140
                        additionalProperties:
                          $ref: '#/components/schemas/JsonValue'
                      assignments:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            variable:
                              type: string
                              minLength: 1
                              maxLength: 140
                            path:
                              type: string
                              minLength: 1
                              maxLength: 500
                          required:
                            - variable
                            - path
                      code:
                        type: string
                        minLength: 1
                        maxLength: 50000
                      parameters:
                        $ref: '#/components/schemas/ToolParameters'
                      timeoutMs:
                        default: 1000
                        type: integer
                        minimum: 50
                        maximum: 5000
                    required:
                      - kind
                      - code
                      - parameters
                      - timeoutMs
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: INTEGRATION_ACTION
                      responseMocks:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                              maxLength: 140
                            when:
                              default: {}
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties:
                                $ref: '#/components/schemas/JsonValue'
                            conditions:
                              maxItems: 30
                              type: array
                              items:
                                $ref: '#/components/schemas/TestParameterAssertion'
                            response:
                              $ref: '#/components/schemas/JsonValue'
                            isError:
                              type: boolean
                          required:
                            - name
                            - when
                            - response
                      voice:
                        type: object
                        properties:
                          interruptions:
                            type: string
                            enum:
                              - allow
                              - execution
                              - whole_turn
                          preToolSpeech:
                            type: string
                            enum:
                              - auto
                              - force
                              - 'off'
                          speechText:
                            type: string
                            maxLength: 500
                          executionMode:
                            type: string
                            enum:
                              - immediate
                              - post_speech
                              - async
                          executionSound:
                            type: string
                            enum:
                              - none
                              - typing
                              - hold_music
                      errorHandling:
                        type: string
                        enum:
                          - auto
                          - summarized
                          - passthrough
                          - hide
                      dynamicVariables:
                        type: object
                        propertyNames:
                          type: string
                          minLength: 1
                          maxLength: 140
                        additionalProperties:
                          $ref: '#/components/schemas/JsonValue'
                      assignments:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            variable:
                              type: string
                              minLength: 1
                              maxLength: 140
                            path:
                              type: string
                              minLength: 1
                              maxLength: 500
                          required:
                            - variable
                            - path
                      action:
                        oneOf:
                          - type: object
                            properties:
                              type:
                                type: string
                                const: messaging.send
                              channel:
                                default: sms
                                type: string
                                enum:
                                  - sms
                                  - email
                                  - input
                              templateName:
                                type: string
                                minLength: 1
                                maxLength: 140
                              language:
                                default: en
                                type: string
                                minLength: 2
                                maxLength: 16
                              recipient:
                                default: contact
                                type: string
                                enum:
                                  - contact
                                  - staff
                              staffAddress:
                                default: ''
                                type: string
                                maxLength: 320
                              consent:
                                default: conversation
                                type: string
                                enum:
                                  - conversation
                                  - recorded
                              fallbackChannel:
                                default: none
                                type: string
                                enum:
                                  - sms
                                  - email
                                  - none
                            required:
                              - type
                              - channel
                              - templateName
                              - language
                              - recipient
                              - staffAddress
                              - consent
                              - fallbackChannel
                          - type: object
                            properties:
                              type:
                                type: string
                                const: esign.prepare
                              connectionId:
                                type: string
                                minLength: 1
                                maxLength: 140
                              source:
                                default: adopt
                                type: string
                                enum:
                                  - adopt
                                  - template
                              templateId:
                                default: ''
                                type: string
                                maxLength: 100
                              signerRole:
                                default: ''
                                type: string
                                maxLength: 100
                              fields:
                                default: []
                                maxItems: 50
                                type: array
                                items:
                                  type: object
                                  properties:
                                    field:
                                      type: string
                                      minLength: 1
                                      maxLength: 100
                                    variable:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_.]{0,63}$
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - field
                                    - variable
                                    - required
                              signerSession:
                                default: link
                                type: string
                                enum:
                                  - link
                                  - docusign_email
                              linkTtlMinutes:
                                default: 60
                                type: integer
                                minimum: 5
                                maximum: 10080
                            required:
                              - type
                              - connectionId
                              - source
                              - templateId
                              - signerRole
                              - fields
                              - signerSession
                              - linkTtlMinutes
                          - type: object
                            properties:
                              type:
                                type: string
                                const: esign.sign_on_behalf
                              connectionId:
                                type: string
                                minLength: 1
                                maxLength: 140
                              consentScriptVersion:
                                type: string
                                minLength: 1
                                maxLength: 100
                              deliverChannel:
                                default: sms
                                type: string
                                enum:
                                  - sms
                                  - email
                              deliverTo:
                                type: string
                                minLength: 3
                                maxLength: 320
                              templateName:
                                type: string
                                minLength: 1
                                maxLength: 140
                              language:
                                default: en
                                type: string
                                minLength: 2
                                maxLength: 16
                              linkTtlMinutes:
                                default: 60
                                type: integer
                                minimum: 5
                                maximum: 10080
                            required:
                              - type
                              - connectionId
                              - consentScriptVersion
                              - deliverChannel
                              - deliverTo
                              - templateName
                              - language
                              - linkTtlMinutes
                          - type: object
                            properties:
                              type:
                                type: string
                                const: esign.signing_link
                              connectionId:
                                type: string
                                minLength: 1
                                maxLength: 140
                              linkTtlMinutes:
                                default: 60
                                type: integer
                                minimum: 5
                                maximum: 10080
                            required:
                              - type
                              - connectionId
                              - linkTtlMinutes
                          - type: object
                            properties:
                              type:
                                type: string
                                const: esign.status
                              connectionId:
                                type: string
                                minLength: 1
                                maxLength: 140
                            required:
                              - type
                              - connectionId
                          - type: object
                            properties:
                              type:
                                type: string
                                const: esign.void
                              connectionId:
                                type: string
                                minLength: 1
                                maxLength: 140
                            required:
                              - type
                              - connectionId
                          - type: object
                            properties:
                              type:
                                type: string
                                const: hubspot
                              connectionId:
                                type: string
                                minLength: 1
                                maxLength: 140
                              tool:
                                type: string
                                enum:
                                  - find_contact_by_email
                                  - get_contact
                                  - search_contacts
                                  - create_contact
                                  - update_contact
                                  - find_company_by_domain
                                  - get_company
                                  - search_companies
                                  - create_company
                                  - update_company
                                  - get_deal
                                  - get_deal_with_custom_properties
                                  - search_deals
                                  - create_deal
                                  - update_deal
                                  - log_call
                                  - create_meeting
                                  - create_note
                                  - get_note
                                  - search_notes
                                  - create_task
                                  - get_task
                                  - update_task
                                  - delete_task
                                  - search_tasks
                                  - get_contact_notes
                                  - get_contact_tasks
                                  - get_contact_companies
                                  - get_contact_deals
                                  - create_associations
                                  - get_associations
                                  - delete_associations
                            required:
                              - type
                              - connectionId
                              - tool
                    required:
                      - kind
                      - action
                  - type: object
                    properties:
                      kind:
                        type: string
                        const: BROWSER_FORM
                      responseMocks:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                              maxLength: 140
                            when:
                              default: {}
                              type: object
                              propertyNames:
                                type: string
                              additionalProperties:
                                $ref: '#/components/schemas/JsonValue'
                            conditions:
                              maxItems: 30
                              type: array
                              items:
                                $ref: '#/components/schemas/TestParameterAssertion'
                            response:
                              $ref: '#/components/schemas/JsonValue'
                            isError:
                              type: boolean
                          required:
                            - name
                            - when
                            - response
                      voice:
                        type: object
                        properties:
                          interruptions:
                            type: string
                            enum:
                              - allow
                              - execution
                              - whole_turn
                          preToolSpeech:
                            type: string
                            enum:
                              - auto
                              - force
                              - 'off'
                          speechText:
                            type: string
                            maxLength: 500
                          executionMode:
                            type: string
                            enum:
                              - immediate
                              - post_speech
                              - async
                          executionSound:
                            type: string
                            enum:
                              - none
                              - typing
                              - hold_music
                      errorHandling:
                        type: string
                        enum:
                          - auto
                          - summarized
                          - passthrough
                          - hide
                      dynamicVariables:
                        type: object
                        propertyNames:
                          type: string
                          minLength: 1
                          maxLength: 140
                        additionalProperties:
                          $ref: '#/components/schemas/JsonValue'
                      assignments:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            variable:
                              type: string
                              minLength: 1
                              maxLength: 140
                            path:
                              type: string
                              minLength: 1
                              maxLength: 500
                          required:
                            - variable
                            - path
                      page:
                        $ref: '#/components/schemas/WebFormPage'
                      allowedHosts:
                        minItems: 1
                        maxItems: 20
                        type: array
                        items:
                          type: string
                          pattern: >-
                            ^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$
                        description: >-
                          The hosts the browser may open, each with its
                          subdomains: `example.com` allows `forms.example.com`.
                          A page or a redirect anywhere else stops the call
                          before any value is typed.
                      before:
                        default: []
                        description: >-
                          Steps taken in order before the fields are filled,
                          such as accepting a disclosure. Each waits up to
                          `stepTimeoutMs` for its element to show and take a
                          click. A step whose element the page never shows,
                          because it shows the fields or the first submit step's
                          element instead, is skipped.
                        maxItems: 10
                        type: array
                        items:
                          $ref: '#/components/schemas/WebFormStep'
                      fields:
                        maxItems: 50
                        type: array
                        items:
                          $ref: '#/components/schemas/WebFormField'
                        description: >-
                          The fields to fill. Leave it empty for a run that only
                          takes its steps, such as signing an agreement.
                      submit:
                        default: []
                        description: >-
                          Steps clicked in order once every required field is
                          filled. Each waits up to `stepTimeoutMs` for its
                          element to show and take a click, on an allowed host;
                          the first one that doesn't stops the call. After the
                          last one the page may leave the allowed hosts. When a
                          step's element never shows before any submit step was
                          clicked, the call requests a fresh link and runs once
                          more, within `timeoutMs`.
                        maxItems: 10
                        type: array
                        items:
                          $ref: '#/components/schemas/WebFormStep'
                      doneWhen:
                        oneOf:
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: text
                              text:
                                type: string
                                minLength: 1
                                maxLength: 500
                            required:
                              - kind
                              - text
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: url
                              contains:
                                type: string
                                minLength: 1
                                maxLength: 500
                            required:
                              - kind
                              - contains
                        description: >-
                          What shows the form went through: text that appears on
                          the page, ignoring case, or part of the page address.
                          It is read on whatever page the last step leads to, on
                          any host.
                      parameters:
                        $ref: '#/components/schemas/ToolParameters'
                      timeoutMs:
                        type: integer
                        minimum: 10000
                        maximum: 90000
                      stepTimeoutMs:
                        description: >-
                          How long each step, and the fields after the steps
                          before them, wait for their element to show, in
                          milliseconds: 5,000 to 60,000, 20,000 when left out.
                          Never past `timeoutMs`.
                        type: integer
                        minimum: 5000
                        maximum: 60000
                    required:
                      - kind
                      - page
                      - allowedHosts
                      - before
                      - fields
                      - submit
                      - parameters
              id:
                type: string
              revision:
                type: number
            required:
              - name
              - description
              - configuration
              - id
              - revision
        criteria:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                minLength: 1
                maxLength: 100
              prompt:
                type: string
                minLength: 20
                maxLength: 10000
              enabled:
                default: true
                type: boolean
              analysis:
                type: object
                properties:
                  model:
                    default: null
                    anyOf:
                      - type: string
                        minLength: 1
                        maxLength: 100
                      - type: 'null'
                  scope:
                    default: conversation
                    type: string
                    enum:
                      - conversation
                      - agent
                  scoring:
                    default:
                      kind: binary
                    oneOf:
                      - type: object
                        properties:
                          kind:
                            type: string
                            const: binary
                        required:
                          - kind
                      - type: object
                        properties:
                          kind:
                            type: string
                            const: numeric
                          maxScore:
                            type: integer
                            minimum: 1
                            maximum: 1000
                          rubric:
                            type: string
                            maxLength: 10000
                        required:
                          - kind
                          - maxScore
                          - rubric
                required:
                  - model
                  - scope
                  - scoring
              id:
                type: string
              revision:
                type: number
            required:
              - name
              - prompt
              - enabled
              - id
              - revision
        tests:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                minLength: 1
                maxLength: 150
              simulatedUser:
                default: ''
                description: Required and nonempty for simulation tests.
                type: string
                maxLength: 10000
              successCriterion:
                default: ''
                description: Required and nonempty except for tool invocation tests.
                type: string
                maxLength: 10000
              channel:
                type: string
                enum:
                  - action-preview
                  - agent-page
                  - android-sdk
                  - api
                  - center-stage
                  - chat-bubble
                  - email
                  - instagram
                  - ios-sdk
                  - messenger
                  - phone
                  - playground
                  - qna-preview
                  - salesforce
                  - search
                  - slack
                  - sms
                  - whatsapp
                  - zendesk
                  - zendesk-messaging
              environment:
                description: >-
                  A named environment from the saved test. Defaults to
                  production.
                type: string
                minLength: 1
                maxLength: 100
              target:
                $ref: '#/components/schemas/TestTarget'
              agentOverrides:
                $ref: '#/components/schemas/TestAgentOverrides'
              voiceOverrides:
                $ref: '#/components/schemas/TestVoiceOverrides'
              startingWorkflowNodeId:
                type: string
                minLength: 1
                maxLength: 200
              dynamicVariables:
                maxItems: 100
                type: array
                items:
                  $ref: '#/components/schemas/TestDynamicVariable'
              environments:
                maxItems: 20
                type: array
                items:
                  $ref: '#/components/schemas/TestEnvironment'
              expectedWorkflowTransitions:
                maxItems: 100
                type: array
                items:
                  $ref: '#/components/schemas/TestWorkflowTransition'
              forbiddenWorkflowTransitions:
                description: >-
                  Moves that fail the test if the agent makes them. Leave
                  fromNodeId out to forbid reaching the node from anywhere.
                maxItems: 100
                type: array
                items:
                  $ref: '#/components/schemas/TestWorkflowTransition'
              guardrailCheck:
                description: Whether spam detection should flag the customer's messages.
                type: string
                enum:
                  - triggered
                  - not_triggered
              ignoreToolCalls:
                description: >-
                  For a tool invocation test that checks a workflow move or a
                  guardrail: don't fail it for the tools the agent called.
                type: boolean
              sourceConversation:
                type: object
                properties:
                  conversationId:
                    type: string
                    minLength: 1
                    maxLength: 200
                  messageId:
                    type: string
                    minLength: 1
                    maxLength: 200
                  source:
                    type: string
                    enum:
                      - action-preview
                      - agent-page
                      - android-sdk
                      - api
                      - center-stage
                      - chat-bubble
                      - email
                      - instagram
                      - ios-sdk
                      - messenger
                      - phone
                      - playground
                      - qna-preview
                      - salesforce
                      - search
                      - slack
                      - sms
                      - whatsapp
                      - zendesk
                      - zendesk-messaging
                  originalReply:
                    description: >-
                      What the agent did at this point in the conversation, for
                      comparison.
                    maxItems: 40
                    type: array
                    items:
                      oneOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: message
                            content:
                              type: string
                              minLength: 1
                              maxLength: 12000
                          required:
                            - kind
                            - content
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: transition
                            to:
                              type: string
                              minLength: 1
                              maxLength: 200
                          required:
                            - kind
                            - to
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: tool
                            name:
                              type: string
                              minLength: 1
                              maxLength: 200
                            actionId:
                              type: string
                              minLength: 1
                              maxLength: 200
                            input:
                              description: The tool's parameters as a JSON object.
                              type: string
                              maxLength: 12000
                            output:
                              type: string
                              maxLength: 12000
                              description: >-
                                The tool's result. Empty when it wasn't
                                recorded.
                            isError:
                              default: false
                              type: boolean
                          required:
                            - kind
                            - name
                            - input
                            - output
                            - isError
                          description: >-
                            A tool the agent ran, with the fields of a history
                            tool.
                required:
                  - conversationId
              maxTurns:
                type: integer
                minimum: 1
                maximum: 50
              expectedActions:
                maxItems: 100
                type: array
                items:
                  type: string
                  minLength: 1
                  maxLength: 150
              actionResponses:
                maxItems: 100
                type: array
                items:
                  $ref: '#/components/schemas/TestActionResponse'
              testType:
                type: string
                enum:
                  - simulation
                  - next_reply
                  - tool_invocation
                  - voice
              caller:
                description: >-
                  How a voice test's simulated caller sounds and behaves. Voice
                  tests are available to workspaces that have them turned on.
                type: object
                properties:
                  voice:
                    default: Kore
                    type: string
                    enum:
                      - Kore
                      - Aoede
                      - Leda
                      - Charon
                      - Puck
                      - Orus
                  talkativeness:
                    default: normal
                    type: string
                    enum:
                      - short
                      - normal
                      - storyteller
                  interruptions:
                    default: sometimes
                    type: string
                    enum:
                      - never
                      - sometimes
                      - often
                  backchannels:
                    default: true
                    type: boolean
                  hold:
                    type: object
                    properties:
                      seconds:
                        type: integer
                        minimum: 5
                        maximum: 120
                      returnLine:
                        type: string
                        maxLength: 500
                    required:
                      - seconds
                  line:
                    default: phone
                    type: string
                    enum:
                      - clean
                      - phone
                  maxMinutes:
                    default: 10
                    type: integer
                    minimum: 1
                    maximum: 15
                  direction:
                    type: string
                    enum:
                      - inbound
                      - outbound
                required:
                  - voice
                  - talkativeness
                  - interruptions
                  - backchannels
                  - line
                  - maxMinutes
              voiceChecks:
                description: >-
                  Timing a voice test requires: the response gap's 90th
                  percentile, the longest silence and how often the agent talks
                  over the caller.
                type: object
                properties:
                  maxResponseGapP90Seconds:
                    type: number
                    minimum: 0.5
                    maximum: 30
                  maxSilenceSeconds:
                    type: integer
                    minimum: 12
                    maximum: 120
                  ignoreSilenceDuringTools:
                    type: boolean
                  maxTalkOvers:
                    type: integer
                    minimum: 0
                    maximum: 100
              messages:
                description: >-
                  Context transcript. Next reply and tool invocation tests must
                  end with a user message.
                maxItems: 100
                type: array
                items:
                  $ref: '#/components/schemas/TestHistoryMessage'
              additionalCriteria:
                maxItems: 20
                type: array
                items:
                  type: string
                  minLength: 1
                  maxLength: 10000
              successExamples:
                maxItems: 20
                type: array
                items:
                  type: string
                  minLength: 1
                  maxLength: 10000
              failureExamples:
                maxItems: 20
                type: array
                items:
                  type: string
                  minLength: 1
                  maxLength: 10000
              expectedActionArguments:
                maxItems: 100
                type: array
                items:
                  $ref: '#/components/schemas/TestArgumentAssertion'
              simulatorModel:
                description: >-
                  `auto`, one of the default simulator models, or a
                  `provider/model` ID from the model catalog.
                type: string
                minLength: 1
                maxLength: 150
              judgeModel:
                description: Evaluator model ID from the supported model catalog.
                type: string
                minLength: 1
                maxLength: 150
              matchAnyAction:
                description: >-
                  For tool invocation tests, pass when at least one expected
                  tool call and its arguments match. Forbidden tools still fail.
                type: boolean
              forbiddenActions:
                maxItems: 100
                type: array
                items:
                  type: string
                  minLength: 1
                  maxLength: 150
              mockStrategy:
                type: string
                enum:
                  - all
                  - none
                  - selected
              mockFallback:
                type: string
                enum:
                  - error
                  - real
              mockedActions:
                maxItems: 100
                type: array
                items:
                  type: string
                  minLength: 1
                  maxLength: 150
              id:
                type: string
              revision:
                type: number
            required:
              - name
              - simulatedUser
              - successCriterion
              - maxTurns
              - expectedActions
              - actionResponses
              - id
              - revision
        testsRecorded:
          type: boolean
        voiceSettings:
          anyOf:
            - type: object
              propertyNames:
                type: string
              additionalProperties: {}
            - type: 'null'
        sources:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              title:
                type: string
              type:
                type: string
              content:
                type: string
              questions:
                type: array
                items:
                  type: string
              revision:
                type: number
            required:
              - id
              - title
              - type
              - content
              - questions
              - revision
        procedureSources:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              title:
                type: string
              type:
                type: string
              content:
                type: string
              questions:
                type: array
                items:
                  type: string
              revision:
                type: number
            required:
              - id
              - title
              - type
              - content
              - questions
              - revision
        specialistTargets:
          default: {}
          type: object
          propertyNames:
            type: string
          additionalProperties:
            type: object
            properties:
              instructions:
                type: string
              model:
                type: string
              activeTrainingId:
                type:
                  - string
                  - 'null'
              resourceIds:
                type: array
                items:
                  type: string
              sources:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    title:
                      type: string
                    type:
                      type: string
                    content:
                      type: string
                    questions:
                      type: array
                      items:
                        type: string
                    revision:
                      type: number
                  required:
                    - id
                    - title
                    - type
                    - content
                    - questions
                    - revision
              voiceSettings:
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
              procedureAgentId:
                type: string
              procedures:
                description: The target's procedures, as the editor saves them.
                type: array
                items:
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties:
                    $ref: '#/components/schemas/JsonValue'
              procedureSources:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    title:
                      type: string
                    type:
                      type: string
                    content:
                      type: string
                    questions:
                      type: array
                      items:
                        type: string
                    revision:
                      type: number
                  required:
                    - id
                    - title
                    - type
                    - content
                    - questions
                    - revision
              modelSettings:
                type: object
                properties:
                  chat:
                    type: object
                    properties:
                      temperature:
                        default: null
                        anyOf:
                          - type: number
                            minimum: 0
                            maximum: 1
                          - type: 'null'
                      maxTokens:
                        default: -1
                        anyOf:
                          - type: number
                            const: -1
                          - type: integer
                            minimum: 16
                            maximum: 32768
                      reasoningEffort:
                        default: null
                        anyOf:
                          - type: string
                            enum:
                              - none
                              - minimal
                              - low
                              - medium
                              - high
                              - xhigh
                              - max
                          - type: 'null'
                      parallelToolCalls:
                        default: true
                        type: boolean
                      backupModels:
                        default:
                          mode: default
                        oneOf:
                          - type: object
                            properties:
                              mode:
                                type: string
                                const: default
                            required:
                              - mode
                          - type: object
                            properties:
                              mode:
                                type: string
                                const: custom
                              models:
                                maxItems: 6
                                type: array
                                items:
                                  type: string
                                  minLength: 1
                                  maxLength: 100
                            required:
                              - mode
                              - models
                          - type: object
                            properties:
                              mode:
                                type: string
                                const: disabled
                            required:
                              - mode
                      serviceTier:
                        default: standard
                        type: string
                        enum:
                          - standard
                          - fast
                    required:
                      - temperature
                      - maxTokens
                      - reasoningEffort
                      - parallelToolCalls
                      - backupModels
                      - serviceTier
                  call:
                    anyOf:
                      - type: object
                        properties:
                          temperature:
                            default: null
                            anyOf:
                              - type: number
                                minimum: 0
                                maximum: 1
                              - type: 'null'
                          maxTokens:
                            default: -1
                            anyOf:
                              - type: number
                                const: -1
                              - type: integer
                                minimum: 16
                                maximum: 32768
                          reasoningEffort:
                            default: null
                            anyOf:
                              - type: string
                                enum:
                                  - none
                                  - minimal
                                  - low
                                  - medium
                                  - high
                                  - xhigh
                                  - max
                              - type: 'null'
                          parallelToolCalls:
                            default: true
                            type: boolean
                          backupModels:
                            default:
                              mode: default
                            oneOf:
                              - type: object
                                properties:
                                  mode:
                                    type: string
                                    const: default
                                required:
                                  - mode
                              - type: object
                                properties:
                                  mode:
                                    type: string
                                    const: custom
                                  models:
                                    maxItems: 6
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                      maxLength: 100
                                required:
                                  - mode
                                  - models
                              - type: object
                                properties:
                                  mode:
                                    type: string
                                    const: disabled
                                required:
                                  - mode
                          serviceTier:
                            default: standard
                            type: string
                            enum:
                              - standard
                              - fast
                        required:
                          - temperature
                          - maxTokens
                          - reasoningEffort
                          - parallelToolCalls
                          - backupModels
                          - serviceTier
                      - type: 'null'
                required:
                  - chat
                  - call
            required:
              - instructions
              - model
              - activeTrainingId
              - resourceIds
              - sources
      required:
        - format
        - resourceIds
        - settings
        - actions
        - resources
        - criteria
        - voiceSettings
        - sources
        - specialistTargets
      description: >-
        An agent's whole configuration on a branch or in a version. Secrets are
        masked, and content synced from a connected integration reads empty;
        send the masks back to keep the values.
    JsonValue:
      anyOf:
        - type: string
        - type: number
        - type: boolean
        - type: 'null'
        - type: array
          items:
            $ref: '#/components/schemas/JsonValue'
        - type: object
          propertyNames:
            type: string
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
    TestParameterAssertion:
      oneOf:
        - type: object
          properties:
            name:
              type: string
              minLength: 1
              maxLength: 150
            validation:
              type: string
              const: anything
            value:
              $ref: '#/components/schemas/JsonValue'
              default: null
              description: >-
                Optional for anything, which requires the named parameter to be
                present.
          required:
            - name
            - validation
            - value
        - type: object
          properties:
            name:
              type: string
              minLength: 1
              maxLength: 150
            validation:
              type: string
              enum:
                - exact
                - regex
                - llm
            value:
              $ref: '#/components/schemas/JsonValue'
          required:
            - name
            - validation
            - value
          description: >-
            `value` is the exact JSON value, a regex string, or an LLM
            requirement string.
    ToolParameters:
      maxItems: 30
      type: array
      items:
        type: object
        properties:
          description:
            default: ''
            type: string
            maxLength: 2000
          type:
            type: string
            enum:
              - string
              - number
              - boolean
              - integer
              - object
              - array
          enumValues:
            maxItems: 100
            type: array
            items:
              type: string
              maxLength: 1000
          properties:
            maxItems: 30
            type: array
            items:
              type: object
              properties:
                description:
                  default: ''
                  type: string
                  maxLength: 2000
                type:
                  type: string
                  enum:
                    - string
                    - number
                    - boolean
                    - integer
                    - object
                    - array
                enumValues:
                  maxItems: 100
                  type: array
                  items:
                    type: string
                    maxLength: 1000
                properties:
                  maxItems: 30
                  type: array
                  items:
                    type: object
                    properties:
                      description:
                        default: ''
                        type: string
                        maxLength: 2000
                      type:
                        type: string
                        enum:
                          - string
                          - number
                          - boolean
                          - integer
                          - object
                          - array
                      enumValues:
                        maxItems: 100
                        type: array
                        items:
                          type: string
                          maxLength: 1000
                      properties:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            description:
                              default: ''
                              type: string
                              maxLength: 2000
                            type:
                              type: string
                              enum:
                                - string
                                - number
                                - boolean
                                - integer
                                - object
                                - array
                            enumValues:
                              maxItems: 100
                              type: array
                              items:
                                type: string
                                maxLength: 1000
                            properties:
                              maxItems: 30
                              type: array
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    maxItems: 30
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        description:
                                          default: ''
                                          type: string
                                          maxLength: 2000
                                        type:
                                          type: string
                                          enum:
                                            - string
                                            - number
                                            - boolean
                                            - integer
                                            - object
                                            - array
                                        enumValues:
                                          maxItems: 100
                                          type: array
                                          items:
                                            type: string
                                            maxLength: 1000
                                        properties:
                                          not: {}
                                        items:
                                          not: {}
                                        name:
                                          type: string
                                          pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                        location:
                                          type: string
                                          enum:
                                            - path
                                            - query
                                            - body
                                        valueSource:
                                          type: string
                                          enum:
                                            - llm
                                            - static
                                            - dynamic
                                        dynamicVariable:
                                          type: string
                                          minLength: 1
                                          maxLength: 140
                                        staticValue:
                                          $ref: '#/components/schemas/JsonValue'
                                        required:
                                          default: true
                                          type: boolean
                                      required:
                                        - description
                                        - type
                                        - name
                                        - required
                                  items:
                                    type: object
                                    properties:
                                      description:
                                        default: ''
                                        type: string
                                        maxLength: 2000
                                      type:
                                        type: string
                                        enum:
                                          - string
                                          - number
                                          - boolean
                                          - integer
                                          - object
                                          - array
                                      enumValues:
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 1000
                                      properties:
                                        not: {}
                                      items:
                                        not: {}
                                    required:
                                      - description
                                      - type
                                  name:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  location:
                                    type: string
                                    enum:
                                      - path
                                      - query
                                      - body
                                  valueSource:
                                    type: string
                                    enum:
                                      - llm
                                      - static
                                      - dynamic
                                  dynamicVariable:
                                    type: string
                                    minLength: 1
                                    maxLength: 140
                                  staticValue:
                                    $ref: '#/components/schemas/JsonValue'
                                  required:
                                    default: true
                                    type: boolean
                                required:
                                  - description
                                  - type
                                  - name
                                  - required
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  maxItems: 30
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      description:
                                        default: ''
                                        type: string
                                        maxLength: 2000
                                      type:
                                        type: string
                                        enum:
                                          - string
                                          - number
                                          - boolean
                                          - integer
                                          - object
                                          - array
                                      enumValues:
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 1000
                                      properties:
                                        not: {}
                                      items:
                                        not: {}
                                      name:
                                        type: string
                                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                      location:
                                        type: string
                                        enum:
                                          - path
                                          - query
                                          - body
                                      valueSource:
                                        type: string
                                        enum:
                                          - llm
                                          - static
                                          - dynamic
                                      dynamicVariable:
                                        type: string
                                        minLength: 1
                                        maxLength: 140
                                      staticValue:
                                        $ref: '#/components/schemas/JsonValue'
                                      required:
                                        default: true
                                        type: boolean
                                    required:
                                      - description
                                      - type
                                      - name
                                      - required
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                  required:
                                    - description
                                    - type
                              required:
                                - description
                                - type
                            name:
                              type: string
                              pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            location:
                              type: string
                              enum:
                                - path
                                - query
                                - body
                            valueSource:
                              type: string
                              enum:
                                - llm
                                - static
                                - dynamic
                            dynamicVariable:
                              type: string
                              minLength: 1
                              maxLength: 140
                            staticValue:
                              $ref: '#/components/schemas/JsonValue'
                            required:
                              default: true
                              type: boolean
                          required:
                            - description
                            - type
                            - name
                            - required
                      items:
                        type: object
                        properties:
                          description:
                            default: ''
                            type: string
                            maxLength: 2000
                          type:
                            type: string
                            enum:
                              - string
                              - number
                              - boolean
                              - integer
                              - object
                              - array
                          enumValues:
                            maxItems: 100
                            type: array
                            items:
                              type: string
                              maxLength: 1000
                          properties:
                            maxItems: 30
                            type: array
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  maxItems: 30
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      description:
                                        default: ''
                                        type: string
                                        maxLength: 2000
                                      type:
                                        type: string
                                        enum:
                                          - string
                                          - number
                                          - boolean
                                          - integer
                                          - object
                                          - array
                                      enumValues:
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 1000
                                      properties:
                                        not: {}
                                      items:
                                        not: {}
                                      name:
                                        type: string
                                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                      location:
                                        type: string
                                        enum:
                                          - path
                                          - query
                                          - body
                                      valueSource:
                                        type: string
                                        enum:
                                          - llm
                                          - static
                                          - dynamic
                                      dynamicVariable:
                                        type: string
                                        minLength: 1
                                        maxLength: 140
                                      staticValue:
                                        $ref: '#/components/schemas/JsonValue'
                                      required:
                                        default: true
                                        type: boolean
                                    required:
                                      - description
                                      - type
                                      - name
                                      - required
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                  required:
                                    - description
                                    - type
                                name:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                location:
                                  type: string
                                  enum:
                                    - path
                                    - query
                                    - body
                                valueSource:
                                  type: string
                                  enum:
                                    - llm
                                    - static
                                    - dynamic
                                dynamicVariable:
                                  type: string
                                  minLength: 1
                                  maxLength: 140
                                staticValue:
                                  $ref: '#/components/schemas/JsonValue'
                                required:
                                  default: true
                                  type: boolean
                              required:
                                - description
                                - type
                                - name
                                - required
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                    name:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    location:
                                      type: string
                                      enum:
                                        - path
                                        - query
                                        - body
                                    valueSource:
                                      type: string
                                      enum:
                                        - llm
                                        - static
                                        - dynamic
                                    dynamicVariable:
                                      type: string
                                      minLength: 1
                                      maxLength: 140
                                    staticValue:
                                      $ref: '#/components/schemas/JsonValue'
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - description
                                    - type
                                    - name
                                    - required
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                required:
                                  - description
                                  - type
                            required:
                              - description
                              - type
                        required:
                          - description
                          - type
                      name:
                        type: string
                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                      location:
                        type: string
                        enum:
                          - path
                          - query
                          - body
                      valueSource:
                        type: string
                        enum:
                          - llm
                          - static
                          - dynamic
                      dynamicVariable:
                        type: string
                        minLength: 1
                        maxLength: 140
                      staticValue:
                        $ref: '#/components/schemas/JsonValue'
                      required:
                        default: true
                        type: boolean
                    required:
                      - description
                      - type
                      - name
                      - required
                items:
                  type: object
                  properties:
                    description:
                      default: ''
                      type: string
                      maxLength: 2000
                    type:
                      type: string
                      enum:
                        - string
                        - number
                        - boolean
                        - integer
                        - object
                        - array
                    enumValues:
                      maxItems: 100
                      type: array
                      items:
                        type: string
                        maxLength: 1000
                    properties:
                      maxItems: 30
                      type: array
                      items:
                        type: object
                        properties:
                          description:
                            default: ''
                            type: string
                            maxLength: 2000
                          type:
                            type: string
                            enum:
                              - string
                              - number
                              - boolean
                              - integer
                              - object
                              - array
                          enumValues:
                            maxItems: 100
                            type: array
                            items:
                              type: string
                              maxLength: 1000
                          properties:
                            maxItems: 30
                            type: array
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  maxItems: 30
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      description:
                                        default: ''
                                        type: string
                                        maxLength: 2000
                                      type:
                                        type: string
                                        enum:
                                          - string
                                          - number
                                          - boolean
                                          - integer
                                          - object
                                          - array
                                      enumValues:
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 1000
                                      properties:
                                        not: {}
                                      items:
                                        not: {}
                                      name:
                                        type: string
                                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                      location:
                                        type: string
                                        enum:
                                          - path
                                          - query
                                          - body
                                      valueSource:
                                        type: string
                                        enum:
                                          - llm
                                          - static
                                          - dynamic
                                      dynamicVariable:
                                        type: string
                                        minLength: 1
                                        maxLength: 140
                                      staticValue:
                                        $ref: '#/components/schemas/JsonValue'
                                      required:
                                        default: true
                                        type: boolean
                                    required:
                                      - description
                                      - type
                                      - name
                                      - required
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                  required:
                                    - description
                                    - type
                                name:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                location:
                                  type: string
                                  enum:
                                    - path
                                    - query
                                    - body
                                valueSource:
                                  type: string
                                  enum:
                                    - llm
                                    - static
                                    - dynamic
                                dynamicVariable:
                                  type: string
                                  minLength: 1
                                  maxLength: 140
                                staticValue:
                                  $ref: '#/components/schemas/JsonValue'
                                required:
                                  default: true
                                  type: boolean
                              required:
                                - description
                                - type
                                - name
                                - required
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                    name:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    location:
                                      type: string
                                      enum:
                                        - path
                                        - query
                                        - body
                                    valueSource:
                                      type: string
                                      enum:
                                        - llm
                                        - static
                                        - dynamic
                                    dynamicVariable:
                                      type: string
                                      minLength: 1
                                      maxLength: 140
                                    staticValue:
                                      $ref: '#/components/schemas/JsonValue'
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - description
                                    - type
                                    - name
                                    - required
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                required:
                                  - description
                                  - type
                            required:
                              - description
                              - type
                          name:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                          location:
                            type: string
                            enum:
                              - path
                              - query
                              - body
                          valueSource:
                            type: string
                            enum:
                              - llm
                              - static
                              - dynamic
                          dynamicVariable:
                            type: string
                            minLength: 1
                            maxLength: 140
                          staticValue:
                            $ref: '#/components/schemas/JsonValue'
                          required:
                            default: true
                            type: boolean
                        required:
                          - description
                          - type
                          - name
                          - required
                    items:
                      type: object
                      properties:
                        description:
                          default: ''
                          type: string
                          maxLength: 2000
                        type:
                          type: string
                          enum:
                            - string
                            - number
                            - boolean
                            - integer
                            - object
                            - array
                        enumValues:
                          maxItems: 100
                          type: array
                          items:
                            type: string
                            maxLength: 1000
                        properties:
                          maxItems: 30
                          type: array
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                    name:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    location:
                                      type: string
                                      enum:
                                        - path
                                        - query
                                        - body
                                    valueSource:
                                      type: string
                                      enum:
                                        - llm
                                        - static
                                        - dynamic
                                    dynamicVariable:
                                      type: string
                                      minLength: 1
                                      maxLength: 140
                                    staticValue:
                                      $ref: '#/components/schemas/JsonValue'
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - description
                                    - type
                                    - name
                                    - required
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                required:
                                  - description
                                  - type
                              name:
                                type: string
                                pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                              location:
                                type: string
                                enum:
                                  - path
                                  - query
                                  - body
                              valueSource:
                                type: string
                                enum:
                                  - llm
                                  - static
                                  - dynamic
                              dynamicVariable:
                                type: string
                                minLength: 1
                                maxLength: 140
                              staticValue:
                                $ref: '#/components/schemas/JsonValue'
                              required:
                                default: true
                                type: boolean
                            required:
                              - description
                              - type
                              - name
                              - required
                        items:
                          type: object
                          properties:
                            description:
                              default: ''
                              type: string
                              maxLength: 2000
                            type:
                              type: string
                              enum:
                                - string
                                - number
                                - boolean
                                - integer
                                - object
                                - array
                            enumValues:
                              maxItems: 100
                              type: array
                              items:
                                type: string
                                maxLength: 1000
                            properties:
                              maxItems: 30
                              type: array
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                  name:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  location:
                                    type: string
                                    enum:
                                      - path
                                      - query
                                      - body
                                  valueSource:
                                    type: string
                                    enum:
                                      - llm
                                      - static
                                      - dynamic
                                  dynamicVariable:
                                    type: string
                                    minLength: 1
                                    maxLength: 140
                                  staticValue:
                                    $ref: '#/components/schemas/JsonValue'
                                  required:
                                    default: true
                                    type: boolean
                                required:
                                  - description
                                  - type
                                  - name
                                  - required
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  not: {}
                                items:
                                  not: {}
                              required:
                                - description
                                - type
                          required:
                            - description
                            - type
                      required:
                        - description
                        - type
                  required:
                    - description
                    - type
                name:
                  type: string
                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                location:
                  type: string
                  enum:
                    - path
                    - query
                    - body
                valueSource:
                  type: string
                  enum:
                    - llm
                    - static
                    - dynamic
                dynamicVariable:
                  type: string
                  minLength: 1
                  maxLength: 140
                staticValue:
                  $ref: '#/components/schemas/JsonValue'
                required:
                  default: true
                  type: boolean
              required:
                - description
                - type
                - name
                - required
          items:
            type: object
            properties:
              description:
                default: ''
                type: string
                maxLength: 2000
              type:
                type: string
                enum:
                  - string
                  - number
                  - boolean
                  - integer
                  - object
                  - array
              enumValues:
                maxItems: 100
                type: array
                items:
                  type: string
                  maxLength: 1000
              properties:
                maxItems: 30
                type: array
                items:
                  type: object
                  properties:
                    description:
                      default: ''
                      type: string
                      maxLength: 2000
                    type:
                      type: string
                      enum:
                        - string
                        - number
                        - boolean
                        - integer
                        - object
                        - array
                    enumValues:
                      maxItems: 100
                      type: array
                      items:
                        type: string
                        maxLength: 1000
                    properties:
                      maxItems: 30
                      type: array
                      items:
                        type: object
                        properties:
                          description:
                            default: ''
                            type: string
                            maxLength: 2000
                          type:
                            type: string
                            enum:
                              - string
                              - number
                              - boolean
                              - integer
                              - object
                              - array
                          enumValues:
                            maxItems: 100
                            type: array
                            items:
                              type: string
                              maxLength: 1000
                          properties:
                            maxItems: 30
                            type: array
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  maxItems: 30
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      description:
                                        default: ''
                                        type: string
                                        maxLength: 2000
                                      type:
                                        type: string
                                        enum:
                                          - string
                                          - number
                                          - boolean
                                          - integer
                                          - object
                                          - array
                                      enumValues:
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 1000
                                      properties:
                                        not: {}
                                      items:
                                        not: {}
                                      name:
                                        type: string
                                        pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                      location:
                                        type: string
                                        enum:
                                          - path
                                          - query
                                          - body
                                      valueSource:
                                        type: string
                                        enum:
                                          - llm
                                          - static
                                          - dynamic
                                      dynamicVariable:
                                        type: string
                                        minLength: 1
                                        maxLength: 140
                                      staticValue:
                                        $ref: '#/components/schemas/JsonValue'
                                      required:
                                        default: true
                                        type: boolean
                                    required:
                                      - description
                                      - type
                                      - name
                                      - required
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                  required:
                                    - description
                                    - type
                                name:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                location:
                                  type: string
                                  enum:
                                    - path
                                    - query
                                    - body
                                valueSource:
                                  type: string
                                  enum:
                                    - llm
                                    - static
                                    - dynamic
                                dynamicVariable:
                                  type: string
                                  minLength: 1
                                  maxLength: 140
                                staticValue:
                                  $ref: '#/components/schemas/JsonValue'
                                required:
                                  default: true
                                  type: boolean
                              required:
                                - description
                                - type
                                - name
                                - required
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                    name:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    location:
                                      type: string
                                      enum:
                                        - path
                                        - query
                                        - body
                                    valueSource:
                                      type: string
                                      enum:
                                        - llm
                                        - static
                                        - dynamic
                                    dynamicVariable:
                                      type: string
                                      minLength: 1
                                      maxLength: 140
                                    staticValue:
                                      $ref: '#/components/schemas/JsonValue'
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - description
                                    - type
                                    - name
                                    - required
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                required:
                                  - description
                                  - type
                            required:
                              - description
                              - type
                          name:
                            type: string
                            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                          location:
                            type: string
                            enum:
                              - path
                              - query
                              - body
                          valueSource:
                            type: string
                            enum:
                              - llm
                              - static
                              - dynamic
                          dynamicVariable:
                            type: string
                            minLength: 1
                            maxLength: 140
                          staticValue:
                            $ref: '#/components/schemas/JsonValue'
                          required:
                            default: true
                            type: boolean
                        required:
                          - description
                          - type
                          - name
                          - required
                    items:
                      type: object
                      properties:
                        description:
                          default: ''
                          type: string
                          maxLength: 2000
                        type:
                          type: string
                          enum:
                            - string
                            - number
                            - boolean
                            - integer
                            - object
                            - array
                        enumValues:
                          maxItems: 100
                          type: array
                          items:
                            type: string
                            maxLength: 1000
                        properties:
                          maxItems: 30
                          type: array
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                    name:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    location:
                                      type: string
                                      enum:
                                        - path
                                        - query
                                        - body
                                    valueSource:
                                      type: string
                                      enum:
                                        - llm
                                        - static
                                        - dynamic
                                    dynamicVariable:
                                      type: string
                                      minLength: 1
                                      maxLength: 140
                                    staticValue:
                                      $ref: '#/components/schemas/JsonValue'
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - description
                                    - type
                                    - name
                                    - required
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                required:
                                  - description
                                  - type
                              name:
                                type: string
                                pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                              location:
                                type: string
                                enum:
                                  - path
                                  - query
                                  - body
                              valueSource:
                                type: string
                                enum:
                                  - llm
                                  - static
                                  - dynamic
                              dynamicVariable:
                                type: string
                                minLength: 1
                                maxLength: 140
                              staticValue:
                                $ref: '#/components/schemas/JsonValue'
                              required:
                                default: true
                                type: boolean
                            required:
                              - description
                              - type
                              - name
                              - required
                        items:
                          type: object
                          properties:
                            description:
                              default: ''
                              type: string
                              maxLength: 2000
                            type:
                              type: string
                              enum:
                                - string
                                - number
                                - boolean
                                - integer
                                - object
                                - array
                            enumValues:
                              maxItems: 100
                              type: array
                              items:
                                type: string
                                maxLength: 1000
                            properties:
                              maxItems: 30
                              type: array
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                  name:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  location:
                                    type: string
                                    enum:
                                      - path
                                      - query
                                      - body
                                  valueSource:
                                    type: string
                                    enum:
                                      - llm
                                      - static
                                      - dynamic
                                  dynamicVariable:
                                    type: string
                                    minLength: 1
                                    maxLength: 140
                                  staticValue:
                                    $ref: '#/components/schemas/JsonValue'
                                  required:
                                    default: true
                                    type: boolean
                                required:
                                  - description
                                  - type
                                  - name
                                  - required
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  not: {}
                                items:
                                  not: {}
                              required:
                                - description
                                - type
                          required:
                            - description
                            - type
                      required:
                        - description
                        - type
                    name:
                      type: string
                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                    location:
                      type: string
                      enum:
                        - path
                        - query
                        - body
                    valueSource:
                      type: string
                      enum:
                        - llm
                        - static
                        - dynamic
                    dynamicVariable:
                      type: string
                      minLength: 1
                      maxLength: 140
                    staticValue:
                      $ref: '#/components/schemas/JsonValue'
                    required:
                      default: true
                      type: boolean
                  required:
                    - description
                    - type
                    - name
                    - required
              items:
                type: object
                properties:
                  description:
                    default: ''
                    type: string
                    maxLength: 2000
                  type:
                    type: string
                    enum:
                      - string
                      - number
                      - boolean
                      - integer
                      - object
                      - array
                  enumValues:
                    maxItems: 100
                    type: array
                    items:
                      type: string
                      maxLength: 1000
                  properties:
                    maxItems: 30
                    type: array
                    items:
                      type: object
                      properties:
                        description:
                          default: ''
                          type: string
                          maxLength: 2000
                        type:
                          type: string
                          enum:
                            - string
                            - number
                            - boolean
                            - integer
                            - object
                            - array
                        enumValues:
                          maxItems: 100
                          type: array
                          items:
                            type: string
                            maxLength: 1000
                        properties:
                          maxItems: 30
                          type: array
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    description:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    type:
                                      type: string
                                      enum:
                                        - string
                                        - number
                                        - boolean
                                        - integer
                                        - object
                                        - array
                                    enumValues:
                                      maxItems: 100
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 1000
                                    properties:
                                      not: {}
                                    items:
                                      not: {}
                                    name:
                                      type: string
                                      pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                    location:
                                      type: string
                                      enum:
                                        - path
                                        - query
                                        - body
                                    valueSource:
                                      type: string
                                      enum:
                                        - llm
                                        - static
                                        - dynamic
                                    dynamicVariable:
                                      type: string
                                      minLength: 1
                                      maxLength: 140
                                    staticValue:
                                      $ref: '#/components/schemas/JsonValue'
                                    required:
                                      default: true
                                      type: boolean
                                  required:
                                    - description
                                    - type
                                    - name
                                    - required
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                required:
                                  - description
                                  - type
                              name:
                                type: string
                                pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                              location:
                                type: string
                                enum:
                                  - path
                                  - query
                                  - body
                              valueSource:
                                type: string
                                enum:
                                  - llm
                                  - static
                                  - dynamic
                              dynamicVariable:
                                type: string
                                minLength: 1
                                maxLength: 140
                              staticValue:
                                $ref: '#/components/schemas/JsonValue'
                              required:
                                default: true
                                type: boolean
                            required:
                              - description
                              - type
                              - name
                              - required
                        items:
                          type: object
                          properties:
                            description:
                              default: ''
                              type: string
                              maxLength: 2000
                            type:
                              type: string
                              enum:
                                - string
                                - number
                                - boolean
                                - integer
                                - object
                                - array
                            enumValues:
                              maxItems: 100
                              type: array
                              items:
                                type: string
                                maxLength: 1000
                            properties:
                              maxItems: 30
                              type: array
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                  name:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  location:
                                    type: string
                                    enum:
                                      - path
                                      - query
                                      - body
                                  valueSource:
                                    type: string
                                    enum:
                                      - llm
                                      - static
                                      - dynamic
                                  dynamicVariable:
                                    type: string
                                    minLength: 1
                                    maxLength: 140
                                  staticValue:
                                    $ref: '#/components/schemas/JsonValue'
                                  required:
                                    default: true
                                    type: boolean
                                required:
                                  - description
                                  - type
                                  - name
                                  - required
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  not: {}
                                items:
                                  not: {}
                              required:
                                - description
                                - type
                          required:
                            - description
                            - type
                        name:
                          type: string
                          pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                        location:
                          type: string
                          enum:
                            - path
                            - query
                            - body
                        valueSource:
                          type: string
                          enum:
                            - llm
                            - static
                            - dynamic
                        dynamicVariable:
                          type: string
                          minLength: 1
                          maxLength: 140
                        staticValue:
                          $ref: '#/components/schemas/JsonValue'
                        required:
                          default: true
                          type: boolean
                      required:
                        - description
                        - type
                        - name
                        - required
                  items:
                    type: object
                    properties:
                      description:
                        default: ''
                        type: string
                        maxLength: 2000
                      type:
                        type: string
                        enum:
                          - string
                          - number
                          - boolean
                          - integer
                          - object
                          - array
                      enumValues:
                        maxItems: 100
                        type: array
                        items:
                          type: string
                          maxLength: 1000
                      properties:
                        maxItems: 30
                        type: array
                        items:
                          type: object
                          properties:
                            description:
                              default: ''
                              type: string
                              maxLength: 2000
                            type:
                              type: string
                              enum:
                                - string
                                - number
                                - boolean
                                - integer
                                - object
                                - array
                            enumValues:
                              maxItems: 100
                              type: array
                              items:
                                type: string
                                maxLength: 1000
                            properties:
                              maxItems: 30
                              type: array
                              items:
                                type: object
                                properties:
                                  description:
                                    default: ''
                                    type: string
                                    maxLength: 2000
                                  type:
                                    type: string
                                    enum:
                                      - string
                                      - number
                                      - boolean
                                      - integer
                                      - object
                                      - array
                                  enumValues:
                                    maxItems: 100
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 1000
                                  properties:
                                    not: {}
                                  items:
                                    not: {}
                                  name:
                                    type: string
                                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                  location:
                                    type: string
                                    enum:
                                      - path
                                      - query
                                      - body
                                  valueSource:
                                    type: string
                                    enum:
                                      - llm
                                      - static
                                      - dynamic
                                  dynamicVariable:
                                    type: string
                                    minLength: 1
                                    maxLength: 140
                                  staticValue:
                                    $ref: '#/components/schemas/JsonValue'
                                  required:
                                    default: true
                                    type: boolean
                                required:
                                  - description
                                  - type
                                  - name
                                  - required
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  not: {}
                                items:
                                  not: {}
                              required:
                                - description
                                - type
                            name:
                              type: string
                              pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                            location:
                              type: string
                              enum:
                                - path
                                - query
                                - body
                            valueSource:
                              type: string
                              enum:
                                - llm
                                - static
                                - dynamic
                            dynamicVariable:
                              type: string
                              minLength: 1
                              maxLength: 140
                            staticValue:
                              $ref: '#/components/schemas/JsonValue'
                            required:
                              default: true
                              type: boolean
                          required:
                            - description
                            - type
                            - name
                            - required
                      items:
                        type: object
                        properties:
                          description:
                            default: ''
                            type: string
                            maxLength: 2000
                          type:
                            type: string
                            enum:
                              - string
                              - number
                              - boolean
                              - integer
                              - object
                              - array
                          enumValues:
                            maxItems: 100
                            type: array
                            items:
                              type: string
                              maxLength: 1000
                          properties:
                            maxItems: 30
                            type: array
                            items:
                              type: object
                              properties:
                                description:
                                  default: ''
                                  type: string
                                  maxLength: 2000
                                type:
                                  type: string
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - object
                                    - array
                                enumValues:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 1000
                                properties:
                                  not: {}
                                items:
                                  not: {}
                                name:
                                  type: string
                                  pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
                                location:
                                  type: string
                                  enum:
                                    - path
                                    - query
                                    - body
                                valueSource:
                                  type: string
                                  enum:
                                    - llm
                                    - static
                                    - dynamic
                                dynamicVariable:
                                  type: string
                                  minLength: 1
                                  maxLength: 140
                                staticValue:
                                  $ref: '#/components/schemas/JsonValue'
                                required:
                                  default: true
                                  type: boolean
                              required:
                                - description
                                - type
                                - name
                                - required
                          items:
                            type: object
                            properties:
                              description:
                                default: ''
                                type: string
                                maxLength: 2000
                              type:
                                type: string
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - integer
                                  - object
                                  - array
                              enumValues:
                                maxItems: 100
                                type: array
                                items:
                                  type: string
                                  maxLength: 1000
                              properties:
                                not: {}
                              items:
                                not: {}
                            required:
                              - description
                              - type
                        required:
                          - description
                          - type
                    required:
                      - description
                      - type
                required:
                  - description
                  - type
            required:
              - description
              - type
          name:
            type: string
            pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
          location:
            type: string
            enum:
              - path
              - query
              - body
          valueSource:
            type: string
            enum:
              - llm
              - static
              - dynamic
          dynamicVariable:
            type: string
            minLength: 1
            maxLength: 140
          staticValue:
            $ref: '#/components/schemas/JsonValue'
          required:
            default: true
            type: boolean
        required:
          - description
          - type
          - name
          - required
    WebFormPage:
      oneOf:
        - type: object
          properties:
            from:
              type: string
              const: url
            url:
              type: string
              maxLength: 2048
              format: uri
              description: >-
                The form's address. Use `{parameter}` in its path for a path
                parameter.
          required:
            - from
            - url
        - type: object
          properties:
            from:
              type: string
              const: request
            method:
              default: POST
              type: string
              enum:
                - GET
                - POST
                - PUT
                - PATCH
            url:
              type: string
              maxLength: 2048
              format: uri
              description: >-
                The API address that answers with a link to the form. Use
                `{parameter}` in its path for a path parameter.
            headers:
              default: {}
              type: object
              propertyNames:
                type: string
                maxLength: 100
              additionalProperties:
                type: string
                maxLength: 40000
                description: >-
                  A header value. Values are always read back masked as
                  `••••••••`; send the mask back to keep the stored value. A
                  header that has no stored value yet needs its real value.
            auth:
              oneOf:
                - type: object
                  properties:
                    type:
                      type: string
                      const: oauth2_client_credentials
                    tokenUrl:
                      type: string
                      maxLength: 2048
                      format: uri
                      description: >-
                        The HTTPS address the access token is requested from,
                        with the client credentials grant.
                    clientId:
                      type: string
                      minLength: 1
                      maxLength: 500
                    clientSecret:
                      type: string
                      minLength: 1
                      maxLength: 40000
                      description: >-
                        The client secret. It is always read back masked as
                        `••••••••`; send the mask back to keep the stored
                        secret. Changing the token URL's or the tool's server
                        origin needs the real secret again.
                    scope:
                      description: >-
                        Space-separated scopes to request. Left out, the token
                        request names none.
                      type: string
                      maxLength: 1000
                      pattern: >-
                        ^(?:[\x21\x23-\x5B\x5D-\x7E]+(?:
                        [\x21\x23-\x5B\x5D-\x7E]+)*)?$
                    clientAuthentication:
                      description: >-
                        How the client ID and secret reach the token URL:
                        `basic` (the default) in an HTTP Basic `Authorization`
                        header, `body` as `client_id` and `client_secret` form
                        fields.
                      type: string
                      enum:
                        - basic
                        - body
                  required:
                    - type
                    - tokenUrl
                    - clientId
                    - clientSecret
              description: >-
                How the tool signs in. Left out, the tool sends only its
                headers. With OAuth 2.0 client credentials the tool gets an
                access token from `tokenUrl`, reuses it until shortly before it
                expires, and sends it as `Authorization: Bearer`, so the tool
                cannot also have its own `Authorization` header.
            authConnectionId:
              description: >-
                The workspace auth connection the request signs in with, as `GET
                /auth-connections` lists it. The connection sends the
                `Authorization` header, so the request cannot also have its own,
                and cannot also set `auth`.
              type: string
              pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            linkPath:
              default: url
              description: >-
                Where the link sits in the JSON response, as a dot path. The
                link is opened once and never stored or logged.
              type: string
              maxLength: 500
              pattern: ^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$
          required:
            - from
            - method
            - url
            - headers
            - linkPath
      description: >-
        Where the form is: a fixed address, or a link an API request answers
        with right before the browser opens it.
    WebFormStep:
      type: object
      properties:
        action:
          type: string
          enum:
            - click
            - check
        target:
          oneOf:
            - type: object
              properties:
                by:
                  type: string
                  const: role
                role:
                  type: string
                  enum:
                    - button
                    - link
                    - checkbox
                    - radio
                    - tab
                    - menuitem
                name:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: >-
                    The element's accessible name, such as a button's text.
                    Matched as part of the name, ignoring case, unless `exact`.
                exact:
                  type: boolean
              required:
                - by
                - role
                - name
            - type: object
              properties:
                by:
                  type: string
                  const: label
                label:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: >-
                    The label of the checkbox or control. Matched as part of the
                    label, ignoring case and a trailing period, colon or
                    asterisk, unless `exact`.
                exact:
                  type: boolean
              required:
                - by
                - label
            - type: object
              properties:
                by:
                  type: string
                  const: css
                selector:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: >-
                    A CSS selector, for an element no name or label finds. Its
                    page can change it without notice.
              required:
                - by
                - selector
          description: What a step clicks or checks.
        delayMs:
          description: >-
            How long to wait before this step, in milliseconds, up to 10
            seconds: for a page that takes a moment to finish what the step
            before did, such as a signature it applies after a click, and
            ignores a click meanwhile.
          type: integer
          minimum: 0
          maximum: 10000
      required:
        - action
        - target
    WebFormField:
      type: object
      properties:
        label:
          type: string
          minLength: 1
          maxLength: 500
          description: >-
            The field's own label. Matched as part of the label, ignoring case,
            extra spaces and a trailing period, colon or asterisk on either
            side, unless `exact` asks for the whole label.
        parameter:
          type: string
          pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$
          description: The tool parameter whose value fills the field.
        type:
          default: text
          type: string
          enum:
            - text
            - checkbox
            - select
        required:
          default: true
          description: >-
            A required field the page does not show fails the call before
            anything is submitted; an optional one is skipped.
          type: boolean
        exact:
          type: boolean
        every:
          description: >-
            Fill every field the label names, for a form that asks for the same
            value in several places, such as a Social Security number on each
            page. Without it, a label that names two fields stops the call
            before anything is typed.
          type: boolean
      required:
        - label
        - parameter
        - type
        - required
    TestTarget:
      type: object
      properties:
        type:
          type: string
          enum:
            - draft
            - published
            - branch
            - version
        id:
          description: >-
            Required for branch and version targets. Branch targets use their
            current published version.
          type: string
          minLength: 1
          maxLength: 200
      required:
        - type
    TestAgentOverrides:
      type: object
      properties:
        instructions:
          type: string
          minLength: 20
          maxLength: 100000
        guardrails:
          type: string
          maxLength: 20000
        greeting:
          type: string
          maxLength: 3000
        model:
          type: string
          minLength: 1
          maxLength: 100
        temperature:
          type: number
          minimum: 0
          maximum: 1
        defaultLanguage:
          type:
            - string
            - 'null'
    TestVoiceOverrides:
      type: object
      properties:
        pipelineMode:
          type: string
          enum:
            - duplex
            - staged
        realtimeModel:
          type: string
          enum:
            - openai/gpt-live-1
            - openai/gpt-live-1.1
            - openai/gpt-realtime-2.1
            - openai/gpt-realtime-2.1-mini
            - google/gemini-3.8-live
            - xai/grok-voice-3.0
            - elevenlabs/eleven_realtime_v1_mini
            - elevenlabs/eleven_realtime_v1_max
            - phonic/phonic-1
            - phonic/phonic-1-high
        duplexVoice:
          type: string
          minLength: 1
          maxLength: 100
        model:
          type: string
          minLength: 1
          maxLength: 100
        temperature:
          type: number
          minimum: 0
          maximum: 1
        voiceProvider:
          type: string
          enum:
            - centillion
            - elevenlabs
            - google
            - minimax
            - inworld
            - fishaudio
        voiceId:
          type: string
          minLength: 1
          maxLength: 200
        voiceName:
          type: string
          minLength: 1
          maxLength: 100
        voiceLanguage:
          type: string
          minLength: 2
          maxLength: 40
        speed:
          anyOf:
            - type: number
              minimum: 0.5
              maximum: 2
            - type: 'null'
        stability:
          anyOf:
            - type: number
              minimum: 0
              maximum: 1
            - type: 'null'
        similarity:
          anyOf:
            - type: number
              minimum: 0
              maximum: 1
            - type: 'null'
        turnEagerness:
          type: string
          enum:
            - patient
            - normal
            - eager
        reasoningEffort:
          type: string
          enum:
            - none
            - minimal
            - low
            - medium
            - high
            - xhigh
            - max
        serviceTier:
          type: string
          enum:
            - standard
            - fast
        turnDetection:
          description: >-
            Custom (staged) calls only: how the call decides the caller has
            finished. `silence` waits the Eagerness delay after the caller stops
            speaking; `model` lets an end-of-turn model decide, which waits
            longer when the caller sounds unfinished. Left out, the agent's own
            setting, or the platform's when the agent has none.
          type: string
          enum:
            - silence
            - model
      description: >-
        Voice tests only: voice settings this run uses instead of the agent's,
        in the Voice settings form's values. Left-out fields keep the agent's.
    TestDynamicVariable:
      type: object
      properties:
        name:
          type: string
          maxLength: 100
          pattern: ^[A-Za-z_][A-Za-z0-9_]*$
        value:
          $ref: '#/components/schemas/JsonValue'
          description: Any JSON value, at most 10,000 characters when serialized.
      required:
        - name
        - value
    TestEnvironment:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
        variables:
          default: {}
          type: object
          propertyNames:
            type: string
            maxLength: 100
            pattern: ^[A-Za-z_][A-Za-z0-9_]*$
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        connections:
          maxItems: 100
          type: array
          items:
            type: object
            properties:
              toolId:
                type: string
                minLength: 1
                maxLength: 200
              resourceId:
                type: string
                minLength: 1
                maxLength: 200
            required:
              - toolId
              - resourceId
      required:
        - name
        - variables
    TestWorkflowTransition:
      type: object
      properties:
        agentId:
          description: >-
            The agent the node belongs to. Left out, it is on the agent under
            test. On another agent, the check is met by a transfer to that node.
          type: string
          minLength: 1
          maxLength: 200
        fromNodeId:
          anyOf:
            - type: string
              minLength: 1
              maxLength: 200
            - type: 'null'
        toNodeId:
          type: string
          minLength: 1
          maxLength: 200
      required:
        - toNodeId
    TestActionResponse:
      type: object
      properties:
        actionId:
          type: string
          minLength: 1
          maxLength: 150
        mode:
          type: string
          enum:
            - mock
            - live
        response:
          type: string
          maxLength: 50000
          description: A JSON-encoded response. In mock mode it must be valid JSON.
        isError:
          type: boolean
        when:
          description: >-
            Optional JSON object encoded as a string, matched exactly by named
            parameter.
          type: string
          maxLength: 50000
        conditions:
          maxItems: 100
          type: array
          items:
            $ref: '#/components/schemas/TestParameterAssertion'
      required:
        - actionId
        - mode
        - response
        - isError
    TestHistoryMessage:
      type: object
      properties:
        role:
          type: string
          enum:
            - user
            - assistant
        content:
          type: string
          maxLength: 12000
          description: Required unless the row is a tool.
        tool:
          description: >-
            A tool the agent already ran. The agent is told about it, and it
            doesn't count as a call of the run. Assistant rows only.
          type: object
          properties:
            name:
              type: string
              minLength: 1
              maxLength: 200
            actionId:
              type: string
              minLength: 1
              maxLength: 200
            input:
              description: The tool's parameters as a JSON object.
              type: string
              maxLength: 12000
            output:
              type: string
              maxLength: 12000
              description: The tool's result. Empty when it wasn't recorded.
            isError:
              default: false
              type: boolean
          required:
            - name
            - input
            - output
            - isError
      required:
        - role
        - content
    TestArgumentAssertion:
      type: object
      properties:
        actionId:
          type: string
          minLength: 1
          maxLength: 150
        validation:
          type: string
          enum:
            - exact
            - regex
            - llm
        arguments:
          default: '{}'
          description: >-
            A JSON object encoded as a string. Legacy validation applies to
            every parameter in this object.
          type: string
          maxLength: 50000
        parameters:
          maxItems: 100
          type: array
          items:
            $ref: '#/components/schemas/TestParameterAssertion'
      required:
        - actionId
        - arguments
  responses:
    Error400:
      description: The request is invalid. `error.message` names the first problem.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error401:
      description: No valid workspace API key was sent.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error403:
      description: The key or the workspace's plan does not allow this request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error404:
      description: The endpoint, or a record it names, was not found in this workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error409:
      description: The record changed since it was read, or its state does not allow this.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error413:
      description: The request body is too large.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error415:
      description: The request body is not of a media type this endpoint accepts.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error429:
      description: Too many requests. Wait for `Retry-After` seconds.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error500:
      description: The request could not be completed. Try again.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Error504:
      description: The request took too long. Try again.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    workspaceApiKey:
      type: http
      scheme: bearer
      bearerFormat: cl_api_...
      description: >-
        A workspace API key from Workspace settings > API keys, sent as
        `Authorization: Bearer cl_api_...`. A Read only key can call the GET
        endpoints; every other method needs a Full access key.
    workspaceApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        The same workspace API key, for a gateway that keeps `Authorization` for
        itself.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.