Supervise a call
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);from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
supervision_with_token = client.calls.supervise("call_7Hk2Lm9Qp", { "mode": "listen", "origin": "https://app.example.com", "supervisor": { "user_id": "usr_5ZaH2Ld9QmPx3RtYk8BvNw", },})print(supervision_with_token)curl -X POST https://api.morevoice.ai/v1/calls/call_7Hk2Lm9Qp/supervise \ -H "Authorization: Bearer $MOREVOICE_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "mode": "listen", "origin": "https://app.example.com", "supervisor": { "user_id": "usr_5ZaH2Ld9QmPx3RtYk8BvNw" }}'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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A call ID (call_…).
Header Parameters
Section titled “Header Parameters”The API version to use for this request. Defaults to the version the API key is pinned to.
Example
2026-11-01A 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-2b6d8e4c0a17Request Body
Section titled “Request Body”Start supervising a live call handled by an agent.
object
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.
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.
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.
Who supervises. Omitted: your API key itself (its supervision:write scope), shown to the agent as name.
object
An agent session (POST /v1/agent_sessions) of a supervisor: the supervision is that member’s, and it ends with the session.
The member who supervises (a supervisor, admin or owner of the organisation): their role’s permissions apply (whisper needs supervisor.whisper, barge supervisor.barge).
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.
Example
{ "mode": "listen", "origin": "https://app.example.com", "supervisor": { "user_id": "usr_5ZaH2Ld9QmPx3RtYk8BvNw" }}Responses
Section titled “Responses”The supervision, with the token its browser connects with.
A new supervision, with the token its browser connects with.
object
The call being supervised.
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.
An ISO-8601 timestamp in UTC.
The browser must connect before this. Once connected, it gets fresh tokens over the socket.
The supervision’s ID.
true in live mode, false in test 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.
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.
Where the browser connects: <ws_url>?client_token=<token> (supervise() does it for you).
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.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the 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" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
No valid API key was sent.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the 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" }}Headers
Section titled “Headers”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).
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the 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" }}Headers
Section titled “Headers”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.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the 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" }}Headers
Section titled “Headers”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.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the 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" }}Headers
Section titled “Headers”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.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the 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" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
The request body’s Content-Type is not one the endpoint takes.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the 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" }}Headers
Section titled “Headers”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.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the 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" }}Headers
Section titled “Headers”Seconds to wait before retrying.
The request’s ID (req_…). Quote it when you contact support.
Something went wrong on MoreVoice’s side. Retry with the same Idempotency-Key.
Every /v1 error.
object
object
A stable, machine-readable code from the error-code catalogue.
Structured context, e.g. required_scope or the compliance verdict.
object
A link to the documentation of this code.
A human-readable explanation. Do not parse it.
The request parameter the error relates to, e.g. to or metadata[order_id].
The X-Request-Id of this request. Quote it when you contact support.
The category of the 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" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.