Chronox Public APIs
    • Get Started
      • Introduction
      • Authentication
      • Rate limiting
    • Get User Details
      GET
    • Get Meta Integration
      GET
    • Get Whatsapp Templates
      GET
    • Get Whatsapp Template Details
      GET
    • Get Whatsapp Template Category
      GET
    • Get Whatsapp Languages
      GET
    • Get Whatsapp Template Type
      GET
    • Get Whatsapp Template Interactive Type
      GET
    • Get Whatsapp Template Header Type
      GET
    • Get Whatsapp Template Button Type
      GET
    • Get Whatsapp Template Dynamic Variable Type
      GET
    • Create Whatsapp Template
      POST
    • Send Whatsapp Message
      POST
    • Send Whatsapp Template
      POST
    • Get Inbox Data
      GET
    • Get Thread Details
      GET
    • Schemas
      • Thread Execution Data

      Get Inbox Data

      Developing
      GET
      /chatbot/get-user-chats

      Request

      Query Params

      Header Params

      Responses

      🟢200Success
      application/json
      Bodyapplication/json

      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location 'https://api.chronox.ai/api/chatbot/get-user-chats?chatbot_flag_message_feedback=false&page_number=1&record_per_page=100' \
      --header 'Authorization: Bearer <api-key>'
      Response Response Example
      {
        "status": true,
        "data": [
          {
            "type": "old",
            "active_chats": [
              {
                "chatbot_id": "123e4567-e89b-12d3-a456-426614174000",
                "chatbot_token": "cb_token_abc123",
                "chatbot_created_by_user_assignment_id": 1,
                "openai_assistant_id": "asst_abc123xyz",
                "chatbot_name": "Customer Support Bot",
                "chatbot_header": "Welcome to Support",
                "chatbot_discription": "AI-powered customer support chatbot",
                "chatbot_text_direction": "ltr",
                "language_id": 1,
                "chatbot_flag_edit": true,
                "chatbot_flag_public": false,
                "flag_internal_only": false,
                "chatbot_detail_type": "standard",
                "chatbot_detail_initial_message": "Hello! How can I help you today?",
                "chatbot_logo_id": "logo_123",
                "chatbot_logo_url": "https://storage.example.com/logos/logo_123.png",
                "chatbot_favicon_id": "favicon_123",
                "chatbot_favicon_url": "https://storage.example.com/favicons/favicon_123.ico",
                "send_message_placeholder": "Type your message...",
                "chatbot_knowledge_base": [
                  {
                    "knowledge_base_id": "kb_001",
                    "knowledge_base_name": "product_manual.pdf"
                  }
                ],
                "gpt_model_id": 1,
                "gpt_model_name": "gpt-4",
                "chatbot_domain": [
                  {
                    "chatbot_domain_id": "domain_001",
                    "chatbot_domain_name": "example.com"
                  }
                ],
                "chatbot_theme": {
                  "chatbot_font_color": "#000000",
                  "chatbot_back_ground_color": "#FFFFFF",
                  "system_msg_color": "#333333",
                  "user_msg_color": "#0066CC",
                  "system_msg_bg_color": "#F0F0F0",
                  "user_msg_bg_color": "#E3F2FD",
                  "chatbot_send_message_bg_color": "#0066CC",
                  "chatbot_send_message_font_color": "#FFFFFF",
                  "chatbot_send_message_icon_color": "#FFFFFF",
                  "chatbot_header_color": "#0066CC",
                  "chatbot_header_font_color": "#FFFFFF",
                  "chatbot_theme_mode": "light",
                  "show_powered_by_chronox": "true"
                },
                "chatbot_persistent_menu": [
                  {
                    "chatbot_persistent_menu_id": "menu_001",
                    "chatbot_persistent_menu_name": "Help",
                    "chatbot_persistent_menu_value": "help",
                    "chatbot_persistent_menu_seq": 1,
                    "static_message_id": "msg_001",
                    "parent_chatbot_persistent_menu_id": null,
                    "created_at_timestamp": "2024-01-15T10:30:00Z",
                    "sub_chatbot_persistent_menu": []
                  }
                ],
                "chatbot_user_threads": [
                  {
                    "chatbot_user_id": "user_001",
                    "flag_manual_override": false,
                    "openai_thread_id": "thread_abc123",
                    "chatbot_domain_id": "domain_001",
                    "chatbot_domain_name": "example.com",
                    "chatbot_user_ip_address": "192.168.1.1",
                    "chatbot_user_city": "New York",
                    "chatbot_user_country": "United States",
                    "chatbot_user_country_code": "US",
                    "chatbot_user_route_source": "Website",
                    "chatbot_user_name": "John Doe",
                    "chatbot_phone_number": "+1234567890",
                    "chatbot_user_created_timestamp": "2024-01-20T14:30:00Z",
                    "chatbot_user_active_flag": true,
                    "chatbot_user_input_token": 150,
                    "chatbot_user_output_token": 200,
                    "cart_compact_data": [
                      {
                        "item_id": "item_001",
                        "variant_id": "variant_001",
                        "item_type": "product",
                        "quantity": 2,
                        "product_price": 29.99
                      }
                    ],
                    "chatbot_thread_data": [
                      {
                        "chatbot_thread_id": "thread_001",
                        "chatbot_thread_value": "Hello, I need help with my order",
                        "thread_template_data": null,
                        "chatbot_thread_seq": 1,
                        "chatbot_thread_prompt_token": 50,
                        "chatbot_thread_completion_token": 75,
                        "chatbot_thread_total_token": 125,
                        "total_response_time": 1.5,
                        "ai_response_time": 1.2,
                        "validation_time": 0.1,
                        "openai_fnc_response_time": 0.8,
                        "openai_thread_message_response_time": 0.5,
                        "openai_thread_message_reresponse_time": 0.3,
                        "openai_thread_run_response_time": 0.4,
                        "openai_thread_run_reresponse_time": 0.2,
                        "openai_thread_data_response_time": 0.3,
                        "openai_thread_data_reresponse_time": 0.1,
                        "openai_old_messages_response_time": 0.2,
                        "openai_old_messages_reresponse_time": 0.1,
                        "flag_user_message": true,
                        "timestamp": "2024-01-20T14:30:00Z",
                        "ip_address": "192.168.1.1",
                        "chatbot_route_source": "Website",
                        "receiver_phone_number": "",
                        "quote_chatbot_thread_id": null,
                        "username": "John Doe",
                        "phone_number": "+1234567890",
                        "whatsapp_message_id": null,
                        "facebook_message_id": null,
                        "flag_manual_override": false,
                        "manual_override_user_id": null,
                        "manual_override_user_name": null,
                        "chatbot_channel_thread_data": [
                          {
                            "chatbot_channel_thread_data_id": "channel_001",
                            "integration_app_id": "app_001",
                            "integration_app_name": "Website",
                            "thread_message_type": "text",
                            "chatbot_channel_user_id": "channel_user_001",
                            "chatbot_channel_message_id": "channel_msg_001",
                            "chatbot_channel_message_timestamp": "2024-01-20T14:30:00Z",
                            "chatbot_channel_parent_message_timestamp": null,
                            "timestamp": "2024-01-20T14:30:00Z"
                          }
                        ],
                        "media_data": [
                          {
                            "aws_storage_id": "storage_001",
                            "aws_storage_file_name": "image.jpg",
                            "aws_storage_media_url": "https://storage.example.com/media/image.jpg",
                            "chatbot_thread_media_description": "Product image",
                            "message_type_id": 1,
                            "message_type_name": "image"
                          }
                        ],
                        "reaction_data": [
                          {
                            "username": "John Doe",
                            "phone_number": "+1234567890",
                            "reaction_emoji_code": "👍",
                            "reaction_emoji_character": "👍",
                            "reaction_emoji_unicode_name": "thumbs_up",
                            "chatbot_user_id": "user_001"
                          }
                        ],
                        "chatbot_message_feedback": [
                          {
                            "feedback_id": "feedback_001",
                            "feedback_option_id": "option_001",
                            "feedback_option_name": "Helpful",
                            "created_at_timestamp": "2024-01-20T15:00:00Z",
                            "updated_at_timestamp": "2024-01-20T15:00:00Z",
                            "feedback_data": [
                              {
                                "feedback_data_id": "fd_001",
                                "feedback_option_field_id": "field_001",
                                "feedback_option_field_value": "Yes",
                                "feedback_value": "The response was helpful",
                                "created_at_timestamp": "2024-01-20T15:00:00Z",
                                "feedback_option_field_placeholder": "Additional comments"
                              }
                            ]
                          }
                        ],
                        "quote_reply_data": {
                          "chatbot_thread_id": null,
                          "quote_chatbot_thread_value": null
                        },
                        "whatsapp_message_status": []
                      }
                    ],
                    "flag_azure": false,
                    "assistant_id": "asst_abc123xyz"
                  }
                ]
              }
            ],
            "closed_chats": {
              "chats": [
                {
                  "chatbot_id": "123e4567-e89b-12d3-a456-426614174000",
                  "chatbot_token": "cb_token_abc123",
                  "chatbot_created_by_user_assignment_id": 1,
                  "openai_assistant_id": "asst_abc123xyz",
                  "chatbot_name": "Customer Support Bot",
                  "chatbot_header": "Welcome to Support",
                  "chatbot_discription": "AI-powered customer support chatbot",
                  "chatbot_text_direction": "ltr",
                  "chatbot_flag_edit": true,
                  "chatbot_flag_public": false,
                  "flag_internal_only": false,
                  "chatbot_detail_type": "standard",
                  "timezone_id": 1,
                  "timezone_name": "America/New_York",
                  "timezone_hour": -5,
                  "timezone_standard_name": "EST",
                  "chatbot_detail_initial_message": "Hello! How can I help you today?",
                  "chatbot_logo_id": "logo_123",
                  "chatbot_logo_url": "https://storage.example.com/logos/logo_123.png",
                  "chatbot_favicon_id": "favicon_123",
                  "chatbot_favicon_url": "https://storage.example.com/favicons/favicon_123.ico",
                  "chatbot_knowledge_base": [
                    {
                      "knowledge_base_id": "kb_001",
                      "knowledge_base_name": "product_manual.pdf"
                    }
                  ],
                  "persona_id": 1,
                  "gpt_model_id": 1,
                  "gpt_model_name": "gpt-4",
                  "chatbot_domain": [
                    {
                      "chatbot_domain_id": "domain_001",
                      "chatbot_domain_name": "example.com"
                    }
                  ],
                  "chatbot_theme": {
                    "chatbot_font_color": "#000000",
                    "chatbot_back_ground_color": "#FFFFFF",
                    "system_msg_color": "#333333",
                    "user_msg_color": "#0066CC",
                    "system_msg_bg_color": "#F0F0F0",
                    "user_msg_bg_color": "#E3F2FD",
                    "chatbot_send_message_bg_color": "#0066CC",
                    "chatbot_send_message_font_color": "#FFFFFF",
                    "chatbot_send_message_icon_color": "#FFFFFF",
                    "chatbot_header_color": "#0066CC",
                    "chatbot_header_font_color": "#FFFFFF",
                    "chatbot_theme_mode": "light",
                    "show_powered_by_chronox": "true"
                  },
                  "chatbot_user_threads": [
                    {
                      "chatbot_user_id": "user_002",
                      "flag_manual_override": false,
                      "openai_thread_id": "thread_xyz789",
                      "chatbot_domain_id": "domain_001",
                      "chatbot_domain_name": "example.com",
                      "chatbot_user_ip_address": "192.168.1.2",
                      "chatbot_user_city": "Los Angeles",
                      "chatbot_user_country": "United States",
                      "chatbot_user_country_code": "US",
                      "chatbot_user_route_source": "WhatsApp",
                      "chatbot_user_name": "Jane Smith",
                      "chatbot_phone_number": "+1987654321",
                      "chatbot_user_created_timestamp": "2024-01-15T10:00:00Z",
                      "chatbot_user_active_flag": false,
                      "chatbot_user_input_token": 100,
                      "chatbot_user_output_token": 150,
                      "cart_compact_data": [],
                      "chatbot_thread_data": [
                        {
                          "chatbot_thread_id": "thread_002",
                          "chatbot_thread_value": "Thank you for your help!",
                          "thread_template_data": null,
                          "chatbot_thread_seq": 1,
                          "chatbot_thread_prompt_token": 30,
                          "chatbot_thread_completion_token": 50,
                          "chatbot_thread_total_token": 80,
                          "total_response_time": 1.0,
                          "ai_response_time": 0.8,
                          "validation_time": 0.1,
                          "openai_fnc_response_time": 0.5,
                          "openai_thread_message_response_time": 0.3,
                          "openai_thread_message_reresponse_time": 0.2,
                          "openai_thread_run_response_time": 0.3,
                          "openai_thread_run_reresponse_time": 0.1,
                          "openai_thread_data_response_time": 0.2,
                          "openai_thread_data_reresponse_time": 0.1,
                          "openai_old_messages_response_time": 0.1,
                          "openai_old_messages_reresponse_time": 0.05,
                          "flag_user_message": true,
                          "timestamp": "2024-01-15T10:00:00Z",
                          "ip_address": "192.168.1.2",
                          "chatbot_route_source": "WhatsApp",
                          "receiver_phone_number": "+1987654321",
                          "quote_chatbot_thread_id": null,
                          "username": "Jane Smith",
                          "phone_number": "+1987654321",
                          "whatsapp_message_id": "wa_msg_123",
                          "facebook_message_id": null,
                          "flag_manual_override": false,
                          "manual_override_user_id": null,
                          "manual_override_user_name": null,
                          "chatbot_channel_thread_data": [
                            {
                              "chatbot_channel_thread_data_id": "channel_002",
                              "integration_app_id": "app_002",
                              "integration_app_name": "WhatsApp",
                              "thread_message_type": "text",
                              "chatbot_channel_user_id": "channel_user_002",
                              "chatbot_channel_message_id": "channel_msg_002",
                              "chatbot_channel_message_timestamp": "2024-01-15T10:00:00Z",
                              "chatbot_channel_parent_message_timestamp": null,
                              "timestamp": "2024-01-15T10:00:00Z"
                            }
                          ],
                          "media_data": [],
                          "reaction_data": [],
                          "chatbot_message_feedback": [],
                          "quote_reply_data": {
                            "chatbot_thread_id": null,
                            "quote_chatbot_thread_value": null
                          },
                          "whatsapp_message_status": [
                            {
                              "status": "delivered",
                              "pricing_billable": true,
                              "pricing_model": "conversation",
                              "pricing_category": "standard",
                              "pricing_type": "outbound",
                              "webhook_timestamp": "2024-01-15T10:00:05Z",
                              "notes": null
                            }
                          ]
                        }
                      ],
                      "flag_azure": false,
                      "assistant_id": "asst_abc123xyz"
                    }
                  ]
                }
              ],
              "pagination": {
                "start_index": 1,
                "end_index": 10,
                "total_chats": 25,
                "records_per_page": 10
              }
            }
          },
          {
            "type": "new",
            "thread_data": [
              {
                "channel_id": "channel_001",
                "channel_name": "WhatsApp",
                "integrated_channel_id": "ic_001",
                "thread_id": "thread_new_001",
                "channel_content_type_id": 1,
                "channel_content_type_name": "text",
                "flag_manual": false,
                "thread_start_timestamp": "2024-01-20T16:00:00Z",
                "thread_last_updated_timestamp": "2024-01-20T16:30:00Z",
                "thread_metadata": {
                  "sender_name": "Alice Johnson",
                  "sender_phone": "+1555123456"
                },
                "manual_agent_data": null,
                "thread_tags": [
                  {
                    "tag_id": "tag_001",
                    "tag_name": "urgent"
                  }
                ],
                "thread_status": {
                  "status_id": "status_001",
                  "status_name": "open"
                },
                "thread_notes": [
                  {
                    "note_id": "note_001",
                    "note_content": "Customer requested callback",
                    "created_at": "2024-01-20T16:15:00Z"
                  }
                ]
              }
            ]
          }
        ]
      }
      Modified at 2025-12-16 11:32:38
      Previous
      Send Whatsapp Template
      Next
      Get Thread Details
      Built with