Chatzuri Logo
  • Affiliates
  • Pricing
  • API
  • Guides
  • Blog
  • Affiliates
  • Pricing
  • API
  • Guides
  • Blog

API Documentation

  • Getting Started

    Getting Setup
  • Teams

    Teams Overview
  • Create a Team
  • Get Teams
  • Update a Team
  • Delete a Team
  • Agents

    Create an Agent
  • Message an Agent
  • Update an Agent
  • Delete an Agent
  • Get Agents
  • Stream Messages
  • Update Agent Settings
  • Upload Agent Icon
  • Delete Agent Icon
  • Upload Agent Profile Picture
  • Delete Agent Profile Picture
  • Data

    Get Leads
  • Get Conversations
  • Integrations

    Webhooks API
  1. Home
  2. API Docs
  3. Get Conversations

Get Conversations

Guide for getting conversations from a agent.

Get Conversations API

The Get Conversations API endpoint allows you to retrieve conversations from a specific agent. You can filter conversations based on various criteria, including the agent's ID, date range, and filtered sources.

Endpoint

GET:https://www.chatzuri.com/api/v1/get-conversations

Request Headers

The API request must include the following headers.

  • Authorization:Bearer <Your-Secret-Key>
    - The secret key for authenticating the API request.
  • Content-Type:application/json
    - The content type of the request payload.

Request Parameters

The request should include the following query parameters:

Required Parameters

  • agentId- (string) The ID of the target agent from which you want to retrieve conversations.

Optional Parameters

  • filteredSources- (string) Comma-separated sources to filter:
    "API""Chatzuri site""Instagram""Messenger""Slack""Unspecified""WhatsApp""Widget or Iframe"
  • startDate- (string) Start date in 'YYYY-MM-DD' format for filtering conversations.
  • endDate- (string) End date in 'YYYY-MM-DD' format for filtering conversations.
  • page- (string, default=1) Page number for pagination.
  • size- (string, default=10, max=100) Number of results per page.

Example Request

const options =​ {method: 'GET', headers: {accept: 'application/​json'}}; fetch('https:/​/​www.chatzuri.com/​api/​v1/​get-conversations?​agentId=​<agent-id>&​startDate=​2023-01-01&​endDate=​2023-12-12&​page=​1&​size=​20', options) .then(response =​> response.json()) .then(response =​> console.log(response)) .catch(err =​> console.error(err));

Response

The API response will be a JSON object with the following structure:

{ "data": [ { "id": "string", "created_at": "string", "messages": [ { "role": "string", "content": "string" } ], "chatbot_id": "string", "customer": "string", "source": "string" } ] }

The Get Conversations API endpoint provides a way to retrieve conversations from a agent based on specified filters. The response includes an array of conversations, each with its relevant details.

200

Successfully returns the conversations

400

If the start/end dates provided are invalid

401

If the API request is unauthorized

404

If the agentId provided is invalid

500

If there is an internal server error

Next::Delete Agent icon
FacebookInstagramGitHubBehancePinterestTwitterDribbble
Chatzuri

AI-powered agents are transforming customer interactions by providing instant, intelligent responses around the clock. They help businesses reduce operational costs, improve response times, and scale support without compromising quality. These agents understand natural language, learn from conversations, and integrate with existing systems to offer personalized experiences that enhance customer satisfaction and loyalty.

Chatzuri

AI-powered agents are transforming customer interactions by providing instant, intelligent responses around the clock. They help businesses reduce operational costs, improve response times, and scale support without compromising quality. These agents understand natural language, learn from conversations, and integrate with existing systems to offer personalized experiences that enhance customer satisfaction and loyalty.

Product

  • Pricing
  • Security
  • Affiliates

Resources

  • API
  • Guides
  • Blog
  • Help

Company

  • About us
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • DPA

About

  • Teams
  • Singapore, Nairobi

© 2026 Chatzuri. All rights reserved.

Made with ❤️ for businesses worldwide

Terms of ServicePrivacy PolicyCookie PolicyTevinly