获取敏感词触发记录

最后更新:2025/6/19

企业可通过此接口分页获取敏感词策略触发记录

请求方式: POST(HTTPS)

请求地址: https://open.wshoto.com/openapi/sensitive/strategy/chat/page?access_token=x

Query参数:

参数 类型 必填 说明
access_token string 调用接口凭证

Body参数:

{
  "start_time" :   1673346331 ,
  "end_time" :     1674123932,
  "word": "敏感词",
  "word_group": "敏感词组",
  "sensitive_strategy_id": 1806607263633266881,
  "conversation_type_list" : [1, 2, 3],
  "user_type": "",
  "send_id_list" : ["wovvCXcAAArlLF6_5MGJgXN3qEXnzV5g"],
  "user_id_list" : ["wovvCXcAAArlLF6_5MGJgXN3qEXnzV5g"],
  "dept_id_list" : [1],
  "current_index":1,
  "page_size":20
}
参数 类型 必填 说明
start_time long 创建开始时间(时间戳,单位:秒)
end_time long 创建结束时间(时间戳,单位:秒)
word string 敏感词
word_group string 敏感词组
sensitive_strategy_id long 敏感词组id
conversation_type_list int[] 会话类型,1员工与员工的单聊,2员工与客户的单聊,3内部群聊,4外部群聊
user_type string 发送方类型,1客户,2员工
send_id_list string[] 发送人ids,(根据发送人id查询时,发送方类型必填)
user_id_list string[] 搜索员工id
dept_id_list long[] 搜索部门id
current_index int 页码。默认值为1
page_size int 列表返回长度。默认值为20,最大值为100

返回值:

{
  "code": 0,
  "msg": "请求成功",
  "data": {
    "total": 1,
    "records": [
      {
        "id": 1582665253060128898,
        "word": "敏感词",
        "strategy_name": "敏感词组名称",
        "sensitive_strategy_id": "1806607263633266881",
        "msg_time": 1719563697028,
        "msg_id": "17660022865017686506_1719563701235",
        "user_id": "wovvCXcAAACY8jBOYunJdXzblTI7FGWA",
        "user_type": 3,
        "receiver_id": "wovvCXcAAACY8jBOYunJdXzblTI7FGWc",
        "receiver_type": 1,
        "sensitive_label": 1,
        "chat_content": "会话原文",
        "file_name": "会话文件名称",
        "gmt_create": 1719563697028
      }
    ]
  },
  "sub_code": "00000"
}

参数说明:

参数 类型 说明
code int 返回码
msg string 对返回码的文本描述内容
data object
  total long
  records object[]
    id string id
    word string 敏感词
    strategy_name string 敏感词组名称
    sensitive_strategy_id string 敏感词组id
    msg_time long 消息时间
    msg_id string 消息id
    user_id string 发送方id
    user_type int 发送方类型 1微信客户,2外部企微客户,3员工
    receiver_id string 接收方id
    receiver_type int 接收方类型 1.外部企微客户;2.微信客户;3.员工;4.内部群聊;5.外部群聊
    sensitive_label int 违规类型,1-自定义,2-行业敏感词库,3-AI违规词-涉政,4-AI违规词-涉黄,5-AI违规词-违禁,6-AI违规词-谩骂,7-AI违规词-广告,8-AI违规词-暴恐,9-AI违规词-灌水
    chat_content string 会话原文
    file_name string 文件名称
    gmt_create long 创建时间

results matching ""

    No results matching ""