Operations 4
POST
/agent-sessions/{sessionId}/barge
Gives a supervisor the ability to barge an agent on a live call
#
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nice:nice-supervisor-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Nice Supervisor API
version: v1
description: 'Operations tagged Supervisor across 2 of this provider''s published API definitions: nice-supervisor.json, nice-supervisor-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: Supervisor
description: ': Supervisor Management'
paths:
/agent-sessions/{sessionId}/monitor:
post:
tags:
- Supervisor
summary: Gives the ability to monitor an agent on a live call
description: 'This API call allows an agent to monitor a call that is active for another agent using their active agent login/session. The monitoring agent''s "station phone number" (or phone number associated with the "station ID") will be used to contact the monitoring agent, and connect them with one-way-audio to the call''s conversation stream. When monitoring, the monitoring agent can only hear the active agent and patron, but cannot speak to either of them.
The monitoring agent must be configured as a "supervisor" of the active agent in the Central website. Attempting to monitor another agent for whom you are not a supervisor will result in an error status code being returned.
The monitoring session will remain active as long as the active agent''s agent leg is connected. If the active agent''s station is disconnected or hangs up, the monitoring session is discontinued.
There are events that are generated when you are successfully monitoring another agent.'
operationId: contactMonitor
parameters:
- name: sessionId
in: path
required: true
description: An agent Session Id
schema:
type: string
- name: targetAgentId
in: query
required: true
description: The agent ID of the agent to monitor
schema:
type: integer
responses:
'202':
description: Accepted
'400':
description: Invalid Agent Id.
'401':
description: Unauthorized
'403':
description: 'Agent is not a Supervisor.\
\
Invalid Security User.'
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: access_denied
error_description:
type: string
description: Forbidden
'404':
description: Invalid agent session.
'409':
description: Invalid state.
/agent-sessions/{sessionId}/coach:
post:
tags:
- Supervisor
summary: Gives the ability to coach an agent on a live call
description: 'A supervising agent can "coach" an active agent while on a call. This is very similar to monitoring another agent''s call, except the supervising agent is able to "whisper" to the active agent. The supervising agent is able to hear the full conversation, and is also able to talk to the agent. When in "coach" mode, the patron cannot hear the supervising agent.
An active monitoring session must be established before a supervising agent can coach an active agent. There is no parameter that indicates which agent to coach, because the target agent is specified in the monitor session. Attempting to call the "coach" API without an active monitoring session will result in a 409 Conflict status code.'
operationId: contactCoach
parameters:
- name: sessionId
in: path
required: true
description: An agent Session Id
schema:
type: string
responses:
'202':
description: Accepted
'401':
description: Unauthorized
'403':
description: <p>Agent is not a Supervisor.</p><p>Coach not enabled for user.</p><p>Invalid Security User.</p>
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: access_denied
error_description:
type: string
description: Forbidden
'404':
description: Invalid agent session.
'409':
description: Invalid state.
/agent-sessions/{sessionId}/barge:
post:
tags:
- Supervisor
summary: Gives a supervisor the ability to barge an agent on a live call
description: 'Barge mode can be activated on an active monitoring session, similar to coach mode. In barge mode, the supervising agent is able to hear the target agent AND the patron, and both the target agent and patron can hear the supervising agent.
Attempting to enter barge mode without an active monitoring session will result in a 409 Conflict status code.'
operationId: contactBarge
parameters:
- name: sessionId
in: path
required: true
description: An agent Session Id
schema:
type: string
responses:
'202':
description: Accepted
'401':
description: Unauthorized
'403':
description: <p>Agent is not a Supervisor.</p><p>Barge not enabled for user.</p><p>Invalid Security User.</p>
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: access_denied
error_description:
type: string
description: Forbidden
'404':
description: Invalid agent session.
'409':
description: Invalid state.
/agent-sessions/{sessionId}/take-over:
post:
tags:
- Supervisor
summary: Gives the ability to take over an agent on a live call
description: 'Entering Takeover mode is similar to coaching or barging: an active monitoring session must exist. Attempting to enter Takeover mode without an active monitoring session will result in a 409 Conflict error status code.
There is no indication of a contact ID or agent ID in this API call, because the agent is identified when the monitor API call is made, and the contact that can be taken over is the active contact for the target agent.
The target agent is disconnected from the call, and the supervising agent is connected to the patron.'
parameters:
- name: sessionId
in: path
required: true
description: An agent Session Id
schema:
type: string
responses:
'202':
description: Accepted
'401':
description: Unauthorized
'403':
description: Take over not enabled for user.<p>Invalid Security User.</p>
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: access_denied
error_description:
type: string
description: Forbidden
'404':
description: Invalid agent session.
'409':
description: Invalid state.
operationId: post-agent-sessions-sessionId-take-over
x-refined-from:
- nice-supervisor.json
- nice-supervisor-openapi.yml