curl --request GET \
--url https://public.watermelon.ai/api/v1/all/conversations \
--header 'Authorization: Bearer <token>'[
{
"id": 1,
"caller_id": 123,
"user_id": 123,
"service": "webchat",
"webchat_socket_channel": "<string>",
"new": true,
"is_closed": true,
"archived": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"chatbot_enabled": true,
"no_matches_count": 123,
"out_of_office_replied": true,
"company_id": 123,
"team_id": 123,
"messages": [
{
"id": 123,
"conversation_id": 123,
"user_id": 123,
"type": "text",
"payload": "<string>",
"new": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"read": true
}
]
}
]Get all the company conversations
curl --request GET \
--url https://public.watermelon.ai/api/v1/all/conversations \
--header 'Authorization: Bearer <token>'[
{
"id": 1,
"caller_id": 123,
"user_id": 123,
"service": "webchat",
"webchat_socket_channel": "<string>",
"new": true,
"is_closed": true,
"archived": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"chatbot_enabled": true,
"no_matches_count": 123,
"out_of_office_replied": true,
"company_id": 123,
"team_id": 123,
"messages": [
{
"id": 123,
"conversation_id": 123,
"user_id": 123,
"type": "text",
"payload": "<string>",
"new": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"read": true
}
]
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The page number
x >= 0The numbers of items per page.
1 <= x <= 100The begin of the date range
The end of the date range
Conversations retrieved
1
telegram, facebook, mail, webchat, twitter, whatsapp "webchat"
Show child attributes