Skip to content

Supervise a call

POST
/calls/{id}/supervise
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const supervisionWithToken = await mv.calls.supervise("call_7Hk2Lm9Qp", {
mode: "listen",
origin: "https://app.example.com",
supervisor: {
user_id: "usr_5ZaH2Ld9QmPx3RtYk8BvNw",
},
});
console.log(supervisionWithToken);

Starts supervising a live call handled by an agent: listen (hear both sides, unheard), whisper (only the agent hears you) or barge (both hear you). Returns a pending supervision with a short-lived client_token: pass it to the supervisor’s browser, where supervise({ token }) of @morevoice/web connects the audio (WebRTC) over ws_url. The organisation’s supervisor policy and the supervisor’s role apply as on the supervisor board, and the agent is shown the supervisor when the policy says so. Change the mode with PATCH, end it with DELETE. AI calls answer 409 unsupported_for_call_mode.

Try it in the API playground with a test-mode key.

id
required
string
<= 200 characters /^call_[0-9A-Za-z]+$/

A call ID (call_…).

MoreVoice-Version
string
/^\d{4}-\d{2}-\d{2}$/

The API version to use for this request. Defaults to the version the API key is pinned to.

Example
2026-11-01
Idempotency-Key
string
>= 1 characters <= 255 characters

A unique key (for example a UUID) that makes this request safe to retry: for 24 hours, a retry with the same key and parameters returns the first response instead of acting twice.

Example
5f0c1e8a-7b2d-4c3e-9f1a-2b6d8e4c0a17
Media typeapplication/json

Start supervising a live call handled by an agent.

object
mode

listen: the supervisor hears both sides and nobody hears them. whisper: the agent hears the supervisor, the customer never does. barge: the supervisor joins the conversation and both hear them.

string
default: listen
Allowed values: listen whisper barge
name

The name the agent sees (when your supervisor policy shows supervisors to agents) and the audit trail records. Default: the member’s name, else Supervisor.

string
>= 1 characters <= 80 characters
origin

The only website the token opens the supervision from (https://app.example.com): the browser’s Origin must match. Strongly recommended. Default: the agent session’s origin, when supervisor.agent_session_id names one. http is accepted for localhost only.

string
<= 300 characters /^(https:\/\/[^/\s?#]+|http:\/\/(localhost|127\.0\.0\.1)(:\d{1,5})?)\/?$/
supervisor

Who supervises. Omitted: your API key itself (its supervision:write scope), shown to the agent as name.

object
agent_session_id

An agent session (POST /v1/agent_sessions) of a supervisor: the supervision is that member’s, and it ends with the session.

string
<= 200 characters /^ags_[0-9A-Za-z]+$/
user_id

The member who supervises (a supervisor, admin or owner of the organisation): their role’s permissions apply (whisper needs supervisor.whisper, barge supervisor.barge).

string
<= 200 characters /^usr_[0-9A-Za-z]+$/
ttl_s

How long the browser has to connect, in seconds (300–900, default 300). A supervision nobody joins in time ends (not_connected). Once connected, the socket hands out fresh tokens, so the supervision lasts as long as the call.

integer
default: 300 >= 300 <= 900
Example
{
"mode": "listen",
"origin": "https://app.example.com",
"supervisor": {
"user_id": "usr_5ZaH2Ld9QmPx3RtYk8BvNw"
}
}

The supervision, with the token its browser connects with.

Media typeapplication/json

A new supervision, with the token its browser connects with.

object
call_id
required

The call being supervised.

string
/^call_[0-9A-Za-z]+$/
client_token
required

A short-lived token for the supervisor’s browser: supervise({ token }) of @morevoice/web connects with it. It opens this supervision only; never put your API key in the page.

string
created
required

An ISO-8601 timestamp in UTC.

string format: date-time
end_reason
required
Any of:
string
Allowed values: api left call_ended disconnected not_connected agent_session_ended
ended_at
required
Any of:

An ISO-8601 timestamp in UTC.

string format: date-time
expires_at
required

The browser must connect before this. Once connected, it gets fresh tokens over the socket.

string format: date-time
id
required

The supervision’s ID.

string
/^sup_[0-9A-Za-z]+$/
livemode
required

true in live mode, false in test mode.

boolean
mode
required

listen: the supervisor hears both sides and nobody hears them. whisper: the agent hears the supervisor, the customer never does. barge: the supervisor joins the conversation and both hear them.

string
Allowed values: listen whisper barge
object
required
string
Allowed value: supervision
started_at
required
Any of:

An ISO-8601 timestamp in UTC.

string format: date-time
status
required

pending: the browser has not joined yet. active: the supervisor is on the call. reconnecting: the browser’s connection dropped; it rejoins in the same mode by itself (the supervision ends if it is not back within 30 seconds). ended: see end_reason.

string
Allowed values: pending active reconnecting ended
supervisor
required

Who supervises.

object
agent_session_id
required
Any of:

A agent session ID (prefix ags_).

string
/^ags_[0-9A-Za-z]+$/
name
required

The name the agent sees and the audit trail records.

string
user_id
required
Any of:

A user ID (prefix usr_).

string
/^usr_[0-9A-Za-z]+$/
ws_url
required

Where the browser connects: <ws_url>?client_token=<token> (supervise() does it for you).

string
Example
{
"call_id": "call_8tRPaZp5hLMbrGqdJ9AmNa",
"client_token": "<client_token: short-lived JWT, pass it to supervise() unchanged>",
"created": "2026-11-23T09:14:22.000Z",
"end_reason": null,
"ended_at": null,
"expires_at": "2026-11-23T09:19:22.000Z",
"id": "sup_4Kx9QmZ2rTnB7dWc3Lp8Hs",
"livemode": true,
"mode": "listen",
"object": "supervision",
"started_at": null,
"status": "pending",
"supervisor": {
"agent_session_id": null,
"name": "Dana Levi",
"user_id": "usr_5ZaH2Ld9QmPx3RtYk8BvNw"
},
"ws_url": "wss://api.morevoice.ai/ws/supervision"
}

The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_error
Example
{
"error": {
"code": "parameter_missing",
"doc_url": "https://docs.morevoice.ai/api/errors#parameter-missing",
"message": "Missing required parameter: to.",
"param": "to",
"request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ",
"type": "invalid_request_error"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

No valid API key was sent.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_error
Example
{
"error": {
"code": "invalid_api_key",
"doc_url": "https://docs.morevoice.ai/api/errors#invalid-api-key",
"message": "Invalid API key.",
"request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ",
"type": "authentication_error"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

The key may not do this (a missing scope, a plan limit, or a compliance block).

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_error
Example
{
"error": {
"code": "missing_scope",
"doc_url": "https://docs.morevoice.ai/api/errors#missing-scope",
"message": "This API key lacks the calls:write scope.",
"request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ",
"type": "permission_error"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

No object with this ID (in the path or the body) exists in this organisation and mode.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_error
Example
{
"error": {
"code": "resource_missing",
"doc_url": "https://docs.morevoice.ai/api/errors#resource-missing",
"message": "No such object: 'call_4Gk2'.",
"param": "id",
"request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ",
"type": "not_found"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

The request conflicts with the object’s state, or the Idempotency-Key was reused with other parameters.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_error
Example
{
"error": {
"code": "idempotency_mismatch",
"doc_url": "https://docs.morevoice.ai/api/errors#idempotency-mismatch",
"message": "This Idempotency-Key was already used with different parameters.",
"request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ",
"type": "idempotency_error"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

The request body is larger than the endpoint accepts, or has more parts or files than it takes.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_error
Example
{
"error": {
"code": "body_too_large",
"doc_url": "https://docs.morevoice.ai/api/errors#body-too-large",
"message": "The request body is larger than the endpoint accepts.",
"request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ",
"type": "invalid_request_error"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

The request body’s Content-Type is not one the endpoint takes.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_error
Example
{
"error": {
"code": "unsupported_media_type",
"doc_url": "https://docs.morevoice.ai/api/errors#unsupported-media-type",
"message": "This endpoint takes application/json.",
"request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ",
"type": "invalid_request_error"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

Too many requests, or no call capacity right now. Retry after the Retry-After delay.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_error
Example
{
"error": {
"code": "rate_limited",
"doc_url": "https://docs.morevoice.ai/api/errors#rate-limited",
"message": "Too many requests. Retry after 1 second.",
"request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ",
"type": "rate_limit_error"
}
}
Retry-After
integer

Seconds to wait before retrying.

X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

Something went wrong on MoreVoice’s side. Retry with the same Idempotency-Key.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_error
Example
{
"error": {
"code": "internal_error",
"doc_url": "https://docs.morevoice.ai/api/errors#internal-error",
"message": "Something went wrong on MoreVoice's side.",
"request_id": "req_7Hk2LmN9pQ4rS6tV8wX0yZ",
"type": "api_error"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.