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

# Get chatbots history data with pagination and search



## OpenAPI

````yaml get /chatbot/history-data
openapi: 3.0.0
info:
  title: ClearTalk API
  description: The ClearTalk API Documentation
  version: '1.0'
  contact:
    name: Developer Support
    email: devsupport@cleartalk.ai
servers:
  - url: https://api.cleartalk.ai
    description: ClearTalk AI API Server
security: []
tags: []
paths:
  /chatbot/history-data:
    get:
      tags:
        - chatbot
      summary: Get chatbots history data with pagination and search
      operationId: ChatbotController_getChatbotsHistoryData
      parameters:
        - name: page
          required: false
          in: query
          description: Page number for pagination
          schema:
            example: '1'
            type: string
        - name: limit
          required: false
          in: query
          description: Number of items per page
          schema:
            example: '10'
            type: string
        - name: search
          required: false
          in: query
          description: Search term
          schema:
            example: chatbot name
            type: string
        - name: order
          required: false
          in: query
          description: Column to order by
          schema:
            example: created_at
            type: string
        - name: dir
          required: false
          in: query
          description: Order direction (asc or desc)
          schema:
            example: desc
            type: string
      responses:
        '200':
          description: Returns the chatbots history data with pagination metadata
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````