stream

Post json structures that describe callcenter (Sytel) queue and queued call status. This information is, in turn, broadcast via websockets to CCM Monitor clients.

Method, Path

POST /stream

Params

Required:

none

Optional:

any valid json

Success Response:

Code: 200
Content: ok

Error Response:

Code: 200
Content: { error : "error text" }

Notes:

This service is the endpoint for SMRT webhooks that inform CCM of queued calls.

e.g.

URL:  
https://acd.smrttouch.com:443/api-v2/subscribers?access_token=a1d9c44c084596e1d30e0413122d4d41aed853c81cca9b44c0a2387623

POST Body:
{
    "url": "https://eltest.ccm.smrttouch.com/stream/",
    "format": "json",
    "projectId": "f279a340-c267-11e8-a83d-0e2a874bc883",
    "clientId": "c1b87aae-0294-11e7-9171-0e2a874bc883",
    "topic": "ice",
    "enabled": true,
    "useCcm": true
  }

Example payload:

{topic:callStats
,data:[{nWait:0
,nAban:5
,abanMeanWait:15552.2
,abanMaxWait:41559
,nDeqd:38
,deqdMeanWait:15144.973684210527
,deqdMaxWait:82512
,projectId:DealerDedicatedInbound:BaselineServiceInbound}