Skip to content

mv.callbacks

Callback requests and their scheduling. These methods are on mv.callbacks, where mv is your client (see the Node.js SDK). Each one returns the response object and throws when the API answers with an error.

Add a note to a callback. Appends a note, stamped with the time and the API key’s name. Needs a live key.

mv.callbacks.addNote(id: CallbacksAddNoteData["path"]["id"], body: CallbacksAddNoteData["body"], options?: RequestOptions): Promise<CallbacksAddNoteResponse>

POST /callbacks/{id}/notes · API reference

Name Type Required Description
id string yes A callback ID (cb_…).
body.text string yes The note (stamped with the time and the API key’s name).
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options.headers["Idempotency-Key"] string no 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.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

Callback:

Field Type Description
object "callback" Always callback.
id string A callback ID (prefix cb_).
livemode boolean true in live mode, false in test mode.
phone string The number to call back, E.164.
name string The person’s name, when known.
status string pending (waiting for its time), offered (ringing an agent), dialing, connected (on the call back), completed, failed (attempts used up), cancelled or expired (past its window, or too old).
source string Where the request came from: queue (a caller pressed the callback key), ivr, flow, ai (the assistant booked it), web (a website form), manual, campaign, voicemail or api.
site_id string | null The website form it came from (source = web).
due_at string The earliest time to call back (moved into business hours).
window_end string | null Don’t call after this time; null: no limit.
priority integer 1 (low) … 10 (urgent); higher is returned sooner.
route string Who returns it: agent_queue (offered to the next free agent of queue_id, then dialled), agent (agent_id calls back) or assistant (the AI assistant_id calls back).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
claimed_by string | null usr_… ID.
assistant_id string | null asst_… ID.
attempts integer Call-back attempts made so far.
max_attempts integer —
last_attempt_at string | null —
last_result string | null The last attempt’s result, e.g. answered, no-answer, busy, done-manually.
call_id string | null call_… ID.
origin_call_id string | null call_… ID.
notes string Notes for whoever returns it (each note is stamped with its time and author).
summary string | null The AI summary of the originating call, when there is one.
voicemail CallbackVoicemail | null source = voicemail: the message the caller left. null for every other source.
sla_at string | null When it should have been returned by (the SLA target, in business hours).
merged_requests integer Later requests for the same number merged into this one.
context object —
metadata Metadata Up to 50 key/value pairs (keys up to 40 characters, values up to 500) you attach to an object. Returned as sent.
completed_at string | null —
created string An ISO-8601 timestamp in UTC.
updated string An ISO-8601 timestamp in UTC.
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callback = await mv.callbacks.addNote("cb_7Hk2Lm9Qp", {
text: "Prefers a call after 17:00.",
});
console.log(callback);

Attach the agent’s call to a callback. Step 2 after POST …/start: the call the agent’s softphone placed for the callback (it must be running). Its end records the attempt (answered: completed). A callback this agent did not start is a 409 (reason not-started). Needs a live key.

mv.callbacks.attach(id: CallbacksAttachData["path"]["id"], body: CallbacksAttachData["body"], options?: RequestOptions): Promise<CallbacksAttachResponse>

POST /callbacks/{id}/attach · API reference

Name Type Required Description
id string yes A callback ID (cb_…).
body.agent_id string yes The agent who started the callback (POST …/start).
body.call_id string yes The call the agent’s softphone placed for it (running now).
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options.headers["Idempotency-Key"] string no 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.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

Callback:

Field Type Description
object "callback" Always callback.
id string A callback ID (prefix cb_).
livemode boolean true in live mode, false in test mode.
phone string The number to call back, E.164.
name string The person’s name, when known.
status string pending (waiting for its time), offered (ringing an agent), dialing, connected (on the call back), completed, failed (attempts used up), cancelled or expired (past its window, or too old).
source string Where the request came from: queue (a caller pressed the callback key), ivr, flow, ai (the assistant booked it), web (a website form), manual, campaign, voicemail or api.
site_id string | null The website form it came from (source = web).
due_at string The earliest time to call back (moved into business hours).
window_end string | null Don’t call after this time; null: no limit.
priority integer 1 (low) … 10 (urgent); higher is returned sooner.
route string Who returns it: agent_queue (offered to the next free agent of queue_id, then dialled), agent (agent_id calls back) or assistant (the AI assistant_id calls back).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
claimed_by string | null usr_… ID.
assistant_id string | null asst_… ID.
attempts integer Call-back attempts made so far.
max_attempts integer —
last_attempt_at string | null —
last_result string | null The last attempt’s result, e.g. answered, no-answer, busy, done-manually.
call_id string | null call_… ID.
origin_call_id string | null call_… ID.
notes string Notes for whoever returns it (each note is stamped with its time and author).
summary string | null The AI summary of the originating call, when there is one.
voicemail CallbackVoicemail | null source = voicemail: the message the caller left. null for every other source.
sla_at string | null When it should have been returned by (the SLA target, in business hours).
merged_requests integer Later requests for the same number merged into this one.
context object —
metadata Metadata Up to 50 key/value pairs (keys up to 40 characters, values up to 500) you attach to an object. Returned as sent.
completed_at string | null —
created string An ISO-8601 timestamp in UTC.
updated string An ISO-8601 timestamp in UTC.
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callback = await mv.callbacks.attach("cb_7Hk2Lm9Qp", {
agent_id: "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
call_id: "call_8tRPaZp5hLMbrGqdJ9AmNa",
});
console.log(callback);

Call a callback now. Calls the customer back now, without waiting for its time. via agent: rings agent_id’s softphone right away (they must be connected and not on a call: 409 offline / on-call); answering dials the customer. via assistant: the AI assistant calls them now. A callback ringing for someone else, on a call or closed is a 409; a number on the do-not-call list a 403. Needs a live key.

mv.callbacks.call(id: CallbacksCallData["path"]["id"], body?: CallbacksCallData["body"], options?: RequestOptions): Promise<CallbacksCallResponse>

POST /callbacks/{id}/call · API reference

Name Type Required Description
id string yes A callback ID (cb_…).
body.agent_id string no The agent the action is taken for (a member’s user ID): the callback must be one they see in the inbox (theirs, claimed or created by them, or their queues’), as in the app. Required with via agent; they must be connected and free.
body.via "agent" | "assistant" no agent (default): ring agent_id’s softphone now; answering dials the customer. assistant: the callback’s AI assistant calls the customer now.
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options.headers["Idempotency-Key"] string no 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.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

CallbackCallResult:

Field Type Description
object "callback_call" Always callback_call.
via "agent" | "assistant" —
call_id string | null call_… ID.
callback Callback A request to call someone back, and its progress.
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callbackCallResult = await mv.callbacks.call("cb_7Hk2Lm9Qp", {
agent_id: "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
via: "agent",
});
console.log(callbackCallResult);

Cancel a callback. Cancels an open callback that is not on a call right now (409 otherwise). Emits callback.cancelled. Needs a live key.

mv.callbacks.cancel(id: CallbacksCancelData["path"]["id"], body?: CallbacksCancelData["body"], options?: RequestOptions): Promise<CallbacksCancelResponse>

POST /callbacks/{id}/cancel · API reference

Name Type Required Description
id string yes A callback ID (cb_…).
body.reason string no Why (kept in the callback’s history).
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options.headers["Idempotency-Key"] string no 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.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

Callback:

Field Type Description
object "callback" Always callback.
id string A callback ID (prefix cb_).
livemode boolean true in live mode, false in test mode.
phone string The number to call back, E.164.
name string The person’s name, when known.
status string pending (waiting for its time), offered (ringing an agent), dialing, connected (on the call back), completed, failed (attempts used up), cancelled or expired (past its window, or too old).
source string Where the request came from: queue (a caller pressed the callback key), ivr, flow, ai (the assistant booked it), web (a website form), manual, campaign, voicemail or api.
site_id string | null The website form it came from (source = web).
due_at string The earliest time to call back (moved into business hours).
window_end string | null Don’t call after this time; null: no limit.
priority integer 1 (low) … 10 (urgent); higher is returned sooner.
route string Who returns it: agent_queue (offered to the next free agent of queue_id, then dialled), agent (agent_id calls back) or assistant (the AI assistant_id calls back).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
claimed_by string | null usr_… ID.
assistant_id string | null asst_… ID.
attempts integer Call-back attempts made so far.
max_attempts integer —
last_attempt_at string | null —
last_result string | null The last attempt’s result, e.g. answered, no-answer, busy, done-manually.
call_id string | null call_… ID.
origin_call_id string | null call_… ID.
notes string Notes for whoever returns it (each note is stamped with its time and author).
summary string | null The AI summary of the originating call, when there is one.
voicemail CallbackVoicemail | null source = voicemail: the message the caller left. null for every other source.
sla_at string | null When it should have been returned by (the SLA target, in business hours).
merged_requests integer Later requests for the same number merged into this one.
context object —
metadata Metadata Up to 50 key/value pairs (keys up to 40 characters, values up to 500) you attach to an object. Returned as sent.
completed_at string | null —
created string An ISO-8601 timestamp in UTC.
updated string An ISO-8601 timestamp in UTC.
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callback = await mv.callbacks.cancel("cb_7Hk2Lm9Qp", {
reason: "Customer called us back",
});
console.log(callback);

Take a callback for an agent. The agent takes the callback (“I’ll take it”): it becomes theirs (route agent, agent_id and claimed_by them) until they give it back. The callback must be in the agent’s inbox; an agent can’t take one another agent took (409, reason claimed), a supervisor or admin can. Needs a live key.

mv.callbacks.claim(id: CallbacksClaimData["path"]["id"], body: CallbacksClaimData["body"], options?: RequestOptions): Promise<CallbacksClaimResponse>

POST /callbacks/{id}/claim · API reference

Name Type Required Description
id string yes A callback ID (cb_…).
body.agent_id string yes The agent the action is taken for (a member’s user ID): the callback must be one they see in the inbox (theirs, claimed or created by them, or their queues’), as in the app. It becomes theirs (route agent).
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options.headers["Idempotency-Key"] string no 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.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

Callback:

Field Type Description
object "callback" Always callback.
id string A callback ID (prefix cb_).
livemode boolean true in live mode, false in test mode.
phone string The number to call back, E.164.
name string The person’s name, when known.
status string pending (waiting for its time), offered (ringing an agent), dialing, connected (on the call back), completed, failed (attempts used up), cancelled or expired (past its window, or too old).
source string Where the request came from: queue (a caller pressed the callback key), ivr, flow, ai (the assistant booked it), web (a website form), manual, campaign, voicemail or api.
site_id string | null The website form it came from (source = web).
due_at string The earliest time to call back (moved into business hours).
window_end string | null Don’t call after this time; null: no limit.
priority integer 1 (low) … 10 (urgent); higher is returned sooner.
route string Who returns it: agent_queue (offered to the next free agent of queue_id, then dialled), agent (agent_id calls back) or assistant (the AI assistant_id calls back).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
claimed_by string | null usr_… ID.
assistant_id string | null asst_… ID.
attempts integer Call-back attempts made so far.
max_attempts integer —
last_attempt_at string | null —
last_result string | null The last attempt’s result, e.g. answered, no-answer, busy, done-manually.
call_id string | null call_… ID.
origin_call_id string | null call_… ID.
notes string Notes for whoever returns it (each note is stamped with its time and author).
summary string | null The AI summary of the originating call, when there is one.
voicemail CallbackVoicemail | null source = voicemail: the message the caller left. null for every other source.
sla_at string | null When it should have been returned by (the SLA target, in business hours).
merged_requests integer Later requests for the same number merged into this one.
context object —
metadata Metadata Up to 50 key/value pairs (keys up to 40 characters, values up to 500) you attach to an object. Returned as sent.
completed_at string | null —
created string An ISO-8601 timestamp in UTC.
updated string An ISO-8601 timestamp in UTC.
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callback = await mv.callbacks.claim("cb_7Hk2Lm9Qp", {
agent_id: "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
});
console.log(callback);

Mark a callback done. Closes an open callback that was resolved another way (409 while it is on a call). Emits callback.completed. Needs a live key.

mv.callbacks.complete(id: CallbacksCompleteData["path"]["id"], body?: CallbacksCompleteData["body"], options?: RequestOptions): Promise<CallbacksCompleteResponse>

POST /callbacks/{id}/complete · API reference

Name Type Required Description
id string yes A callback ID (cb_…).
body.note string no How it was resolved (added to the notes).
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options.headers["Idempotency-Key"] string no 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.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

Callback:

Field Type Description
object "callback" Always callback.
id string A callback ID (prefix cb_).
livemode boolean true in live mode, false in test mode.
phone string The number to call back, E.164.
name string The person’s name, when known.
status string pending (waiting for its time), offered (ringing an agent), dialing, connected (on the call back), completed, failed (attempts used up), cancelled or expired (past its window, or too old).
source string Where the request came from: queue (a caller pressed the callback key), ivr, flow, ai (the assistant booked it), web (a website form), manual, campaign, voicemail or api.
site_id string | null The website form it came from (source = web).
due_at string The earliest time to call back (moved into business hours).
window_end string | null Don’t call after this time; null: no limit.
priority integer 1 (low) … 10 (urgent); higher is returned sooner.
route string Who returns it: agent_queue (offered to the next free agent of queue_id, then dialled), agent (agent_id calls back) or assistant (the AI assistant_id calls back).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
claimed_by string | null usr_… ID.
assistant_id string | null asst_… ID.
attempts integer Call-back attempts made so far.
max_attempts integer —
last_attempt_at string | null —
last_result string | null The last attempt’s result, e.g. answered, no-answer, busy, done-manually.
call_id string | null call_… ID.
origin_call_id string | null call_… ID.
notes string Notes for whoever returns it (each note is stamped with its time and author).
summary string | null The AI summary of the originating call, when there is one.
voicemail CallbackVoicemail | null source = voicemail: the message the caller left. null for every other source.
sla_at string | null When it should have been returned by (the SLA target, in business hours).
merged_requests integer Later requests for the same number merged into this one.
context object —
metadata Metadata Up to 50 key/value pairs (keys up to 40 characters, values up to 500) you attach to an object. Returned as sent.
completed_at string | null —
created string An ISO-8601 timestamp in UTC.
updated string An ISO-8601 timestamp in UTC.
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callback = await mv.callbacks.complete("cb_7Hk2Lm9Qp", {
note: "Reached by email",
});
console.log(callback);

Callback inbox counts. The numbers on the callbacks inbox’s badges and tabs: open, due, mine, queue, breached, voicemails, and the missed calls. With agent_id, as that agent’s inbox counts them (their queues and their own); without it, for the whole organization. Test keys get zeros (callbacks are live).

mv.callbacks.counts(query?: NonNullable<CallbacksCountsData["query"]>, options?: RequestOptions): Promise<CallbacksCountsResponse>

GET /callbacks/counts · API reference

Name Type Required Description
query.agent_id string no Count as this agent sees the inbox (their badge): mine, voicemails and missed_mine are theirs. Default: the whole organization.
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

CallbackCounts:

Field Type Description
object "callback_counts" Always callback_counts.
livemode boolean true in live mode, false in test mode.
agent_id string | null Whose counts these are; null: the whole organization.
open integer Open callbacks.
due integer Open callbacks whose time has come.
mine integer | null Open callbacks assigned to or claimed by the agent; null without agent_id.
queue integer Open queue callbacks nobody has claimed.
breached integer Open callbacks past their SLA target.
voicemails integer | null Open voicemail callbacks of the agent; null without agent_id.
missed integer The badge’s missed calls: an agent’s own and the unclaimed ones when missed calls are work items, else every open one.
missed_open integer | null Open missed-call items (null when missed calls are not work items).
missed_mine integer | null Open missed-call items assigned to the agent (null without agent_id, or when missed calls are not work items).
missed_queue integer | null Open missed-call items nobody holds (null when missed calls are not work items).
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callbackCounts = await mv.callbacks.counts();
console.log(callbackCounts);

Request a callback. Books a call back to phone, routed like the dashboard’s (to a queue’s agents, an agent or an AI assistant). If the number already has an open callback, the request is merged into it and that callback is returned (merged_requests counts the merges). With call_id, repeating the request for the same call returns the first callback. The call that returns it carries the callback’s metadata (on the call and its call.* events); an AI assistant that returns it gets variables and first_message, as POST /v1/calls does. variables and first_message are not returned, and are deleted once the callback is closed. Needs a live key.

mv.callbacks.create(body: CallbacksCreateData["body"], options?: RequestOptions): Promise<CallbacksCreateResponse>

POST /callbacks · API reference

Name Type Required Description
body.phone string yes The number to call back: E.164 (+972501234567) or a local form (050-123-4567).
body.agent_id string no The agent who should call back (a member’s user ID; route agent).
body.assistant_id string no The AI assistant that should call back (route assistant).
body.call_id string no The call the request came from. One callback per call: repeating the request for the same call returns the first callback.
body.due_at string no The earliest time to call back (default: now). Moved into business hours; at most 90 days ahead.
body.first_message string no What the assistant says first when it returns the call (route assistant), instead of its own first message. At most 500 characters, at most 2,000 once rendered. {{name}} placeholders are filled from variables or from the callback itself (name, phone, callback_reason: the note, callback_summary, callback_context); each one must be one of those. The assistant speaks first; when the call needs an AI disclosure, it is still said before this text. Empty: the assistant’s own first message. An assistant that runs a voice flow starts with the flow’s Start node instead.
body.max_attempts integer no How many times to try (default: the callback settings’).
body.metadata MetadataInput no Up to 50 key/value pairs (keys up to 40 characters, values up to 500) you attach to an object. Returned as sent.
body.name string no The person’s name.
body.note string no A note for whoever returns it.
body.priority integer no 1 (low) … 10 (urgent). Default: the callback settings’ priority for API requests.
body.queue_id string no A queue ID (q_…).
body.route "agent_queue" | "agent" | "assistant" no Who returns it: agent_queue (offered to the next free agent of queue_id, then dialled), agent (agent_id calls back) or assistant (the AI assistant_id calls back). Default: the callback settings’ default route.
body.variables Record<string, string> no Template variables for the assistant that returns the call: its prompt and first message ({{customer_name}}), as on POST /v1/calls; at most 50. Used when an AI assistant returns the call (route assistant).
body.window_end string no Don’t call after this time.
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options.headers["Idempotency-Key"] string no 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.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

Callback:

Field Type Description
object "callback" Always callback.
id string A callback ID (prefix cb_).
livemode boolean true in live mode, false in test mode.
phone string The number to call back, E.164.
name string The person’s name, when known.
status string pending (waiting for its time), offered (ringing an agent), dialing, connected (on the call back), completed, failed (attempts used up), cancelled or expired (past its window, or too old).
source string Where the request came from: queue (a caller pressed the callback key), ivr, flow, ai (the assistant booked it), web (a website form), manual, campaign, voicemail or api.
site_id string | null The website form it came from (source = web).
due_at string The earliest time to call back (moved into business hours).
window_end string | null Don’t call after this time; null: no limit.
priority integer 1 (low) … 10 (urgent); higher is returned sooner.
route string Who returns it: agent_queue (offered to the next free agent of queue_id, then dialled), agent (agent_id calls back) or assistant (the AI assistant_id calls back).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
claimed_by string | null usr_… ID.
assistant_id string | null asst_… ID.
attempts integer Call-back attempts made so far.
max_attempts integer —
last_attempt_at string | null —
last_result string | null The last attempt’s result, e.g. answered, no-answer, busy, done-manually.
call_id string | null call_… ID.
origin_call_id string | null call_… ID.
notes string Notes for whoever returns it (each note is stamped with its time and author).
summary string | null The AI summary of the originating call, when there is one.
voicemail CallbackVoicemail | null source = voicemail: the message the caller left. null for every other source.
sla_at string | null When it should have been returned by (the SLA target, in business hours).
merged_requests integer Later requests for the same number merged into this one.
context object —
metadata Metadata Up to 50 key/value pairs (keys up to 40 characters, values up to 500) you attach to an object. Returned as sent.
completed_at string | null —
created string An ISO-8601 timestamp in UTC.
updated string An ISO-8601 timestamp in UTC.
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callback = await mv.callbacks.create({
due_at: "2026-11-03T12:00:00+02:00",
metadata: {
crm_ticket: "T-1042",
},
name: "Dana Levi",
note: "Asked about the renewal offer.",
phone: "+972501234567",
queue_id: "q_3hRf8Kd2LmPq",
route: "agent_queue",
});
console.log(callback);

List callbacks. Returns a page of Callback objects, newest first. Pass next_cursor as starting_after for the next page; the SDKs iterate every page for you.

mv.callbacks.list(query?: NonNullable<CallbacksListData["query"]>, options?: RequestOptions): PagedList<CallbacksListResponse["data"][number], NonNullable<CallbacksListData["query"]>>

GET /callbacks · API reference

Name Type Required Description
query.limit integer no How many objects to return, 1–100 (default 20).
query.starting_after string no A cursor (next_cursor) or object ID: return the objects after it (older).
query.ending_before string no A cursor or object ID: return the objects before it (newer).
query.status string no Only callbacks in this status: pending (waiting for its time), offered (ringing an agent), dialing, connected (on the call back), completed, failed (attempts used up), cancelled or expired (past its window, or too old).
query.source string no Only callbacks from this source (voicemail: callbacks created from a voicemail message, each with its voicemail).
query.queue_id string no Only callbacks routed to this queue.
query.agent_id string no Only callbacks assigned to this agent.
query.phone string no Only callbacks for this number (any common form).
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

A PagedList: await it for the first page, for await it for every item.

import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
for await (const callback of mv.callbacks.list()) {
console.log(callback);
}

Give a callback back. Gives a taken callback back to its queue (offered to the queue’s agents again). With agent_id, only the agent who took it can (403 otherwise); without it the organization gives it back, whoever took it. Needs a live key.

mv.callbacks.release(id: CallbacksReleaseData["path"]["id"], body?: CallbacksReleaseData["body"], options?: RequestOptions): Promise<CallbacksReleaseResponse>

POST /callbacks/{id}/release · API reference

Name Type Required Description
id string yes A callback ID (cb_…).
body.agent_id string no The agent giving it back: only the agent who took it can. Leave it out to give it back as a supervisor (whoever took it).
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options.headers["Idempotency-Key"] string no 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.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

Callback:

Field Type Description
object "callback" Always callback.
id string A callback ID (prefix cb_).
livemode boolean true in live mode, false in test mode.
phone string The number to call back, E.164.
name string The person’s name, when known.
status string pending (waiting for its time), offered (ringing an agent), dialing, connected (on the call back), completed, failed (attempts used up), cancelled or expired (past its window, or too old).
source string Where the request came from: queue (a caller pressed the callback key), ivr, flow, ai (the assistant booked it), web (a website form), manual, campaign, voicemail or api.
site_id string | null The website form it came from (source = web).
due_at string The earliest time to call back (moved into business hours).
window_end string | null Don’t call after this time; null: no limit.
priority integer 1 (low) … 10 (urgent); higher is returned sooner.
route string Who returns it: agent_queue (offered to the next free agent of queue_id, then dialled), agent (agent_id calls back) or assistant (the AI assistant_id calls back).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
claimed_by string | null usr_… ID.
assistant_id string | null asst_… ID.
attempts integer Call-back attempts made so far.
max_attempts integer —
last_attempt_at string | null —
last_result string | null The last attempt’s result, e.g. answered, no-answer, busy, done-manually.
call_id string | null call_… ID.
origin_call_id string | null call_… ID.
notes string Notes for whoever returns it (each note is stamped with its time and author).
summary string | null The AI summary of the originating call, when there is one.
voicemail CallbackVoicemail | null source = voicemail: the message the caller left. null for every other source.
sla_at string | null When it should have been returned by (the SLA target, in business hours).
merged_requests integer Later requests for the same number merged into this one.
context object —
metadata Metadata Up to 50 key/value pairs (keys up to 40 characters, values up to 500) you attach to an object. Returned as sent.
completed_at string | null —
created string An ISO-8601 timestamp in UTC.
updated string An ISO-8601 timestamp in UTC.
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callback = await mv.callbacks.release("cb_7Hk2Lm9Qp", {
agent_id: "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
});
console.log(callback);

Retrieve a callback. Returns the Callback object. Answers 404 with the code resource_missing when nothing has this ID in this organisation and mode.

mv.callbacks.retrieve(id: CallbacksRetrieveData["path"]["id"], options?: RequestOptions): Promise<CallbacksRetrieveResponse>

GET /callbacks/{id} · API reference

Name Type Required Description
id string yes A callback ID (cb_…).
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

Callback:

Field Type Description
object "callback" Always callback.
id string A callback ID (prefix cb_).
livemode boolean true in live mode, false in test mode.
phone string The number to call back, E.164.
name string The person’s name, when known.
status string pending (waiting for its time), offered (ringing an agent), dialing, connected (on the call back), completed, failed (attempts used up), cancelled or expired (past its window, or too old).
source string Where the request came from: queue (a caller pressed the callback key), ivr, flow, ai (the assistant booked it), web (a website form), manual, campaign, voicemail or api.
site_id string | null The website form it came from (source = web).
due_at string The earliest time to call back (moved into business hours).
window_end string | null Don’t call after this time; null: no limit.
priority integer 1 (low) … 10 (urgent); higher is returned sooner.
route string Who returns it: agent_queue (offered to the next free agent of queue_id, then dialled), agent (agent_id calls back) or assistant (the AI assistant_id calls back).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
claimed_by string | null usr_… ID.
assistant_id string | null asst_… ID.
attempts integer Call-back attempts made so far.
max_attempts integer —
last_attempt_at string | null —
last_result string | null The last attempt’s result, e.g. answered, no-answer, busy, done-manually.
call_id string | null call_… ID.
origin_call_id string | null call_… ID.
notes string Notes for whoever returns it (each note is stamped with its time and author).
summary string | null The AI summary of the originating call, when there is one.
voicemail CallbackVoicemail | null source = voicemail: the message the caller left. null for every other source.
sla_at string | null When it should have been returned by (the SLA target, in business hours).
merged_requests integer Later requests for the same number merged into this one.
context object —
metadata Metadata Up to 50 key/value pairs (keys up to 40 characters, values up to 500) you attach to an object. Returned as sent.
completed_at string | null —
created string An ISO-8601 timestamp in UTC.
updated string An ISO-8601 timestamp in UTC.
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callback = await mv.callbacks.retrieve("cb_7Hk2Lm9Qp");
console.log(callback);

Start dialling a callback from an agent’s softphone. Step 1 of calling back from the agent’s own softphone: the callback is the agent’s and dialing while their softphone calls dial_to. Step 2: attach the call it placed (POST …/attach) before attach_before; without it the callback goes back to the list with no attempt counted. A callback ringing for another agent right now, already on a call or closed is a 409; a number on the do-not-call list a 403. Needs a live key.

mv.callbacks.start(id: CallbacksStartData["path"]["id"], body: CallbacksStartData["body"], options?: RequestOptions): Promise<CallbacksStartResponse>

POST /callbacks/{id}/start · API reference

Name Type Required Description
id string yes A callback ID (cb_…).
body.agent_id string yes The agent the action is taken for (a member’s user ID): the callback must be one they see in the inbox (theirs, claimed or created by them, or their queues’), as in the app. Their softphone places the call.
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options.headers["Idempotency-Key"] string no 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.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

CallbackDial:

Field Type Description
object "callback_dial" Always callback_dial.
callback Callback A request to call someone back, and its progress.
dial_to string The number the agent’s softphone dials (E.164).
attach_before string Attach the call (POST …/attach) before this time, or the callback goes back to the list.
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callbackDial = await mv.callbacks.start("cb_7Hk2Lm9Qp", {
agent_id: "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
});
console.log(callbackDial);

Callback statistics. Totals for callbacks requested in a period (default: the last 7 days): outcomes, SLA, time to return, by source and by agent.

mv.callbacks.stats(query?: NonNullable<CallbacksStatsData["query"]>, options?: RequestOptions): Promise<CallbacksStatsResponse>

GET /callbacks/stats · API reference

Name Type Required Description
query.from string no Start of the period (default: 7 days before to).
query.to string no End of the period (default: now).
query.queue_id string no A queue ID (q_…).
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

CallbackStats:

Field Type Description
object "callback_stats" Always callback_stats.
livemode boolean true in live mode, false in test mode.
from string An ISO-8601 timestamp in UTC.
to string An ISO-8601 timestamp in UTC.
total integer Requests in the period.
open integer —
completed integer —
failed integer —
expired integer —
cancelled integer —
within_sla integer Completed within their SLA target.
breached_open integer Still open past their SLA target.
sla_rate number | null within_sla / completed; null with nothing completed.
avg_return_ms integer | null Average time from request to completion.
attempts integer —
by_source object[] —
by_agent object[] —
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callbackStats = await mv.callbacks.stats();
console.log(callbackStats);

Stream callback inbox changes. Server-Sent Events: one frame per change in the organization’s callbacks inbox (callback.changed, missed_call.changed), for this key’s mode, as the app’s inbox refreshes on them. Frames carry IDs and the new status only; read the object to refresh. Counts against the key’s stream limit (concurrency_limit, limit_type: api_streams).

mv.callbacks.stream(options?: RequestOptions): AsyncIterable<CallbacksStreamResponse>

GET /callbacks/stream · API reference

Name Type Required Description
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

An EventStream of events.

import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
for await (const event of mv.callbacks.stream()) {
console.log(event);
}

Update a callback. Reschedule, re-route or edit an open callback. A callback on a call right now can’t be re-routed (409). Needs a live key.

mv.callbacks.update(id: CallbacksUpdateData["path"]["id"], body?: CallbacksUpdateData["body"], options?: RequestOptions): Promise<CallbacksUpdateResponse>

PATCH /callbacks/{id} · API reference

Name Type Required Description
id string yes A callback ID (cb_…).
body.agent_id string | null no usr_… ID.
body.assistant_id string | null no asst_… ID.
body.due_at string no Reschedule (moved into business hours).
body.max_attempts integer no How many times to try (default: the callback settings’).
body.name string no
body.notes string no Replaces the notes (use POST …/notes to add one).
body.priority integer no 1 (low) … 10 (urgent). Default: the callback settings’ priority for API requests.
body.queue_id string | null no q_… ID.
body.route "agent_queue" | "agent" | "assistant" no
options.headers["MoreVoice-Version"] string no The API version to use for this request. Defaults to the version the API key is pinned to.
options RequestOptions no idempotencyKey, extra headers and an abort signal: see retries and idempotency.

Callback:

Field Type Description
object "callback" Always callback.
id string A callback ID (prefix cb_).
livemode boolean true in live mode, false in test mode.
phone string The number to call back, E.164.
name string The person’s name, when known.
status string pending (waiting for its time), offered (ringing an agent), dialing, connected (on the call back), completed, failed (attempts used up), cancelled or expired (past its window, or too old).
source string Where the request came from: queue (a caller pressed the callback key), ivr, flow, ai (the assistant booked it), web (a website form), manual, campaign, voicemail or api.
site_id string | null The website form it came from (source = web).
due_at string The earliest time to call back (moved into business hours).
window_end string | null Don’t call after this time; null: no limit.
priority integer 1 (low) … 10 (urgent); higher is returned sooner.
route string Who returns it: agent_queue (offered to the next free agent of queue_id, then dialled), agent (agent_id calls back) or assistant (the AI assistant_id calls back).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
claimed_by string | null usr_… ID.
assistant_id string | null asst_… ID.
attempts integer Call-back attempts made so far.
max_attempts integer —
last_attempt_at string | null —
last_result string | null The last attempt’s result, e.g. answered, no-answer, busy, done-manually.
call_id string | null call_… ID.
origin_call_id string | null call_… ID.
notes string Notes for whoever returns it (each note is stamped with its time and author).
summary string | null The AI summary of the originating call, when there is one.
voicemail CallbackVoicemail | null source = voicemail: the message the caller left. null for every other source.
sla_at string | null When it should have been returned by (the SLA target, in business hours).
merged_requests integer Later requests for the same number merged into this one.
context object —
metadata Metadata Up to 50 key/value pairs (keys up to 40 characters, values up to 500) you attach to an object. Returned as sent.
completed_at string | null —
created string An ISO-8601 timestamp in UTC.
updated string An ISO-8601 timestamp in UTC.
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const callback = await mv.callbacks.update("cb_7Hk2Lm9Qp", {
due_at: "2026-11-04T09:30:00+02:00",
priority: 8,
});
console.log(callback);