Call Capability (https)
# Call Capability (https)
# Login Operation
# ● Agent Login
Description Agent login (Web phone answering not supported)
API URL :https://sg.sobot.io/callservice/v6/webmsg/agent/_login
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agentID | String | Yes | Agent work no. or id |
agentType | String | No | 1: Agent id; 0/blank: Agent work no. |
bindExt | String | Yes | Extension account bound when logging in |
phoneType | String | Yes | sip: SIP phone answering; pstn: Phone answering |
bindMobile | String | No | Required when agent answers by mobile phone |
agentState | String | No | Agent status after login 1: Online; 2: DND; DND by default |
edgeOut | String | No | Enforce the logout on the other end. When the current login information does not match the phone bar, you can choose to enforce the logout; 1 - enforce logout; non-1 - do not enforce |
Return param
Param | Type | Required | Description |
---|---|---|---|
agentState | String | Yes | 1: Online; 2: DND; DND by default when blank |
bindExt | String | Yes | Extension account bound when logging in |
phoneType | String | Yes | sip: SIP phone answering; pstn: Phone answering |
reasonCode | String | Yes | Occupied reason, 0: not occupied; 2: DND; set 0 when agentState is 1 |
creationTime | long | Yes | Upstream service response timestamp (ms) |
bindMobile | String | No | Required when agent answers by mobile phone |
Response example:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "AgentLogin",
"creationTime": 1656568762440 ,
"data": {
"creationTime": 1656568762237 ,
"agentState": "1",
"reasonCode": "0",
"phoneType": "sip",
"bindExt": "5001",
"bindMobile": " 18889671923 "
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# ● Agent Logout
Description Agent logout
API URL :https://sg.sobot.io/callservice/v6/webmsg/agent/_logout
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agentID | String | Yes | Agent work no. or id |
agentType | String | No | 1: Agent id; 0/blank: Agent work no. |
Response example:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "AgentLogout",
"creationTime": 1656398763545
}
2
3
4
5
6
7
8
9
10
# ● Agent Occupied
Description Set Agent to Busy
API URL :https://sg.sobot.io/callservice/v6/webmsg/agent/_notReady
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agentID | String | Yes | Agent work no. or id |
agentType | String | No | 1: Agent id; 0/blank: Agent work no. |
reasonCode | String | Yes | 2: DND; 11: Break; 12-18: Custom |
Response example:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "AgentNotReady",
"creationTime": 1656398763545
}
2
3
4
5
6
7
8
9
# ● Agent Ready
Description set agent to ready
API URL :https://sg.sobot.io/callservice/v6/webmsg/agent/_ready
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agentID | String | Yes | Agent work no. or id |
agentType | String | No | 1: Agent id; 0/blank: Agent work no. |
Response example:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "AgentReady",
"creationTime": 1656398763545
}
2
3
4
5
6
7
8
9
# ● Agent Reset Logout
Description Reset agent to logout
API URL :https://sg.sobot.io/callservice/v6/webmsg/agent/_resetLogout
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agentID | String | Yes | Agent work no. or id |
agentType | String | No | 1: Agent id; 0/blank: Agent work no. |
Response example:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "AgentResetLogout",
"creationTime": 1656398763545
}
2
3
4
5
6
7
8
9
# Call Operation
# ● Outbound Calls
Description Outbound call
API URL :https://sg.sobot.io/callservice/v6/webmsg/agent/_makeCall
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Idempotency-Key | String | Yes | Idempotent string, a digest string generated based on the current request params. The same request params generate the same digest string, and the example is for reference only. |
Idempotency UUID generation example:
String requestData = "{\"agentID\":\"59220de7f88141829a1f38d8698acb26\",\"agentType\":\"1\",\"otherDN\":\"18889671923\"}";
String idempotencyKey = UUID.nameUUIDFromBytes(requestData.getBytes()).toString();
2
3
4
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agentID | String | Yes | Agent work no. or id |
agentType | String | No | 1: Agent id; 0/blank: Agent work no. |
otherDN | String | Yes | Customer Phone No. |
ANI | String | No | Customer display no. |
agentANI | String | No | Agent Display No. |
outboundPlanCode | String | No | Scheme code of customer display no. |
userData | Map<String, String> | No | Extension data; use when necessary, and no value will be passed by default |
Return param
Param | Type | Required | Description |
---|---|---|---|
callID | String | Yes | Represent a call |
creationTime | long | Yes | Call creation unix timestamp (ms) |
userData | Map<String, String> | No | Extension data; use when necessary, and no value will be passed by default |
Request example:
{
"agentID": " 59220de7f88141829a1f38d8698acb26 ",
"agentType": "1",
"userData": {
" key1 ": " value1 ",
" key2 ": " value2 "
}
}
2
3
4
5
6
7
8
Response example:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "AgentMakeCall",
"creationTime": 1656570907080 ,
"data": {
"creationTime": 1656570906917 ,
"callID": " 6bc626a40894fM4deb68502U6a93a0b98e9b "
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
# ● Answer Calls
Description: Answer calls when dialing
API URL:https://sg.sobot.io/callservice/v6/webmsg/agent/_answerCall
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agentID | String | Yes | Agent work no. or id |
agentType | String | No | 1: Agent id; 0/blank: Agent work no. |
Return param
Param | Type | Required | Description |
---|---|---|---|
callID | String | Yes | Represent a call |
Response example:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "AgentAnswerCall",
"creationTime": 1656398763545 ,
"data": {
"callID": " 6bc626a40894fM4deb68502U6a93a0b98e9b "
}
}
2
3
4
5
6
7
8
9
10
11
12
# ● Hang up Calls
Description: An agent in a talk calls this API to hang up the call
API URL:https://sg.sobot.io/callservice/v6/webmsg/agent/_hangup
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agentID | String | Yes | Agent work no. or id |
agentType | String | No | 1: Agent id; 0/blank: Agent work no. |
Return param
Param | Type | Required | Description |
---|---|---|---|
callID | String | Yes | Represent a call |
Response example:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "AgentHangup",
"creationTime": 1656398763545 ,
"data": {
"callID": " 6bc626a40894fM4deb68502U6a93a0b98e9b "
}
}
2
3
4
5
6
7
8
9
10
11
12
# ● Hold Calls
Description: Hold the in-talk calls
API URL:https://sg.sobot.io/callservice/v6/webmsg/agent/_holdCall
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agentID | String | Yes | Agent work no. or id |
agentType | String | No | 1: Agent id; 0/blank: Agent work no. |
Return param
Param | Type | Required | Description |
---|---|---|---|
callID | String | Yes | Represent a call |
Response example:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "AgentHoldCall",
"creationTime": 1656398763545 ,
"data": {
"callID": " 6bc626a40894fM4deb68502U6a93a0b98e9b "
}
}
2
3
4
5
6
7
8
9
10
11
12
# ● Cancel Call Holding
Description: Resume calls on hold
API URL:https://sg.sobot.io/callservice/v6/webmsg/agent/_retrieveCall
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agentID | String | Yes | Agent work no. or id |
agentType | String | No | 1: Agent id; 0/blank: Agent work no. |
Return param
Param | Type | Required | Description |
---|---|---|---|
callID | String | Yes | Represent a call |
Response example:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "AgentRetrieveCall",
"creationTime": 1656570907080 ,
"data": {
"callID": " 6bc626a40894fM4deb68502U6a93a0b98e9b "
}
}
2
3
4
5
6
7
8
9
10
11
12
# ● Extend Post-call Summary
Description: When the remaining post-call summary time is insufficient, call this API to extend the time
API URL: https://sg.sobot.io/callservice/v6/webmsg/agent/_delayCallAfterWork
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agentID | String | Yes | Agent work no. or id |
agentType | String | No | 1: Agent id; 0/blank: Agent work no. |
delayTime | int | Yes | 30-900s |
Return param
Param | Type | Required | Description |
---|---|---|---|
expirationTime | long | Yes | Post-call summary expiry timestamp (ms) |
Response example:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "AgentDelayCallAfterWork",
"creationTime": 1656570907080 ,
"data": {
"expirationTime": 1656570937080
}
}
2
3
4
5
6
7
8
9
10
11
12
# ● End Post-call Summary
Description: Call this API to end the post-call summary when it is completed in advance; agent can choose to set in ready status or occupied and DND status when the post-call summary ends;
API URL: https://sg.sobot.io/callservice/v6/webmsg/agent/_ready
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agentID | String | Yes | Agent work no. or id |
agentType | String | No | 1: Agent id; 0/blank: Agent work no. |
userData | Map<String, String> | No | Extension data; |
userData:
Param | Type | Required | Description |
---|---|---|---|
endACW2Busy | String | No | When it is "true", agent will be in DND status after the post-call summary ends; when it is "false", agent will be in ready status after the post-call summary ends; when it is default, agent will be in ready status after the post-call summary ends |
Request example:
Be in ready status after the post-call summary ends:
{
"agentID": " 59220de7f88141829a1f38d8698acb26 ",
"agentType": "1"
}
2
3
4
Be in DND status after the post-call summary ends:
{
"agentID": " 59220de7f88141829a1f38d8698acb26 ",
"agentType": "1",
"userData":{"endACW2Busy":"true"}
}
2
3
4
5
Response example:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "AgentReady",
"creationTime": 1656570907080
}
2
3
4
5
6
7
8
9
# Supervisor Operation
# ● Talk Monitoring
API URL :https://sg.sobot.io/callservice/v6/webmsg/monitoring/_monitorcall
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Idempotency-Key | String | Yes | UUID, idempotency |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agent | String | Yes | Agent UUID/work no. |
agentType | int | Yes | Agent param type: 0: Agent work no., 1: Agent uuid |
target | String | Yes | Target: Agent work no. or id; agent extension; agent phone no. |
targetType | int | Yes | Target type: 1 : Agent; 2: Agent extension 3: Agent phone no. |
Response message:
{
"apiVersion": "6.2.0",
"status": "Success",
"message": "OK",
"code": 200,
"reason": "OK",
"kind": "MonitoringMonitorcall",
"creationTime": 1673007056162
}
2
3
4
5
6
7
8
9
10
Failure response message:
{
"apiVersion": "6.2.0", // API version
"status": "Failure", // Success or Failure
"message": "Sorry, agent has barged in", // Error message, displayed in different languages according to http header Accept-Language. English by default
"code": 306014 , // Error code
"reason": "OPERATION_FAILURE", // Error message Key
"kind": "MonitoringMonitorcall",
"creationTime": 1673007056162
}
2
3
4
5
6
7
8
9
10
# ● Talk Takeaway
API URL :https://sg.sobot.io/callservice/v6/webmsg/monitoring/_intercept
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Idempotency-Key | String | Yes | UUID, idempotency |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agent | String | No | Agent UUID/work no. |
agentType | int | No | Agent param type: 0: Agent work no., 1: Agent uuid |
target | String | No | Target: Agent work no. or id; agent extension; agent phone no. |
targetType | int | No | Target param type: 1 : Agent; 2: Agent extension 3: Agent phone no. |
Success response message:
{
"apiVersion": "6.2.0",
"status": "Success",
"message": "OK",
"code": 200,
"reason": "OK",
"kind": "MonitoringIntercept",
"creationTime": 1673007056162
}
2
3
4
5
6
7
8
9
Failure response message:
{
"apiVersion": "6.2.0", // API version
"status": "Failure", // Success or Failure
"message": "Sorry,Agent has monitored.", // Error message, displayed in different languages according to http header Accept-Language. English by default
"code": 306014 , // Supervisor operation error code
"reason": "AgentIsInMonitorScene", // Error message Key
"kind": "MonitoringIntercept",
"creationTime": 1673007056162
}
2
3
4
5
6
7
8
9
10
# ● Talk Interrupting
API URL :https://sg.sobot.io/callservice/v6/webmsg/monitoring/_bargein
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Idempotency-Key | String | Yes | UUID, idempotency |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agent | String | Yes | Agent UUID/work no. |
agentType | int | Yes | Agent param type: 0: Agent work no., 1: Agent uuid |
target | String | Yes | Target: Agent work no. or id; agent extension; agent phone no. |
targetType | int | Yes | Target param type: 1 : Agent; 2: Agent extension 3: Agent phone no. |
Response message:
{
"apiVersion": "6.2.0",
"status": "Success",
"message": "OK",
"code": 200,
"reason": "OK",
"kind": "MonitoringBargein",
"creationTime": 1673007385399
}
2
3
4
5
6
7
8
9
Failure response message:
{
"apiVersion": "6.2.0", // API version
"status": "Failure", // Success or Failure
"message": "Sorry, Agent has intercepted.", // Error message, displayed in different languages according to http header Accept-Language. English by default
"code": 306014 , // Supervisor operation error code
"reason": "AgentIsInInterceptScene", // Error message Key
"kind": "MonitoringBargein",
"creationTime": 1673007385399
}
2
3
4
5
6
7
8
9
10
# ● Enforce Occupied
API URL :https://sg.sobot.io/callservice/v6/webmsg/monitoring/_agentNotReady
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Idempotency-Key | String | Yes | UUID, idempotency |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agent | String | Yes | Agent UUID/work no. |
agentType | int | Yes | Agent param type: 0: Agent work no., 1: Agent uuid |
target | String | Yes | Target: Agent work no. or id; agent extension; agent phone no. |
targetType | int | Yes | Target param type: 1 : Agent; 2: Agent extension 3: Agent phone no. |
Response message:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "MonitoringAgentNotReady",
"creationTime": 1673007267253
}
2
3
4
5
6
7
8
9
Failure response message:
{
"apiVersion": "6.2.0", // API version
"status": "Failure", // Success or Failure
"message": "Sorry,Agent has logouted.", // Prompt the user with an error message
"code": 306014, // http status code
"reason": "error.message.label", // Error message key label
"kind": "MonitoringAgentNotReady",
"creationTime": 1673007267253
}
2
3
4
5
6
7
8
9
10
# ● Enforce Available
API URL :https://sg.sobot.io/callservice/v6/webmsg/monitoring/_agentReady
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Idempotency-Key | String | Yes | UUID, idempotency |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agent | String | Yes | Agent UUID/work no. |
agentType | int | Yes | Agent param type: 0: Agent work no., 1: Agent uuid |
target | String | Yes | Target: Agent work no. or id; agent extension; agent phone no. |
targetType | int | Yes | Target param type: 1 : Agent; 2: Agent extension 3: Agent phone no. |
Response message:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "MonitoringAgentReady",
"creationTime": 1673007296437
}
2
3
4
5
6
7
8
9
Failure response message:
{
"apiVersion": "6.2.0", // API version
"status": "Failure", // Success or Failure
"message": "Sorry,Agent has logouted.", // Prompt the user with an error message
"code": 306014, // http status code
"reason": "error.message.label", // Error message key label
"kind": "MonitoringAgentReady",
"creationTime": 1673007339466
}
2
3
4
5
6
7
8
9
10
# ● Enforce Logout
API URL :https://sg.sobot.io/callservice/v6/webmsg/monitoring/_agentLogout
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Idempotency-Key | String | Yes | UUID, idempotency |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agent | String | Yes | Agent UUID/work no. |
agentType | int | Yes | Agent param type: 0: Agent work no., 1: Agent uuid |
target | String | Yes | Target: Agent work no. or id; agent extension; agent phone no. |
targetType | int | Yes | Target param type: 1 : Agent; 2: Agent extension 3: Agent phone no. |
Response message:
{
"apiVersion": "6.2.0",
"status": "Success",
"code": 200,
"message": "OK",
"reason": "OK",
"kind": "MonitoringAgentLogout",
"creationTime": 1673007189440
}
2
3
4
5
6
7
8
9
Failure response message:
{
"apiVersion": "6.2.0", // API version
"status": "Failure", // Success or Failure
"message": "Sorry, Agent has logouted.", // Prompt the user with an error message
"code": 306014, // http status code
"reason": "error.message.label", // Error message key label
"kind": "MonitoringAgentLogout",
"creationTime": 1673007189440
}
2
3
4
5
6
7
8
9
10
# Outbound routing rule operation
# ● Query Agent Outbound Routing
API URL :https://sg.sobot.io/callservice/tm/tm-config/api/agents/outbound-routes/rules
Request method: POST
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agent | string | Yes | Agent UUID/work no. |
agentType | int | Yes | Agent param type: 0: Agent work no., 1: Agent uuid |
Request body example:
{
"agent":"1000",
"agentType":"0"
}
2
3
4
5
Return param
Param | Type | Required | Description |
---|---|---|---|
agentUuid | string | Yes | Agent ID |
agentID | string | Yes | Agent work no. |
agentName | string | Yes | Agent name |
explicitRule | object | No | Display rule set. See Table 1 below |
explicitSchema | object | No | Dynamic display scheme set. See Table 2 below |
explicitNumbers | object | No | Display number set. See Table 3 below |
Table 1 explicitrule display rule array description
Param | Type | Required | Description |
---|---|---|---|
code | string | Yes | Code 1: Enterprise no. pool random matching; 2: Dynamic display no. scheme matching; 3: Agent no. pool designation. |
name | string | Yes | Name. |
hasSet | boolean | Yes | Only 1 piece of data in the set is the default data. true: Default display rule; false: Non-default display rule. |
Table 2 explicitschema display scheme array description
Param | Type | Required | Description |
---|---|---|---|
code | string | Yes | Scheme ID |
planName | string | Yes | Name. |
hasSet | boolean | Yes | Only 1 piece of data in the set is the default data. true: Default scheme; false: Non-default scheme. |
Table 3 explicitnumbers display number array description
Param | Type | Required | Description |
---|---|---|---|
number | string | Yes | Relay no. |
nickName | string | Yes | Relay no. alias |
hasSet | boolean | Yes | Only 1 piece of data in the set is the default data. true: Default display number; false: Non-default display number. |
Response example:
{
"apiVersion": "6.0.0",
"status": "Success",
"code": 200,
"message": "Success",
"reason": "",
"kind": "OutboundRuleResult",
"metaData": {},
"data": {
"agentUuid": "2bd382969a6ac011ed1afa120242ac120002",
"agentName": "Jack",
"agentID": "1002",
"explicitNumbers": [],
"explicitSchema": [],
"explicitRule": [
{
"code": "1",
"name": "Number List random",
"hasSet": true
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# ● Modify Agent Outbound Routing
API URL :https://sg.sobot.io/callservice/tm/tm-config/api/agents/outbound-routes/rules
Request method: PUT
Request param (header):
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param (body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agent | string | Yes | Agent UUID/work no. |
agentType | int | Yes | Agent param type: 0: Agent work no., 1: Agent uuid |
explicitRule | int | Yes | Explicit rule ,< Outbound Route> Agent Explicit rule data Permission range。 1: Enterprise no. pool random matching; 2: Dynamic display no. scheme matching; 3: Agent no. pool designation. |
explicitCode | string | No | Dynamic display scheme code, within the data permission range of the agent dynamic display schemes in <Outbound Routing>. Not blank when the display rule = dynamic display no. scheme matching. |
explicitNumber | string | No | Display no, within the data permission range of the agent individual no. pool in <Outbound Routing>. Not blank when the display rule = agent no. pool designation. |
Request body example:
{
"agent":"1000",
"agentType":"0",
"explicitRule": 0,
"explicitCode": "xxxxxxxx",
"explicitNumber": "13333333333"
}
2
3
4
5
6
7
8
Return param
Param | Type | Required | Description |
---|---|---|---|
agentUuid | string | Yes | Agent ID |
agentID | string | Yes | Agent work no. |
agentName | string | Yes | Agent name |
explicitRule | object | No | Display rule set. See Table 1 below |
explicitSchema | object | No | Dynamic display scheme set. See Table 2 below |
explicitNumbers | object | No | Display number set. See Table 3 below |
Table 1 explicitrule display rule array description
Param | Type | Required | Description |
---|---|---|---|
code | string | Yes | Code 1: Enterprise no. pool random matching; 2: Dynamic display no. scheme matching; 3: Agent no. pool designation. |
name | string | Yes | Name. |
hasSet | boolean | Yes | Only 1 piece of data in the set is the default data. true: Default display rule; false: Non-default display rule. |
Table 2 explicitschema display scheme array description
Param | Type | Required | Description |
---|---|---|---|
code | string | Yes | Scheme ID |
planName | string | Yes | Name. |
hasSet | boolean | Yes | Only 1 piece of data in the set is the default data. true: Default scheme; false: Non-default scheme. |
Table 3 explicitnumbers display number array description
Param | Type | Required | Description |
---|---|---|---|
number | string | Yes | Relay no. |
nickName | string | Yes | Relay no. alias |
hasSet | boolean | Yes | Only 1 piece of data in the set is the default data. true: Default display number; false: Non-default display number. |
Response example:
{
"apiVersion": "6.0.0",
"status": "Success",
"code": 200,
"message": "Success",
"reason": "",
"kind": "OutboundRuleResult",
"metaData": {},
"data": {
"agentUuid": "2bd382969a6ac011ed1afa120242ac120002",
"agentName": "Jack",
"agentID": "1002",
"explicitNumbers": [],
"explicitSchema": [],
"explicitRule": [
{
"code": "1",
"name": "Number List random",
"hasSet": true
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# ● Querying call agents
API URL :https://sg.sobot.io/callservice/tm/tm-config/api/agents/state/search
Request method:POST
Request param(header) :
Param | Type | Required | Description |
---|---|---|---|
Authorization | String | Yes | API access credential. Please refer to Obtain the Authentication Token |
Request param(body)
- content-type: application/json;charset=utf-8
- Param Description
Param | Type | Required | Description |
---|---|---|---|
agent | String | Yes | Agent UUID/work no. |
agentType | int | No | Agent param type: 0: Agent work no., 1: Agent uuid |
agentName | String | No | Agent name Fuzzy search |
agentID | String | No | work no. Fuzzy search |
workStatus | int | No | Agent work status -1: All 1: Ready It is ready by default |
Request body example:
{
"agent":"4f1a1f826412428c901f08731b08fe6c",
"agentType":1,
"agentName":"1003",
"agentID":"1003",
"workStatus":1
}
2
3
4
5
6
7
Return param
Param | Type | Required | Description |
---|---|---|---|
data | List<Agent> | No | For the agent information collection, see the following table |
Agent
Param | Type | Required | Description |
---|---|---|---|
agentID | String | No | Agent work no. |
agentName | String | Yes | Agent name |
agentUUID | int | Yes | Agent uuid |
ext | String | No | Extension number bound to an agent |
loginStatus | int | Yes | Login status 1:Online,2:DND,11:Break11,12:Break12,13:Break13,14:Break14,15:Break15,16:Break16,17:Break17,18:Break18,98:System Locked,0:Offline |
workStatus | int | Yes | Agent working status 0-unknown 1-EventAgentReady 、2-EventNotReady 、4-ACW、5-EventDialing 、6-EventRinging 、7-EventEstablished、8-EventHeld 、98-lock |
Response example:
{
"apiVersion": "6.0.0",
"status": "Success",
"code": 200,
"message": "Success",
"reason": "Success",
"kind": "AgentStatusAPI",
"metaData": {},
"retMsg": "Success",
"retCode": "000000",
"data": {
"list":[
{
"agentUUID": "0c036189a8a84038b0bf3011eacf21f9",
"agentID": "1003",
"agentType": 0,
"agentName": "v6-Mr.Wang",
"loginStatus": 1,
"lastLoginTime": 0,
"workStatus": 1,
"ext": "1003"
},
....
],
....
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27