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 khách hàng
project_codeStringMã nhóm
phoneStringSố điện thoại
pageIntSố trang
sizeIntSố lượng trên 1 trang

Response

Tham sốKiểuMô tả
statusIntMã trạng thái (1: Thành công, 0: Thất bại)
errorIntMã lỗi
messageStringThông tin

Ví dụ response

json
{
  "status": 1,
  "error": 2,
  "message": "sample string 3",
  "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"
        },
        {
          "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"
        },
        {
          "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"
      ]
    },
    {
      "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"
        },
        {
          "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"
        },
        {
          "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"
      ]
    }
  ]
}

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}&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 khách hàng
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ả
statusIntMã trạng thái (1: Thành công, 0: Thất bại)
errorIntMã lỗi
messageStringThông tin

Ví dụ response

json
{
  "status": 1,
  "error": 2,
  "message": "sample string 3",
  "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"
        },
        {
          "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"
        },
        {
          "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"
      ]
    },
    {
      "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"
        },
        {
          "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"
        },
        {
          "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"
      ]
    }
  ]
}

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 khách hàng
project_codeStringMã nhóm
phoneStringSố điện thoại

Response

Tham sốKiểuMô tả
statusIntMã trạng thái (1: Thành công, 0: Thất bại)
errorIntMã lỗi
messageStringThông tin
dataIntDữ liệu trả về

Ví dụ response

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

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

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 khách hàng
project_codeStringMã nhóm
fromIntTừ ngày
toIntĐến ngày
phoneStringSố điện thoại

Response

Tham sốKiểuMô tả
statusIntMã trạng thái (1: Thành công, 0: Thất bại)
errorIntMã lỗi
messageStringThông tin
dataIntDữ liệu trả về

Ví dụ response

json
{
  "status": 1,
  "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