Skip to main content
Returns a paginated list of conversations belonging to the authenticated user’s assistants. Supports filtering by type, assistant, and date range.

Endpoint

GET /user/conversations

Query parameters

type
string
Filter by conversation type: test, widget, whatsapp, or api.
assistant_id
integer
Filter by assistant ID. Must belong to your account.
date_from
string
Filter conversations from this date. Format: YYYY-MM-DD.
date_to
string
Filter conversations up to this date. Format: YYYY-MM-DD.
per_page
integer
Number of conversations per page. Range: 1–100. Default: 15.
page
integer
Page number. Default: 1.

Response

data
array
Array of conversation objects.
current_page
integer
Current page number.
per_page
integer
Items per page.
total
integer
Total matching conversations.
last_page
integer
Last page number.

Conversation types

TypeDescription
testInternal test conversations from the assistant testing interface. Free.
widgetConversations from the web chat widget. Charged per user message.
whatsappWhatsApp Business conversations.
apiConversations created via the API.

Example

curl -X GET "https://portal.intellixent.ai/api/user/conversations?type=widget&per_page=10" \
  -H "Authorization: Bearer YOUR_API_KEY"
200 Response
{
  "current_page": 1,
  "data": [
    {
      "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "assistant_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
      "assistant_name": "Support Assistant",
      "type": "widget",
      "message_count": 12,
      "total_cost": 0.0045,
      "ai_enabled": true,
      "created_at": "2025-01-25 14:30:00",
      "updated_at": "2025-01-25 14:45:22"
    }
  ],
  "per_page": 15,
  "total": 68,
  "last_page": 5
}