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

# Clear Chatbot Turns

> Clears the stored history of chat messages for a given chat_id.

Chat_id is usually derived from soproto + current id, but could also be arbitrary name
NsApiSlow threshold: 2000 ms.
<para />## Experimental: ## The AI agent is experimental, subject to change, and not intended for partners.



## OpenAPI

````yaml /openapi/agent/openapi-v3-AIAgent.json post /api/v1/Agents/AI/ClearChatbotTurns
openapi: 3.0.0
info:
  version: v1-Agents
  title: SuperOffice Agent API v1
  description: SuperOffice Agent API - AIAgent
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:56350
  - url: https://localhost:56350
security: []
tags: []
externalDocs:
  description: >-
    The SuperOffice DevNet Community has more documentation, examples, and
    discussion forums.
  url: https://community.superoffice.com/en/developer/
paths:
  /api/v1/Agents/AI/ClearChatbotTurns:
    post:
      tags:
        - AI_Agent
      summary: Clear Chatbot Turns
      description: "Clears the stored history of chat messages for a given chat_id.\n\nChat_id is usually derived from soproto + current id, but could also be arbitrary name\r\nNsApiSlow threshold: 2000 ms.\r\n<para />## Experimental: ## The AI agent is experimental, subject to change, and not intended for partners."
      operationId: v1AIAgent_ClearChatbotTurns
      parameters:
        - name: $select
          in: query
          description: >-
            Optional comma separated list of properties to include in the
            result. Other fields are then nulled out to reduce payload size:
            "Name,department,category". Default = show all fields.
          required: false
          schema:
            type: string
        - name: SO-AppToken
          in: header
          description: >-
            The application token that identifies the partner app. Used when
            calling Online WebAPI from a server.
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.AICarriers.ClearChatbotTurnsRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.AICarriers.ClearChatbotTurnsRequest
          application/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.AICarriers.ClearChatbotTurnsRequest
          text/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.AICarriers.ClearChatbotTurnsRequest
          application/x-www-form-urlencoded:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.AICarriers.ClearChatbotTurnsRequest
          application/json-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.AICarriers.ClearChatbotTurnsRequest
          application/merge-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.AICarriers.ClearChatbotTurnsRequest
        description: ChatId
        required: true
      responses:
        '204':
          description: No Content
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components:
  schemas:
    SuperOffice.WebApi.v1.Carriers.AICarriers.ClearChatbotTurnsRequest:
      description: >-
        ClearChatbotTurns: Clears the stored history of chat messages for a
        given chat_id. Chat_id is usually derived from soproto + current id, but
        could also be arbitrary name
      type: object
      properties:
        ChatId:
          type: string

````

## Related topics

- [SuperOffice.WebApi.Data.AI ClearChatbotTurnsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.AI_ClearChatbotTurnsRequest.md)
- [SuperOffice.WebApi.Agents.AIAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.AIAgent.md)
- [SuperOffice.WebApi.Agents.IAIAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IAIAgent.md)
- [Get Chatbot Turns](/en/api/reference/restful/agent/ai_agent/get-chatbot-turns.md)
- [SuperOffice.WebApi.Data.ChatbotTurn](/en/api/reference/webapi/SuperOffice.WebApi.Data.ChatbotTurn.md)
- [SuperOffice.WebApi.Data.AI GetChatbotTurnsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.AI_GetChatbotTurnsRequest.md)
