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

# Thesis.io chat mode with Multi Web Search tool enabled

> Creates a new conversation optimized for Fast Multi Web Search.



## OpenAPI

````yaml api-reference/openapi.json post /api/v1/integration/chat_researchs
openapi: 3.1.0
info:
  title: Thesis.io APIs
  description: >-
    Thesis.io provides comprehensive AI-powered research and conversation APIs
    for DeFi analysis and blockchain research. Create conversations with
    customizable research modes including chat, deep research, and specialized
    DeFi tools for real-time market analysis. Join existing conversations via
    streaming endpoints to participate in collaborative research sessions with
    advanced AI agents.
  version: 0.32.1
servers:
  - url: https://app-be.thesis.io
    description: Production Thesis APIs
security:
  - APIKeyAuth: []
  - {}
paths:
  /api/v1/integration/chat_researchs:
    post:
      tags:
        - conversations
        - conversations
      summary: Thesis.io chat mode with Multi Web Search tool enabled
      description: Creates a new conversation optimized for Fast Multi Web Search.
      operationId: integration_new_chat_conversation_api_v1_integration_chat_researchs_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateChatConversationIntegrationRequest'
        required: true
      responses:
        '200':
          description: Chat conversation created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationCreateResponse'
        '400':
          description: Invalid chat request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FastAPIResourceNotFoundErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FastAPIErrorResponse'
      x-codeSamples:
        - lang: bash
          label: Create chat conversation
          source: >-
            curl -X POST
            'https://app-be.thesis.io/api/v1/integration/chat_researchs' \
              -H 'Authorization: Bearer YOUR_SPACE_API_TOKEN' \
              -H 'Content-Type: application/json' \
              -d '{
                "initial_user_msg": "Lets have a casual conversation about DeFi",
                "system_prompt": "You are a friendly AI assistant who explains complex topics simply"
              }'
        - lang: python
          label: Create chat conversation
          source: |-
            import requests

            url = 'https://app-be.thesis.io/api/v1/integration/chat_researchs'
            headers = {
                'Authorization': 'Bearer YOUR_SPACE_API_TOKEN',
                'Content-Type': 'application/json'
            }
            data = {
                'initial_user_msg': 'Lets have a casual conversation about DeFi',
                'system_prompt': 'You are a friendly AI assistant who explains complex topics simply'
            }

            response = requests.post(url, headers=headers, json=data)
            print(response.json())
        - lang: typescript
          label: Create chat conversation
          source: >-
            const response = await
            fetch('https://app-be.thesis.io/api/v1/integration/chat_researchs',
            {
              method: 'POST',
              headers: {
                'Authorization': 'Bearer YOUR_SPACE_API_TOKEN',
                'Content-Type': 'application/json'
              },
              body: JSON.stringify({
                initial_user_msg: 'Lets have a casual conversation about DeFi',
                system_prompt: 'You are a friendly AI assistant who explains complex topics simply'
              })
            });


            const data = await response.json();

            console.log(data);
components:
  schemas:
    CreateChatConversationIntegrationRequest:
      properties:
        initial_user_msg:
          anyOf:
            - type: string
            - type: 'null'
          title: Initial User Msg
          description: Initial message for the chat conversation
          example: Let's have a casual conversation about DeFi
        system_prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: System Prompt
          description: System prompt to set the AI's behavior in chat mode
          example: You are a friendly AI assistant who explains complex topics simply
      type: object
      title: CreateChatConversationIntegrationRequest
    ConversationCreateResponse:
      properties:
        status:
          type: string
          title: Status
          description: Response status, always 'ok' for successful creation
          example: ok
        conversation_id:
          type: string
          title: Conversation Id
          description: Unique identifier for the created conversation
          example: conv_abc123def456
      type: object
      required:
        - status
        - conversation_id
      title: ConversationCreateResponse
    ConversationErrorResponse:
      properties:
        status:
          type: string
          title: Status
          description: Error status, always 'error' for failures
          example: error
        message:
          type: string
          title: Message
          description: Human-readable error message
          example: Invalid request data or missing required fields
        msg_id:
          type: string
          title: Msg Id
          description: Machine-readable error code for categorization
          example: INVALID_REQUEST_DATA
      type: object
      required:
        - status
        - message
        - msg_id
      title: ConversationErrorResponse
    FastAPIResourceNotFoundErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error details from FastAPI
          example: Resource not found
      type: object
      required:
        - detail
      title: FastAPIResourceNotFoundErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FastAPIErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error details from FastAPI
          example: Internal server error
      type: object
      required:
        - detail
      title: FastAPIErrorResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your API token in the format: Bearer <your_token_here>'

````