Supervision
The live floor: queues, reps, calls and queued calls
GET /v1/floor floor:read
Responses
- 200
The floor
Fields
-
dataFloor requiredThe live floor of the key's environment: queues with today's service level, reps, calls and queued calls. The dashboard wallboard shows the same picture.
Fields
-
environment"live" | "test" required -
atstring required -
queuesobject[] required -
repsobject[] required -
callsobject[] required -
queuedobject[] required
-
-
- 400
Invalid request
- 401
Missing or invalid API key
- 404
Not found
- 429
rate_limited, or another limit named byerror.code
Monitor a rep's call: listen, whisper or barge
POST /v1/calls/{id}/monitor floor:write
Dials to into the call with the mode's flags. Only calls with a rep on them can be monitored (409 otherwise).
Path
idstring required
Body
-
mode"listen" | "whisper" | "barge"listen(muted),whisper(only the rep hears) orbargeDefault"listen". -
tostring requiredThe supervisor's phone (E.164), or
client:<identity>for a softphone
Responses
- 201
The monitor session
Fields
-
dataMonitorSession requiredA supervisor's leg on a rep's call. The mode is the leg's participant flags: listen is muted, whisper coaches the rep, barge is heard by everyone.
Fields
-
idstring required -
callIdstring required -
supervisorIdstring | null requiredThe supervising member;
nullwhen an API key started it -
supervisorNamestring | null required -
repIdstring required -
participantIdstring requiredThe supervisor's participant on the call
-
mode"listen" | "whisper" | "barge" requiredlisten(muted),whisper(only the rep hears) orbarge -
tostring requiredWhere the monitor leg rings
-
mutedboolean required -
status"connecting" | "active" | "ended" required -
endReason"ended" | "hangup" | "failed" | "rep_left" | "call_ended" | "took_over" | null required -
createdAtstring required -
joinedAtstring | null required -
endedAtstring | null required -
changesobject[] required
-
-
- 400
Invalid request
- 401
Missing or invalid API key
- 404
Not found
- 409
The call or session is not in a state to do this
- 429
rate_limited, or another limit named byerror.code
Switch mode, or mute the supervisor
PATCH /v1/monitors/{id} floor:write
Path
idstring required
Body
-
mode"listen" | "whisper" | "barge"listen(muted),whisper(only the rep hears) orbarge -
mutedbooleanThe supervisor mutes themselves
Responses
- 200
The monitor session
Fields
-
dataMonitorSession requiredA supervisor's leg on a rep's call. The mode is the leg's participant flags: listen is muted, whisper coaches the rep, barge is heard by everyone.
Fields
-
idstring required -
callIdstring required -
supervisorIdstring | null requiredThe supervising member;
nullwhen an API key started it -
supervisorNamestring | null required -
repIdstring required -
participantIdstring requiredThe supervisor's participant on the call
-
mode"listen" | "whisper" | "barge" requiredlisten(muted),whisper(only the rep hears) orbarge -
tostring requiredWhere the monitor leg rings
-
mutedboolean required -
status"connecting" | "active" | "ended" required -
endReason"ended" | "hangup" | "failed" | "rep_left" | "call_ended" | "took_over" | null required -
createdAtstring required -
joinedAtstring | null required -
endedAtstring | null required -
changesobject[] required
-
-
- 400
Invalid request
- 401
Missing or invalid API key
- 404
Not found
- 409
The call or session is not in a state to do this
- 429
rate_limited, or another limit named byerror.code
End the monitor session: the supervisor's leg leaves
DELETE /v1/monitors/{id} floor:write
Path
idstring required
Responses
- 200
The ended session
Fields
-
dataMonitorSession requiredA supervisor's leg on a rep's call. The mode is the leg's participant flags: listen is muted, whisper coaches the rep, barge is heard by everyone.
Fields
-
idstring required -
callIdstring required -
supervisorIdstring | null requiredThe supervising member;
nullwhen an API key started it -
supervisorNamestring | null required -
repIdstring required -
participantIdstring requiredThe supervisor's participant on the call
-
mode"listen" | "whisper" | "barge" requiredlisten(muted),whisper(only the rep hears) orbarge -
tostring requiredWhere the monitor leg rings
-
mutedboolean required -
status"connecting" | "active" | "ended" required -
endReason"ended" | "hangup" | "failed" | "rep_left" | "call_ended" | "took_over" | null required -
createdAtstring required -
joinedAtstring | null required -
endedAtstring | null required -
changesobject[] required
-
-
- 400
Invalid request
- 401
Missing or invalid API key
- 404
Not found
- 409
The call or session is not in a state to do this
- 429
rate_limited, or another limit named byerror.code
Take the call over from the rep
POST /v1/monitors/{id}/take-over floor:write
Barge first (409 otherwise). The rep leaves; the supervisor stays on the call.
Path
idstring required
Responses
- 200
The session, ended with
took_overFields
-
dataMonitorSession requiredA supervisor's leg on a rep's call. The mode is the leg's participant flags: listen is muted, whisper coaches the rep, barge is heard by everyone.
Fields
-
idstring required -
callIdstring required -
supervisorIdstring | null requiredThe supervising member;
nullwhen an API key started it -
supervisorNamestring | null required -
repIdstring required -
participantIdstring requiredThe supervisor's participant on the call
-
mode"listen" | "whisper" | "barge" requiredlisten(muted),whisper(only the rep hears) orbarge -
tostring requiredWhere the monitor leg rings
-
mutedboolean required -
status"connecting" | "active" | "ended" required -
endReason"ended" | "hangup" | "failed" | "rep_left" | "call_ended" | "took_over" | null required -
createdAtstring required -
joinedAtstring | null required -
endedAtstring | null required -
changesobject[] required
-
-
- 400
Invalid request
- 401
Missing or invalid API key
- 404
Not found
- 409
The call or session is not in a state to do this
- 429
rate_limited, or another limit named byerror.code
Move a queued call to another queue, or to a free rep
POST /v1/queue-calls/{id}/reassign floor:write
The id is the call id. The call keeps its place in line.
Path
idstring required
Body
-
queuestringMove it to this queue
-
repIdstringOr offer it to this rep, who must be free
-
priorityinteger0 to 100.
Responses
- 200
What moved
Fields
-
dataQueueCallReassigned requiredFields
-
callIdstring required -
transferIdstring required -
fromQueuestring | null required -
toQueuestring | null required -
repIdstring | null required
-
-
- 400
Invalid request
- 401
Missing or invalid API key
- 404
Not found
- 409
The call or session is not in a state to do this
- 429
rate_limited, or another limit named byerror.code