(4.4.11) Generic Connector JSON API
A GC client can call this API to connect with Generic Connector.
REST JSON Format
We will use this specific format for GC REST Commands and Events for JSON API Click here for the data format
Agent Commands
Print Message
Message types and their expected output are mentioned below.
Input Message | Category | Message Type | Message Parameters | Expected Output | Comments |
|---|---|---|---|---|---|
Send Heartbeat while not logged in | system |
|
|
| |
Send Heartbeatwhile logged in | system |
|
|
| |
Connect AgentID with Client Unique Name | agent_info |
|
| No response Note We will pass SSO as a third parameter if the user is SSO Enabled, otherwise, we will send two parameters as we are sending previously | |
Agent Login | agent_state |
|
|
| |
Mobile Agent Login | agent_state |
| <agent_password>,<agent_extension>,<agent_phone>,<connection_mode> | Only on UCCE but not tested yet. | |
Agent Logout | agent_state |
|
| Supervisor Command | |
Make agent ready | agent_state |
|
|
| |
Make agent not ready | agent_state |
|
| Supervisor Command | |
Get agent current state | agent_state |
|
|
| |
Not Ready with reason code | agent_state |
|
|
| |
Make a call | agent_call |
|
|
| |
Answer a call | agent_call |
|
|
| |
Hold a call | agent_call |
|
|
| |
Unhold a call | agent_call |
|
|
| |
Release a call | agent_call |
|
|
| |
Get Agent Wrap-up Reason Codes | agent_work |
|
|
| |
Get Agent Logout Reason Codes | agent_state |
|
|
| |
Get Agent Not Ready Reason Codes | agent_state |
|
|
| |
Blind Transfer | agent_call |
|
| For UCCX
| Used only in UCCE, will update later. |
| agent_call |
|
|
| |
Conference Inititation | agent_call |
|
|
| |
Complete Transfer | agent_call |
|
|
| |
Complete Conference | agent_call |
|
|
| |
Get Dialog State | agent_dialog |
|
|
| |
Update Dialog Wrap-up Codes | agent_dialog |
|
|
| No response is received when this event is called. |
Logout with Reason | agent_state |
|
|
| |
Abrupt Agent Disconnection | agent_state |
|
| Had do send this message in backend but the output is same as of in Expected Output | |
Get Dialog State Controls | agent_dialog |
|
|
| Not Implemented yet |
Make Work Not Ready | agent_state |
|
|
|
|
Make Work Ready | agent_state |
|
|
|
|
Get Dialog Participants | agent_call |
|
|
|
|
Get Logged in Agents | agent_call |
|
|
| |
Update Dialog Variable | agent_call |
|
| Will receive this InboundCall event with updated call variables | |
Pause Zoom Call Recording | zoom | ZOOMPauseRecording#<agent_login_Id> |
|
|
|
Resume Zoom Call Recording | zoom | ZOOMResumeRecording#<agent_login_Id> |
|
|
|
Refresh | agent_state | refresh#<agent_login_Id> |
|
|
|
Get Team and Global Phonebooks | phonebook |
|
|
| |
Get Team Phonebooks | team_phonebooks | GetTeamPhonebooks#<agent_login_id> | <TeamID> |
| |
Get Contacts of a Phonebook | contacts |
|
|
| |
Accept Outbound Preview Call | agent_call | AcceptOutboundPreview#< |
| Before Call Accepted Agent State (RESERVED_OUTBOUND_PREVIEW) After Call Accepted
Call Type (OUTBOUND)
| Pass ACCEPT as a second parameter if you want to accept a preview outbound call |
Reject Outbound Preview Call | agent_call | RejectOutboundPreview#< |
| Before Call Rejected Agent State (RESERVED_OUTBOUND_PREVIEW) After Call Rejected | Pass REJECT as a second parameter if you want to reject preview outbound call |
Close Outbound Preview Call | agent_call | CloseOutboundPreview#< |
| Before Call Closed Agent State (RESERVED_OUTBOUND_PREVIEW) After Call Closed | Pass CLOSE as a second parameter if you want to close preview outbound call |
Outbound Progressive Call | agent_call |
|
| Agent State (RESERVED_OUTBOUND) Call Type (OUTBOUND) |
|
Outbound Predictive Call | gent_call |
|
| Agent State (RESERVED_OUTBOUND) Call Type (OUTBOUND) |
|
Schedule a callback call | agent_call |
| <targetMediaAddress>,<dialog_id>,<callbackTime>,<callbackNumber> |