文档

GetHotlineAgentDetail - 获取热线坐席详情

更新时间:

调用GetHotlineAgentDetail接口根据坐席账号获取热线坐席当前服务详情。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
ClientTokenstring

客户请求唯一 ID。用于幂等校验,可以用 UUID 生成。

46c1341e-2648-447a-9b11-70b6a298d94d****
InstanceIdstring

实例 ID。

请登录智能联络中心控制台,在实例管理中查看实例 ID。

ccc_xp_pre-cn-***
AccountNamestring

坐席账号名称,实例内唯一(登录名)。

123@****.com

返回参数

名称类型描述示例值
object

result

Messagestring

状态码描述。

OK
RequestIdstring

请求 ID。

EE338D98-9BD3-4413-B165
Dataobject

坐席服务数据。

AgentStatusCodestring

坐席状态编码。取值:

  • AgentCheckout:坐席下班。
  • AgentReady:坐席空闲。
  • AgentBreak:坐席小休。
  • AgentAcw:话后处理。
  • AgentBusyForCall:通话中。
AgentCheckout
Tokenstring

心跳签名。

dnthF_oinHg7JMJDmKqex3Ux****
AgentIdlong

坐席 ID。

2235****
Assignedboolean

是否被分配。取值: false:未分配(无通话) true:已分配(有通话)

false
RestTypeinteger

小休类型。取值:

  • 1:小休
  • 2:就餐
  • 3:会议
  • 4:辅导
  • 5:培训
1
AgentStatusinteger

坐席状态。取值范围:1-6

1
TenantIdlong

坐席所属的租户 ID,与入参中的实例 ID 相对应。

ccc_xp_pre-cn-***
Codestring

状态码。

Success
Successboolean

接口调用是否成功。

true
HttpStatusCodelong

HTTP 状态码。

200

示例

正常返回示例

JSON格式

{
  "Message": "OK",
  "RequestId": "EE338D98-9BD3-4413-B165",
  "Data": {
    "AgentStatusCode": "AgentCheckout",
    "Token": "dnthF_oinHg7JMJDmKqex3Ux****",
    "AgentId": 0,
    "Assigned": false,
    "RestType": 1,
    "AgentStatus": 1,
    "TenantId": 0
  },
  "Code": "Success",
  "Success": true,
  "HttpStatusCode": 200
}

错误码

HTTP status code错误码错误信息描述
500NoAgentFoundThe specified agent does not exist.没有找到指定坐席
500NoTenantFoundThe specified tenant does not exist.没有发现租户实例
500SystemErrorA system error occurred. Please contact the administrator.系统错误,请联系管理员!

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈