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

# POST /v1/live/sessions

> Available at the instance root or under a provider/namespace prefix. Shared paths select the wire dialect from client headers; without dialect evidence, the first listed route wins.



## OpenAPI

````yaml /generated/openapi.json post /v1/live/sessions
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /v1/live/sessions:
    post:
      tags:
        - Forwarding
      summary: POST /v1/live/sessions
      description: >-
        Available at the instance root or under a provider/namespace prefix.
        Shared paths select the wire dialect from client headers; without
        dialect evidence, the first listed route wins.
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Input_CreateLiveSessionRequestBody'
        required: true
      responses:
        2XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_CreateLiveSessionResponseBody'
          description: Successful protocol response
        default:
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/Output_Envelope'
                  - properties:
                      error:
                        $ref: '#/components/schemas/Output_ErrorDetail'
                    required:
                      - error
                    type: object
                  - allOf:
                      - $ref: '#/components/schemas/Output_ErrorEvent'
                      - properties:
                          type:
                            const: error
                        required:
                          - type
                        type: object
                  - properties:
                      error:
                        $ref: '#/components/schemas/Output_GenerateContentError'
                    required:
                      - error
                    type: object
            text/plain:
              schema:
                type: string
          description: Gateway or upstream error
components:
  schemas:
    Input_CreateLiveSessionRequestBody:
      additionalProperties: true
      properties:
        session:
          $ref: '#/components/schemas/Input_LiveSessionConfig'
        transport:
          $ref: '#/components/schemas/Input_LiveCreateTransport'
      required:
        - session
        - transport
      type: object
    Output_CreateLiveSessionResponseBody:
      additionalProperties: true
      properties:
        session:
          $ref: '#/components/schemas/Output_LiveSessionId'
        transport:
          $ref: '#/components/schemas/Output_LiveResponseTransport'
      required:
        - session
        - transport
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Output_ErrorDetail:
      properties:
        code:
          type:
            - string
            - 'null'
        message:
          type: string
        param:
          type:
            - string
            - 'null'
        type:
          type:
            - string
            - 'null'
      required:
        - message
      type: object
    Output_ErrorEvent:
      additionalProperties: true
      properties:
        error:
          $ref: '#/components/schemas/Output_StreamError'
        request_id:
          type:
            - string
            - 'null'
      required:
        - error
      type: object
    Output_GenerateContentError:
      additionalProperties: true
      properties:
        code:
          format: int64
          type: integer
        details:
          items: true
          type:
            - array
            - 'null'
        message:
          type: string
        status:
          type:
            - string
            - 'null'
      required:
        - code
        - message
      type: object
    Input_LiveSessionConfig:
      additionalProperties: true
      properties:
        audio:
          anyOf:
            - $ref: '#/components/schemas/Input_LiveAudio'
            - type: 'null'
        client:
          anyOf:
            - $ref: '#/components/schemas/Input_LiveClientConfig'
            - type: 'null'
        delegation:
          anyOf:
            - $ref: '#/components/schemas/Input_LiveDelegation'
            - type: 'null'
        initial_items:
          items: true
          type:
            - array
            - 'null'
        instructions:
          type:
            - string
            - 'null'
        model:
          type: string
        triggers:
          items:
            $ref: '#/components/schemas/Input_LiveDecisionTrigger'
          type:
            - array
            - 'null'
      required:
        - model
      type: object
    Input_LiveCreateTransport:
      oneOf:
        - additionalProperties: true
          properties:
            sdp:
              type: string
            type:
              const: webrtc
              type: string
          required:
            - type
            - sdp
          type: object
        - additionalProperties: true
          properties:
            destination:
              type: string
            trunk:
              $ref: '#/components/schemas/Input_LiveSipTrunk'
            type:
              const: sip
              type: string
          required:
            - type
            - destination
            - trunk
          type: object
    Output_LiveSessionId:
      additionalProperties: true
      properties:
        id:
          type: string
      required:
        - id
      type: object
    Output_LiveResponseTransport:
      oneOf:
        - additionalProperties: true
          properties:
            sdp:
              type: string
            type:
              const: webrtc
              type: string
          required:
            - type
            - sdp
          type: object
        - additionalProperties: true
          properties:
            type:
              const: sip
              type: string
          required:
            - type
          type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
    Output_StreamError:
      additionalProperties: true
      properties:
        message:
          type: string
        type:
          $ref: '#/components/schemas/Output_StreamErrorType'
      required:
        - type
        - message
      type: object
    Input_LiveAudio:
      additionalProperties: true
      properties:
        input:
          anyOf:
            - $ref: '#/components/schemas/Input_LiveAudioInput'
            - type: 'null'
        output:
          anyOf:
            - $ref: '#/components/schemas/Input_LiveAudioOutput'
            - type: 'null'
      type: object
    Input_LiveClientConfig:
      additionalProperties: true
      properties:
        data_channel:
          $ref: '#/components/schemas/Input_LiveDataChannelConfig'
      required:
        - data_channel
      type: object
    Input_LiveDelegation:
      oneOf:
        - additionalProperties: true
          properties:
            type:
              const: client
              type: string
          required:
            - type
          type: object
        - additionalProperties: true
          properties:
            responses:
              $ref: '#/components/schemas/Input_LiveResponsesConfig'
            type:
              const: responses
              type: string
          required:
            - type
            - responses
          type: object
        - additionalProperties: true
          properties:
            decisions:
              $ref: '#/components/schemas/Input_LiveDecisionsConfig'
            type:
              const: decisions
              type: string
          required:
            - type
            - decisions
          type: object
    Input_LiveDecisionTrigger:
      additionalProperties: true
      properties:
        decisions:
          $ref: '#/components/schemas/Input_LiveTriggerQuestions'
        event_type:
          $ref: '#/components/schemas/Input_LiveTriggerEvent'
        type:
          $ref: '#/components/schemas/Input_LiveTriggerType'
      required:
        - type
        - event_type
        - decisions
      type: object
    Input_LiveSipTrunk:
      additionalProperties: true
      properties:
        auth:
          $ref: '#/components/schemas/Input_LiveSipDigest'
        caller_number:
          type: string
        provider_url:
          type: string
      required:
        - provider_url
        - caller_number
        - auth
      type: object
    Output_StreamErrorType:
      enum:
        - api_error
        - authentication_error
        - billing_error
        - invalid_request_error
        - not_found_error
        - overloaded_error
        - permission_error
        - rate_limit_error
        - timeout_error
        - conflict_error
        - request_too_large
      type: string
    Input_LiveAudioInput:
      additionalProperties: true
      properties:
        format:
          anyOf:
            - $ref: '#/components/schemas/Input_LiveAudioFormat'
            - type: 'null'
      type: object
    Input_LiveAudioOutput:
      additionalProperties: true
      properties:
        format:
          anyOf:
            - $ref: '#/components/schemas/Input_LiveAudioFormat'
            - type: 'null'
        voice:
          anyOf:
            - $ref: '#/components/schemas/Input_LiveVoice'
            - type: 'null'
      type: object
    Input_LiveDataChannelConfig:
      additionalProperties: true
      properties:
        allowed_client_events:
          anyOf:
            - $ref: '#/components/schemas/Input_LiveAllowedClientEvents'
            - type: 'null'
        allowed_server_events:
          anyOf:
            - $ref: '#/components/schemas/Input_LiveAllowedServerEvents'
            - type: 'null'
      type: object
    Input_LiveResponsesConfig:
      additionalProperties: true
      properties:
        instructions:
          type:
            - string
            - 'null'
        max_output_tokens:
          format: uint64
          minimum: 0
          type:
            - integer
            - 'null'
        model:
          type: string
        parallel_tool_calls:
          type:
            - boolean
            - 'null'
        reasoning:
          anyOf:
            - $ref: '#/components/schemas/Input_ReasoningConfig'
            - type: 'null'
        service_tier:
          type:
            - string
            - 'null'
        text: true
        tool_choice: true
        tools:
          items:
            $ref: '#/components/schemas/Input_Tool'
          type:
            - array
            - 'null'
      required:
        - model
      type: object
    Input_LiveDecisionsConfig:
      additionalProperties: true
      properties:
        model:
          type: string
        questions:
          items:
            $ref: '#/components/schemas/Input_DecisionQuestion'
          type: array
      required:
        - model
        - questions
      type: object
    Input_LiveTriggerQuestions:
      additionalProperties: true
      properties:
        questions:
          items:
            $ref: '#/components/schemas/Input_DecisionQuestion'
          type: array
      required:
        - questions
      type: object
    Input_LiveTriggerEvent:
      enum:
        - session.input_transcript.delta
        - session.output_transcript.delta
      type: string
    Input_LiveTriggerType:
      enum:
        - decisions
      type: string
    Input_LiveSipDigest:
      additionalProperties: true
      properties:
        password:
          type: string
        type:
          type: string
        username:
          type: string
      required:
        - type
        - username
        - password
      type: object
    Input_LiveAudioFormat:
      additionalProperties: true
      properties:
        rate:
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        type:
          type: string
      required:
        - type
      type: object
    Input_LiveVoice:
      anyOf:
        - type: string
        - $ref: '#/components/schemas/Input_CustomVoice3'
    Input_LiveAllowedClientEvents:
      anyOf:
        - type: string
        - items:
            type: string
          type: array
    Input_LiveAllowedServerEvents:
      anyOf:
        - type: string
        - items:
            $ref: '#/components/schemas/Input_LiveServerEventSelector'
          type: array
    Input_ReasoningConfig:
      additionalProperties: true
      properties:
        context:
          anyOf:
            - $ref: '#/components/schemas/Input_ReasoningContext'
            - type: 'null'
        effort:
          anyOf:
            - $ref: '#/components/schemas/Input_ReasoningEffort'
            - type: 'null'
        generate_summary:
          anyOf:
            - $ref: '#/components/schemas/Input_ReasoningSummary'
            - type: 'null'
        mode:
          type:
            - string
            - 'null'
        summary:
          anyOf:
            - $ref: '#/components/schemas/Input_ReasoningSummary'
            - type: 'null'
      type: object
    Input_Tool:
      oneOf:
        - $ref: '#/components/schemas/Input_FunctionTool'
          properties:
            type:
              const: function
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_FileSearchTool'
          properties:
            type:
              const: file_search
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ComputerTool'
          properties:
            type:
              const: computer_use_preview
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ToolMarker'
          properties:
            type:
              const: computer
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_WebSearchPreviewTool'
          properties:
            type:
              const: web_search_preview
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_WebSearchPreviewTool'
          properties:
            type:
              const: web_search_preview_2025_03_11
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_WebSearchTool'
          properties:
            type:
              const: web_search
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_WebSearchTool'
          properties:
            type:
              const: web_search_2025_08_26
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_CodeInterpreterTool'
          properties:
            type:
              const: code_interpreter
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_CustomTool'
          properties:
            type:
              const: custom
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_NamespaceTool'
          properties:
            type:
              const: namespace
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ToolMarker'
          properties:
            type:
              const: local_shell
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ShellTool'
          properties:
            type:
              const: shell
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ImageGenerationTool'
          properties:
            type:
              const: image_generation
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_McpTool'
          properties:
            type:
              const: mcp
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ToolMarker'
          properties:
            type:
              const: programmatic_tool_calling
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ApplyPatchTool'
          properties:
            type:
              const: apply_patch
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ToolSearchTool'
          properties:
            type:
              const: tool_search
              type: string
          required:
            - type
          type: object
    Input_DecisionQuestion:
      oneOf:
        - additionalProperties: true
          properties:
            instructions:
              type: string
            name:
              type:
                - string
                - 'null'
            type:
              const: predicate
              type: string
          required:
            - type
            - instructions
          type: object
        - additionalProperties: true
          properties:
            choices:
              items:
                $ref: '#/components/schemas/Input_DecisionChoice'
              type: array
            instructions:
              type: string
            name:
              type:
                - string
                - 'null'
            type:
              const: choice
              type: string
          required:
            - type
            - instructions
            - choices
          type: object
        - additionalProperties: true
          properties:
            instructions:
              type: string
            levels:
              items:
                $ref: '#/components/schemas/Input_DecisionScoreLevel'
              type: array
            name:
              type:
                - string
                - 'null'
            type:
              const: score
              type: string
          required:
            - type
            - instructions
            - levels
          type: object
    Input_CustomVoice3:
      additionalProperties: true
      properties:
        id:
          type: string
      required:
        - id
      type: object
    Input_LiveServerEventSelector:
      additionalProperties: true
      properties:
        response_event: true
        type:
          type: string
      required:
        - type
      type: object
    Input_ReasoningContext:
      enum:
        - auto
        - current_turn
        - all_turns
      type: string
    Input_ReasoningEffort:
      anyOf:
        - enum:
            - none
            - minimal
            - low
            - medium
            - high
            - xhigh
            - max
          type: string
        - description: Codex custom effort is serialized as an unsigned JSON integer.
          format: uint64
          minimum: 0
          type: integer
    Input_ReasoningSummary:
      enum:
        - auto
        - concise
        - detailed
      type: string
    Input_FunctionTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        async:
          type:
            - boolean
            - 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        description:
          type:
            - string
            - 'null'
        name:
          type: string
        output_schema:
          additionalProperties: true
          type:
            - object
            - 'null'
        parameters:
          additionalProperties: true
          type:
            - object
            - 'null'
        strict:
          default: null
          type:
            - boolean
            - 'null'
      required:
        - name
        - parameters
      type: object
    Input_FileSearchTool:
      additionalProperties: true
      properties:
        filters:
          anyOf:
            - $ref: '#/components/schemas/Input_FileSearchFilter'
            - type: 'null'
        max_num_results:
          type:
            - number
            - 'null'
        ranking_options:
          anyOf:
            - $ref: '#/components/schemas/Input_RankingOptions'
            - type: 'null'
        vector_store_ids:
          items:
            type: string
          type: array
      required:
        - vector_store_ids
      type: object
    Input_ComputerTool:
      additionalProperties: true
      properties:
        display_height:
          format: int64
          type: integer
        display_width:
          format: int64
          type: integer
        environment:
          $ref: '#/components/schemas/Input_ComputerEnvironment'
      required:
        - display_height
        - display_width
        - environment
      type: object
    Input_ToolMarker:
      additionalProperties: true
      type: object
    Input_WebSearchPreviewTool:
      additionalProperties: true
      properties:
        search_content_types:
          items:
            $ref: '#/components/schemas/Input_SearchContentType'
          type:
            - array
            - 'null'
        search_context_size:
          anyOf:
            - $ref: '#/components/schemas/Input_SearchContextSize'
            - type: 'null'
        user_location:
          anyOf:
            - $ref: '#/components/schemas/Input_PreviewUserLocation'
            - type: 'null'
      type: object
    Input_WebSearchTool:
      additionalProperties: true
      properties:
        filters:
          anyOf:
            - $ref: '#/components/schemas/Input_WebSearchFilters'
            - type: 'null'
        search_context_size:
          anyOf:
            - $ref: '#/components/schemas/Input_SearchContextSize'
            - type: 'null'
        user_location:
          anyOf:
            - $ref: '#/components/schemas/Input_UserLocation'
            - type: 'null'
      type: object
    Input_CodeInterpreterTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        container:
          $ref: '#/components/schemas/Input_CodeInterpreterContainer'
      required:
        - container
      type: object
    Input_CustomTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        async:
          type:
            - boolean
            - 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        description:
          type:
            - string
            - 'null'
        format:
          anyOf:
            - $ref: '#/components/schemas/Input_CustomToolFormat'
            - type: 'null'
        name:
          type: string
      required:
        - name
      type: object
    Input_NamespaceTool:
      additionalProperties: true
      properties:
        description:
          type: string
        name:
          type: string
        tools:
          items:
            $ref: '#/components/schemas/Input_NamespaceToolDefinition'
          type: array
      required:
        - description
        - name
        - tools
      type: object
    Input_ShellTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        environment:
          anyOf:
            - $ref: '#/components/schemas/Input_ShellEnvironment'
            - type: 'null'
      type: object
    Input_ImageGenerationTool:
      additionalProperties: true
      properties:
        action:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageAction'
            - type: 'null'
        background:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageBackground'
            - type: 'null'
        input_fidelity:
          anyOf:
            - $ref: '#/components/schemas/Input_InputFidelity'
            - type: 'null'
        input_image_mask:
          anyOf:
            - $ref: '#/components/schemas/Input_InputImageMask'
            - type: 'null'
        model:
          type:
            - string
            - 'null'
        moderation:
          anyOf:
            - $ref: '#/components/schemas/Input_Moderation'
            - type: 'null'
        output_compression:
          type:
            - number
            - 'null'
        output_format:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageOutputFormat'
            - type: 'null'
        partial_images:
          format: int64
          type:
            - integer
            - 'null'
        quality:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageQuality'
            - type: 'null'
        size:
          type:
            - string
            - 'null'
      type: object
    Input_McpTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        allowed_tools:
          anyOf:
            - $ref: '#/components/schemas/Input_McpAllowedTools'
            - type: 'null'
        authorization:
          type:
            - string
            - 'null'
        connector_id:
          anyOf:
            - $ref: '#/components/schemas/Input_ConnectorId'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        headers:
          additionalProperties:
            type: string
          type:
            - object
            - 'null'
        require_approval:
          anyOf:
            - $ref: '#/components/schemas/Input_McpApproval'
            - type: 'null'
        server_description:
          type:
            - string
            - 'null'
        server_label:
          type: string
        server_url:
          type:
            - string
            - 'null'
        tunnel_id:
          type:
            - string
            - 'null'
      required:
        - server_label
      type: object
    Input_ApplyPatchTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
      type: object
    Input_ToolSearchTool:
      additionalProperties: true
      properties:
        description:
          type:
            - string
            - 'null'
        execution:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolExecution'
            - type: 'null'
        parameters: true
      type: object
    Input_DecisionChoice:
      additionalProperties: true
      properties:
        description:
          type:
            - string
            - 'null'
        value:
          $ref: '#/components/schemas/Input_DecisionChoiceValue'
      required:
        - value
      type: object
    Input_DecisionScoreLevel:
      additionalProperties: true
      properties:
        description:
          type:
            - string
            - 'null'
        label:
          type: string
      required:
        - label
      type: object
    Input_AllowedCaller:
      enum:
        - direct
        - programmatic
      type: string
    Input_FileSearchFilter:
      anyOf:
        - $ref: '#/components/schemas/Input_ComparisonFilter'
        - $ref: '#/components/schemas/Input_CompoundFilter'
    Input_RankingOptions:
      additionalProperties: true
      properties:
        hybrid_search:
          anyOf:
            - $ref: '#/components/schemas/Input_HybridSearch'
            - type: 'null'
        ranker:
          anyOf:
            - $ref: '#/components/schemas/Input_Ranker'
            - type: 'null'
        score_threshold:
          type:
            - number
            - 'null'
      type: object
    Input_ComputerEnvironment:
      enum:
        - windows
        - mac
        - linux
        - ubuntu
        - browser
      type: string
    Input_SearchContentType:
      enum:
        - text
        - image
      type: string
    Input_SearchContextSize:
      enum:
        - low
        - medium
        - high
      type: string
    Input_PreviewUserLocation:
      additionalProperties: true
      properties:
        city:
          type:
            - string
            - 'null'
        country:
          type:
            - string
            - 'null'
        region:
          type:
            - string
            - 'null'
        timezone:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_UserLocationType'
      required:
        - type
      type: object
    Input_WebSearchFilters:
      additionalProperties: true
      properties:
        allowed_domains:
          items:
            type: string
          type:
            - array
            - 'null'
      type: object
    Input_UserLocation:
      additionalProperties: true
      properties:
        city:
          type:
            - string
            - 'null'
        country:
          type:
            - string
            - 'null'
        region:
          type:
            - string
            - 'null'
        timezone:
          type:
            - string
            - 'null'
        type:
          anyOf:
            - $ref: '#/components/schemas/Input_UserLocationType'
            - type: 'null'
      type: object
    Input_CodeInterpreterContainer:
      anyOf:
        - type: string
        - $ref: '#/components/schemas/Input_CodeInterpreterAuto'
    Input_CustomToolFormat:
      anyOf:
        - $ref: '#/components/schemas/Input_CustomTextFormat'
        - $ref: '#/components/schemas/Input_GrammarFormat'
    Input_NamespaceToolDefinition:
      oneOf:
        - $ref: '#/components/schemas/Input_NamespaceFunctionTool'
          properties:
            type:
              const: function
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_NamespaceCustomTool'
          properties:
            type:
              const: custom
              type: string
          required:
            - type
          type: object
    Input_ShellEnvironment:
      anyOf:
        - $ref: '#/components/schemas/Input_ShellContainerAuto'
        - $ref: '#/components/schemas/Input_ShellLocalEnvironment'
        - $ref: '#/components/schemas/Input_ShellContainerReference'
    Input_ImageAction:
      enum:
        - generate
        - edit
        - auto
      type: string
    Input_ImageBackground:
      enum:
        - transparent
        - opaque
        - auto
      type: string
    Input_InputFidelity:
      enum:
        - low
        - high
      type: string
    Input_InputImageMask:
      additionalProperties: true
      properties:
        file_id:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
      type: object
    Input_Moderation:
      enum:
        - auto
        - low
      type: string
    Input_ImageOutputFormat:
      enum:
        - png
        - webp
        - jpeg
      type: string
    Input_ImageQuality:
      enum:
        - xhigh
        - max
        - low
        - medium
        - high
        - auto
      type: string
    Input_McpAllowedTools:
      anyOf:
        - items:
            type: string
          type: array
        - $ref: '#/components/schemas/Input_McpToolFilter'
    Input_ConnectorId:
      enum:
        - connector_dropbox
        - connector_gmail
        - connector_googlecalendar
        - connector_googledrive
        - connector_microsoftteams
        - connector_outlookcalendar
        - connector_outlookemail
        - connector_sharepoint
      type: string
    Input_McpApproval:
      anyOf:
        - $ref: '#/components/schemas/Input_McpApprovalSetting'
        - $ref: '#/components/schemas/Input_McpToolApprovalFilter'
    Input_ToolExecution:
      enum:
        - server
        - client
      type: string
    Input_DecisionChoiceValue:
      anyOf:
        - type: string
        - type: boolean
    Input_ComparisonFilter:
      additionalProperties: true
      properties:
        key:
          type: string
        type:
          $ref: '#/components/schemas/Input_ComparisonFilterType'
        value:
          $ref: '#/components/schemas/Input_FilterValue'
      required:
        - key
        - value
        - type
      type: object
    Input_CompoundFilter:
      additionalProperties: true
      properties:
        filters:
          items:
            $ref: '#/components/schemas/Input_FileSearchFilter'
          type: array
        type:
          $ref: '#/components/schemas/Input_CompoundFilterType'
      required:
        - filters
        - type
      type: object
    Input_HybridSearch:
      additionalProperties: true
      properties:
        embedding_weight:
          type: number
        text_weight:
          type: number
      required:
        - embedding_weight
        - text_weight
      type: object
    Input_Ranker:
      enum:
        - auto
        - default-2024-11-15
      type: string
    Input_UserLocationType:
      enum:
        - approximate
      type: string
    Input_CodeInterpreterAuto:
      additionalProperties: true
      properties:
        file_ids:
          items:
            type: string
          type:
            - array
            - 'null'
        memory_limit:
          anyOf:
            - $ref: '#/components/schemas/Input_MemoryLimit'
            - type: 'null'
        network_policy:
          anyOf:
            - $ref: '#/components/schemas/Input_ContainerNetworkPolicy'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_AutoContainerType'
      required:
        - type
      type: object
    Input_CustomTextFormat:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_TextFormatType'
      required:
        - type
      type: object
    Input_GrammarFormat:
      additionalProperties: true
      properties:
        definition:
          type: string
        syntax:
          $ref: '#/components/schemas/Input_GrammarSyntax'
        type:
          $ref: '#/components/schemas/Input_GrammarFormatType'
      required:
        - definition
        - syntax
        - type
      type: object
    Input_NamespaceFunctionTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        async:
          type:
            - boolean
            - 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        description:
          type:
            - string
            - 'null'
        name:
          type: string
        output_schema:
          additionalProperties: true
          type:
            - object
            - 'null'
        parameters: true
        strict:
          type:
            - boolean
            - 'null'
      required:
        - name
      type: object
    Input_NamespaceCustomTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        async:
          type:
            - boolean
            - 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        description:
          type:
            - string
            - 'null'
        format:
          anyOf:
            - $ref: '#/components/schemas/Input_CustomToolFormat'
            - type: 'null'
        name:
          type: string
      required:
        - name
      type: object
    Input_ShellContainerAuto:
      additionalProperties: true
      properties:
        file_ids:
          items:
            type: string
          type:
            - array
            - 'null'
        memory_limit:
          anyOf:
            - $ref: '#/components/schemas/Input_MemoryLimit'
            - type: 'null'
        network_policy:
          anyOf:
            - $ref: '#/components/schemas/Input_ContainerNetworkPolicy'
            - type: 'null'
        skills:
          items:
            $ref: '#/components/schemas/Input_ShellSkill'
          type:
            - array
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ShellContainerAutoType'
      required:
        - type
      type: object
    Input_ShellLocalEnvironment:
      additionalProperties: true
      properties:
        skills:
          items:
            $ref: '#/components/schemas/Input_LocalSkill'
          type:
            - array
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ShellLocalType'
      required:
        - type
      type: object
    Input_ShellContainerReference:
      additionalProperties: true
      properties:
        container_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_ShellReferenceType'
      required:
        - type
        - container_id
      type: object
    Input_McpToolFilter:
      additionalProperties: true
      properties:
        read_only:
          type:
            - boolean
            - 'null'
        tool_names:
          items:
            type: string
          type:
            - array
            - 'null'
      type: object
    Input_McpApprovalSetting:
      enum:
        - always
        - never
      type: string
    Input_McpToolApprovalFilter:
      additionalProperties: true
      properties:
        always:
          anyOf:
            - $ref: '#/components/schemas/Input_McpToolFilter'
            - type: 'null'
        never:
          anyOf:
            - $ref: '#/components/schemas/Input_McpToolFilter'
            - type: 'null'
      type: object
    Input_ComparisonFilterType:
      enum:
        - eq
        - ne
        - gt
        - gte
        - lt
        - lte
        - in
        - nin
      type: string
    Input_FilterValue:
      anyOf:
        - type: string
        - type: number
        - type: boolean
        - items:
            $ref: '#/components/schemas/Input_FilterArrayValue'
          type: array
    Input_CompoundFilterType:
      enum:
        - and
        - or
      type: string
    Input_MemoryLimit:
      enum:
        - 1g
        - 4g
        - 16g
        - 64g
      type: string
    Input_ContainerNetworkPolicy:
      anyOf:
        - $ref: '#/components/schemas/Input_NetworkDisabled'
        - $ref: '#/components/schemas/Input_NetworkAllowlist'
    Input_AutoContainerType:
      enum:
        - auto
      type: string
    Input_TextFormatType:
      enum:
        - text
      type: string
    Input_GrammarSyntax:
      enum:
        - lark
        - regex
      type: string
    Input_GrammarFormatType:
      enum:
        - grammar
      type: string
    Input_ShellSkill:
      anyOf:
        - $ref: '#/components/schemas/Input_SkillReference'
        - $ref: '#/components/schemas/Input_InlineSkill'
    Input_ShellContainerAutoType:
      enum:
        - container_auto
      type: string
    Input_LocalSkill:
      additionalProperties: true
      properties:
        description:
          type: string
        name:
          type: string
        path:
          type: string
      required:
        - description
        - name
        - path
      type: object
    Input_ShellLocalType:
      enum:
        - local
      type: string
    Input_ShellReferenceType:
      enum:
        - container_reference
      type: string
    Input_FilterArrayValue:
      anyOf:
        - type: string
        - type: number
    Input_NetworkDisabled:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_NetworkDisabledType'
      required:
        - type
      type: object
    Input_NetworkAllowlist:
      additionalProperties: true
      properties:
        allowed_domains:
          items:
            type: string
          type: array
        domain_secrets:
          items:
            $ref: '#/components/schemas/Input_DomainSecret'
          type:
            - array
            - 'null'
        type:
          $ref: '#/components/schemas/Input_NetworkAllowlistType'
      required:
        - allowed_domains
        - type
      type: object
    Input_SkillReference:
      additionalProperties: true
      properties:
        skill_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_SkillReferenceType'
        version:
          type:
            - string
            - 'null'
      required:
        - skill_id
        - type
      type: object
    Input_InlineSkill:
      additionalProperties: true
      properties:
        description:
          type: string
        name:
          type: string
        source:
          $ref: '#/components/schemas/Input_InlineSkillSource'
        type:
          $ref: '#/components/schemas/Input_InlineSkillType'
      required:
        - description
        - name
        - source
        - type
      type: object
    Input_NetworkDisabledType:
      enum:
        - disabled
      type: string
    Input_DomainSecret:
      additionalProperties: true
      properties:
        domain:
          type: string
        name:
          type: string
        value:
          type: string
      required:
        - domain
        - name
        - value
      type: object
    Input_NetworkAllowlistType:
      enum:
        - allowlist
      type: string
    Input_SkillReferenceType:
      enum:
        - skill_reference
      type: string
    Input_InlineSkillSource:
      additionalProperties: true
      properties:
        data:
          type: string
        media_type:
          $ref: '#/components/schemas/Input_ZipMediaType'
        type:
          $ref: '#/components/schemas/Input_Base64SourceType'
      required:
        - data
        - media_type
        - type
      type: object
    Input_InlineSkillType:
      enum:
        - inline
      type: string
    Input_ZipMediaType:
      enum:
        - application/zip
      type: string
    Input_Base64SourceType:
      enum:
        - base64
      type: string
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey

````

## Related topics

- [POST /v1/live/sessions/{session_id}/hangup](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1livesessions-hangup.md)
- [Routing & Endpoints](https://gproxy.leenhawk.com/reference/routing-table.md)
- [POST /v1/live](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1live.md)
- [GET /v1/live/sessions](https://gproxy.leenhawk.com/api-reference/forwarding/get-v1livesessions.md)
- [GET /v1/live/sessions/{session_id}/attach](https://gproxy.leenhawk.com/api-reference/forwarding/get-v1livesessions-attach.md)


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