APIMLOpen a websocket to prompt the ML copilot

Parameters

Name

Type

Req.

  • conversation_id

    string / UUID
    optional
  • replay

    boolean
    optional
  • bodyapplication/json

    oneOf
    optional
    One of
    • headers

      object
      required
      Object Properties
      • headers

        object
        optional
      • type

        string
        optional
        Possible values
        • headers
    • user

      object
      optional
      Object Properties
      • content

        string
        optional
      • current_files

        object
        optional
      • forced_tools

        array
        optional
      • model

        string
        optional
        Possible values
        • gpt5_nano:  gpt-5-nano
        • gpt5_mini:  gpt-5-mini
        • gpt5_codex:  gpt-5-codex
        • gpt5:  gpt-5
        • o3:  o3
      • project_name

        string
        optional
      • reasoning_effort

        string
        optional
        Possible values
        • low:  Low reasoning
        • medium:  Medium reasoning
        • high:  High reasoning
      • source_ranges

        array
        optional
        Array of
        • file

          string
          optional
        • prompt

          string
          optional
        • range

          object
          optional
          Object Properties
          • end

            object
            optional
            Object Properties
          • start

            object
            optional
            Object Properties
      • type

        string
        optional
        Possible values
        • user
    • system

      object
      optional
      Object Properties
      • command

        string
        optional
        Possible values
        • new:  Reset the conversation state, by creating a new state.
        • bye:  Disconnect the client, which can be used to end the session.
      • type

        string
        optional
        Possible values
        • system

Returns

get
/ws/ml/copilot
# WebSocket endpoint
# curl does not work for WebSocket endpoints.
# Use an SDK or a WebSocket client.