Giám sát cuộc gọi

API giám sát cuộc gọi.


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

API lấy danh sách cuộc gọi

GET[URL]/api/project/getAllCallPersent

Parameters

Header

Authorization Access token: Bearer

Body

vbot_id String VBotID khách hàng Bắt buộc
project_code String Mã nhóm Bắt buộc
page Int Số trang Bắt buộc
size Int Số lượng trên 1 trang Bắt buộc
json
{
    "vbot_id": "sample string 1",
    "project_code": "sample string 2",
    "page": 1,
    "size": 10
}

Response

status String Mã trạng thái, 1: Thành công, 0: Thất bại
data String Danh sách cuộc gọi
create_at Int Thời gian tạo
call_at Int Thời gian gọi
trans_id String trans_id
project_code String Mã nhóm
caller ItemInfo Thông tin người gọi
callee ItemInfo Thông tin người nghe
hotline String Hotline
type_call String Kiểu cuộc gọi
message String Thông tin lỗi
error String Mã lỗi

ItemInfo

phone String Số điện thoại
member_no String Mã thành viên
source String Được gọi từ đâu
json
{
  "status": 1,
  "error": 2,
  "message": "sample string 3",
  "data": [
    {
      "create_at": 1,
      "call_at": 2,
      "trans_id": "sample string 3",
      "project_code": "sample string 4",
      "caller": {
        "phone": "sample string 1",
        "member_no": "sample string 2",
        "source": "sample string 3"
      },
      "callee": {
        "phone": "sample string 1",
        "member_no": "sample string 2",
        "source": "sample string 3"
      },
      "hotline": "sample string 5",
      "type_call": "sample string 6"
    },
    {
      "create_at": 1,
      "call_at": 2,
      "trans_id": "sample string 3",
      "project_code": "sample string 4",
      "caller": {
        "phone": "sample string 1",
        "member_no": "sample string 2",
        "source": "sample string 3"
      },
      "callee": {
        "phone": "sample string 1",
        "member_no": "sample string 2",
        "source": "sample string 3"
      },
      "hotline": "sample string 5",
      "type_call": "sample string 6"
    }
  ]
}

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

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

GET[URL]/api/project/countAllCallPersent

Parameters

Header

Authorization Access token: Bearer

Body

vbot_id String VBotID khách hàng Bắt buộc
project_code String Mã nhóm Bắt buộc
json
{
  "vbot_id": "sample string 1",
  "project_code": "sample string 2",
}

Response

status String Mã trạng thái, 1: Thành công, 0: Thất bại
data Int Số lượng cuộc gọi
message String Thông tin lỗi
error String Mã lỗi
json
{
  "status": 1,
  "error": 2,
  "message": "sample string 3",
  "data": 4
}