Skip to content

Lịch sử cuộc gọi

API quản lý lịch sử cuộc gọi.

Lấy danh sách lịch sử cuộc gọi

GET[URL]/api/crm/historycall/getAll?vbot_id={vbot_id}&project_code={project_code}&phone={phone}&page={page}&size={size}

Header

Tham sốGiá trị
AuthorizationBearer access_token

Tham số

Tham sốKiểuMô tả
vbot_idStringVBotID
project_codeStringMã nhóm
phoneStringSố điện thoại
pageIntSố trang
sizeIntSố lượng trên 1 trang

Response

Tham sốKiểuMô tả
errorIntMã lỗi (0: Thành công, khác 0: Có lỗi)
messageStringThông tin
dataObjectDanh sách lịch sử cuộc gọi

Giá trị disposition

Giá trịMô tả
misscallCuộc gọi nhỡ
answerNghe máy
busyMáy bận
noanswerKhông trả lời
cancelCuộc gọi bị hủy
congestionLỗi mạng
chanunavailKhông liên lạc được
dontcallNgười nhận từ chối
tortureLỗi mạng
invalidargsTham số không hợp lệ
someoneansweredNgười khác đã nghe máy
logoutĐã đăng xuất
botivrCallBot
moreKhông trả lời

Ví dụ response

json
{
  "error": 0,
  "message": "success",
  "data": [
    {
      "hotline_number": "sample string 1",
      "date_create": "02/27/2026 14:33:47",
      "caller": [
        {
          "phone": "sample string 1",
          "vbot_id": "sample string 2",
          "date_create": "02/27/2026 14:33:47",
          "disposition": "sample string 4",
          "time_call": "sample string 5",
          "postage": 6.1,
          "duration_call": 7,
          "source": "sample string 8",
          "member_no": "sample string 9"
        }
      ],
      "callee": [
        {
          "phone": "sample string 1",
          "vbot_id": "sample string 2",
          "date_create": "02/27/2026 14:33:47",
          "disposition": "sample string 4",
          "time_call": "sample string 5",
          "postage": 6.1,
          "duration_call": 7,
          "source": "sample string 8",
          "member_no": "sample string 9"
        }
      ],
      "time_call": "sample string 3",
      "duration_call": "sample string 4",
      "type_call": "sample string 5",
      "group_id": "sample string 6",
      "disposition": "sample string 7",
      "record_file": ["sample string 1", "sample string 2"],
      "external_call_id": "sample string 8"
    }
  ]
}

Lấy danh sách lịch sử cuộc gọi theo khoảng thời gian

GET[URL]/api/crm/historycall/getAll?vbot_id={vbot_id}&project_code={project_code}&from={from}&to={to}&phone={phone}&page={page}&size={size}

Header

Tham sốGiá trị
AuthorizationBearer access_token

Tham số

Tham sốKiểuMô tả
vbot_idStringVBotID
project_codeStringMã nhóm
fromIntTừ ngày
toIntĐến ngày
phoneStringSố điện thoại
pageIntSố trang
sizeIntSố lượng trên 1 trang

Response

Tham sốKiểuMô tả
errorIntMã lỗi (0: Thành công, khác 0: Có lỗi)
messageStringThông tin

Giá trị disposition

Giá trịMô tả
misscallCuộc gọi nhỡ
answerNghe máy
busyMáy bận
noanswerKhông trả lời
cancelCuộc gọi bị hủy
congestionLỗi mạng
chanunavailKhông liên lạc được
dontcallNgười nhận từ chối
tortureLỗi mạng
invalidargsTham số không hợp lệ
someoneansweredNgười khác đã nghe máy
logoutĐã đăng xuất
botivrCallBot
moreKhông trả lời

Ví dụ response

json
{
  "error": 0,
  "message": "success",
  "data": [
    {
      "hotline_number": "sample string 1",
      "date_create": "02/27/2026 14:33:47",
      "caller": [
        {
          "phone": "sample string 1",
          "vbot_id": "sample string 2",
          "date_create": "02/27/2026 14:33:47",
          "disposition": "sample string 4",
          "time_call": "sample string 5",
          "postage": 6.1,
          "duration_call": 7,
          "source": "sample string 8",
          "member_no": "sample string 9"
        }
      ],
      "callee": [
        {
          "phone": "sample string 1",
          "vbot_id": "sample string 2",
          "date_create": "02/27/2026 14:33:47",
          "disposition": "sample string 4",
          "time_call": "sample string 5",
          "postage": 6.1,
          "duration_call": 7,
          "source": "sample string 8",
          "member_no": "sample string 9"
        }
      ],
      "time_call": "sample string 3",
      "duration_call": "sample string 4",
      "type_call": "sample string 5",
      "group_id": "sample string 6",
      "disposition": "sample string 7",
      "record_file": ["sample string 1", "sample string 2"],
      "external_call_id": "sample string 8"
    }
  ]
}

Lấy số lượng cuộc gọi

GET[URL]/api/crm/historycall/countAll?vbot_id={vbot_id}&project_code={project_code}&phone={phone}

Header

Tham sốGiá trị
AuthorizationBearer access_token

Tham số

Tham sốKiểuMô tả
vbot_idStringVBotID
project_codeStringMã nhóm
phoneStringSố điện thoại

Response

Tham sốKiểuMô tả
errorIntMã lỗi (0: Thành công, khác 0: Có lỗi)
messageStringThông tin
dataIntDữ liệu trả về

Ví dụ response

json
{
  "error": 2,
  "message": "sample string 3",
  "data": 4
}

Lấy số lượng cuộc gọi theo khoảng thời gian

GET[URL]/api/crm/historycall/countAll?vbot_id={vbot_id}&project_code={project_code}&from={from}&to={to}&phone={phone}

Header

Tham sốGiá trị
AuthorizationBearer access_token

Tham số

Tham sốKiểuMô tả
vbot_idStringVBotID
project_codeStringMã nhóm
fromIntTừ ngày
toIntĐến ngày
phoneStringSố điện thoại

Response

Tham sốKiểuMô tả
errorIntMã lỗi (0: Thành công, khác 0: Có lỗi)
messageStringThông tin
dataIntDữ liệu trả về

Ví dụ response

json
{
  "error": 2,
  "message": "sample string 3",
  "data": 4
}

Lấy file ghi âm cuộc gọi

GET[URL]/api/crm/historycall/record/{trans_id}

Header

Tham sốGiá trị
AuthorizationBearer access_token

Tham số

Tham sốKiểuMô tả
trans_idStringMã giao dịch

Response