Skip to content

client.missed_calls

Inbound calls nobody answered, as the callbacks inbox lists them. These methods are on client.missed_calls, where client is a MoreVoice client (see the Python SDK). On AsyncMoreVoice the same methods are awaited. Each one returns the response object and raises an exception when the API answers with an error.

Assign a missed call. As a supervisor: gives the item to a member to call back (they get a notice when the organization has them on), or back to the queue with agent_id null. Sends missed_call.assigned. Needs a live key, and a key that sees all the organization’s calls.

client.missed_calls
def assign(self, id: str, body: _m.MissedCallsAssignBody | Mapping[str, Any], *, more_voice_version: str | Unset = UNSET, idempotency_key: str | Unset = UNSET) -> _m.MissedCall

client.missed_calls.assign() · await async_client.missed_calls.assign() · POST /missed_calls/{id}/assign · API reference

Name Type Required Description
id str yes A call ID (call_…).
Field Type Required Description
agent_id string | null yes usr_… ID.
call_ids string[] no The item’s calls as you listed them (calls[].id). Default: every call of the item now (a missed call that came in since you listed it is included).

MissedCall:

Field Type Description
object "missed_call" Always missed_call.
id string The item’s ID: its newest call. Pass it to the missed-call actions.
livemode boolean true in live mode, false in test mode.
kind "abandoned" | "overflow" | "voicemail" | "unanswered" | "failed" How the newest call was missed: abandoned (the caller left while waiting or ringing), overflow (a queue or route had nobody to take it), voicemail (they left a message), unanswered (it rang out) or failed (it failed before anyone answered).
phone string | null The caller’s number (E.164); null when it was withheld.
dialled string | null The number they called (your line).
started_at string When the newest call started.
first_at string When the first call of the item started.
count integer Missed calls in the item. When missed calls are work items, every unhandled missed call of a number is one item; otherwise each call is its own item (1).
calls object[] The item’s calls, newest first.
waited_ms integer | null How long the caller waited (in the queue, else the call’s length).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
handled object | null How and when it was handled; null while it is open.
attempts object[] Calls back to the number that did not reach the caller (the last 10, oldest first). Listed when missed calls are work items; otherwise empty.
attempts_total integer All such attempts.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
missed_call = client.missed_calls.assign("call_7Hk2Lm9Qp", {
"agent_id": "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
})
print(missed_call)

Take a missed call for an agent. The agent pressing Call: the item becomes theirs so nobody else calls the same customer; 409 (reason missed_claimed) while someone else holds it. Only when missed calls are work items for the organization (409 reason not_work_items otherwise: assign it instead). Sends missed_call.assigned. The call must be one the agent’s inbox shows. Needs a live key, and a key that sees all the organization’s calls.

client.missed_calls
def claim(self, id: str, body: _m.MissedCallsClaimBody | Mapping[str, Any], *, more_voice_version: str | Unset = UNSET, idempotency_key: str | Unset = UNSET) -> _m.MissedCall

client.missed_calls.claim() · await async_client.missed_calls.claim() · POST /missed_calls/{id}/claim · API reference

Name Type Required Description
id str yes A call ID (call_…).
Field Type Required Description
agent_id string yes The agent pressing Call: the item becomes theirs, unless someone else holds it (409). The call must be one they see.
call_ids string[] no The item’s calls as you listed them (calls[].id). Default: every call of the item now (a missed call that came in since you listed it is included).

MissedCall:

Field Type Description
object "missed_call" Always missed_call.
id string The item’s ID: its newest call. Pass it to the missed-call actions.
livemode boolean true in live mode, false in test mode.
kind "abandoned" | "overflow" | "voicemail" | "unanswered" | "failed" How the newest call was missed: abandoned (the caller left while waiting or ringing), overflow (a queue or route had nobody to take it), voicemail (they left a message), unanswered (it rang out) or failed (it failed before anyone answered).
phone string | null The caller’s number (E.164); null when it was withheld.
dialled string | null The number they called (your line).
started_at string When the newest call started.
first_at string When the first call of the item started.
count integer Missed calls in the item. When missed calls are work items, every unhandled missed call of a number is one item; otherwise each call is its own item (1).
calls object[] The item’s calls, newest first.
waited_ms integer | null How long the caller waited (in the queue, else the call’s length).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
handled object | null How and when it was handled; null while it is open.
attempts object[] Calls back to the number that did not reach the caller (the last 10, oldest first). Listed when missed calls are work items; otherwise empty.
attempts_total integer All such attempts.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
missed_call = client.missed_calls.claim("call_7Hk2Lm9Qp", {
"agent_id": "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
})
print(missed_call)

Mark a missed call done. Marks the item (every call of it) handled: it moves to the done view and sends missed_call.done. Acts for agent_id when given (the call must be one their inbox shows, as in the app), else for the organization. Needs a live key, and a key that sees all the organization’s calls.

client.missed_calls
def done(self, id: str, body: _m.MissedCallsDoneBody | Mapping[str, Any] | Unset = UNSET, *, more_voice_version: str | Unset = UNSET, idempotency_key: str | Unset = UNSET) -> _m.MissedCall

client.missed_calls.done() · await async_client.missed_calls.done() · POST /missed_calls/{id}/done · API reference

Name Type Required Description
id str yes A call ID (call_…).
Field Type Required Description
agent_id string no Mark it done as this agent (recorded as who handled it; the call must be one they see). Default: the organization (no agent).
call_ids string[] no The item’s calls as you listed them (calls[].id). Default: every call of the item now (a missed call that came in since you listed it is included).

MissedCall:

Field Type Description
object "missed_call" Always missed_call.
id string The item’s ID: its newest call. Pass it to the missed-call actions.
livemode boolean true in live mode, false in test mode.
kind "abandoned" | "overflow" | "voicemail" | "unanswered" | "failed" How the newest call was missed: abandoned (the caller left while waiting or ringing), overflow (a queue or route had nobody to take it), voicemail (they left a message), unanswered (it rang out) or failed (it failed before anyone answered).
phone string | null The caller’s number (E.164); null when it was withheld.
dialled string | null The number they called (your line).
started_at string When the newest call started.
first_at string When the first call of the item started.
count integer Missed calls in the item. When missed calls are work items, every unhandled missed call of a number is one item; otherwise each call is its own item (1).
calls object[] The item’s calls, newest first.
waited_ms integer | null How long the caller waited (in the queue, else the call’s length).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
handled object | null How and when it was handled; null while it is open.
attempts object[] Calls back to the number that did not reach the caller (the last 10, oldest first). Listed when missed calls are work items; otherwise empty.
attempts_total integer All such attempts.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
missed_call = client.missed_calls.done("call_7Hk2Lm9Qp", {
"agent_id": "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
})
print(missed_call)

List missed calls. Inbound calls nobody answered (the caller left, a queue or route had nobody, a voicemail, a call that rang out or failed), as the callbacks inbox lists them, newest first. When missed calls are work items for the organization, every unhandled missed call of one caller is one item (count, calls) with the call-back attempts that did not reach them. A missed call is handled when a later call reaches the caller, their callback is completed, or someone marks it done. With agent_id, as that agent’s inbox shows them; without it, the whole organization. Needs a key that sees all the organization’s calls.

client.missed_calls
def list(self, *, limit: int | Unset = 20, starting_after: str | Unset = UNSET, ending_before: str | Unset = UNSET, view: _m.MissedCallsListView | Unset = UNSET, agent_id: str | Unset = UNSET, kind: _m.MissedCallsListKind | Unset = UNSET, phone: str | Unset = UNSET, queue_id: str | Unset = UNSET, days: int | Unset = UNSET, more_voice_version: str | Unset = UNSET) -> AsyncPage[_m.MissedCall]

client.missed_calls.list() · await async_client.missed_calls.list() · GET /missed_calls · API reference

Name Type Required Description
limit integer no How many objects to return, 1–100 (default 20).
starting_after string no A cursor (next_cursor) or object ID: return the objects after it (older).
ending_before string no A cursor or object ID: return the objects before it (newer).
view "open" | "mine" | "queue" | "done" no open (default): not handled yet. mine: open and held by agent_id (required). queue: open and nobody holds them. done: handled (marked done, a later call reached the caller, or their callback was completed).
agent_id string no List as this agent sees the inbox: their queues’ missed calls, the ones assigned to them and the calls their role shows. Default: the whole organization.
kind "abandoned" | "overflow" | "voicemail" | "unanswered" | "failed" no Only this kind: abandoned (the caller left while waiting or ringing), overflow (a queue or route had nobody to take it), voicemail (they left a message), unanswered (it rang out) or failed (it failed before anyone answered).
phone string no Only callers whose number contains these digits (3 or more).
queue_id string no Only calls that waited in this queue.
days integer no How many days back (1–30). Default: 30 for the open views when missed calls are work items, else 7.

A page of results (MissedCallList): data, has_more and next_cursor.

from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
for missed_call in client.missed_calls.list():
print(missed_call)

Reopen a missed call. Removes the done mark (sends missed_call.reopened). One that a later call reached stays handled. Acts for agent_id when given (the call must be one their inbox shows, as in the app), else for the organization. Needs a live key, and a key that sees all the organization’s calls.

client.missed_calls
def reopen(self, id: str, body: _m.MissedCallsReopenBody | Mapping[str, Any] | Unset = UNSET, *, more_voice_version: str | Unset = UNSET, idempotency_key: str | Unset = UNSET) -> _m.MissedCall

client.missed_calls.reopen() · await async_client.missed_calls.reopen() · POST /missed_calls/{id}/reopen · API reference

Name Type Required Description
id str yes A call ID (call_…).
Field Type Required Description
agent_id string no Reopen it as this agent (the call must be one they see). Default: the organization.
call_ids string[] no The item’s calls as you listed them (calls[].id). Default: every call of the item now (a missed call that came in since you listed it is included).

MissedCall:

Field Type Description
object "missed_call" Always missed_call.
id string The item’s ID: its newest call. Pass it to the missed-call actions.
livemode boolean true in live mode, false in test mode.
kind "abandoned" | "overflow" | "voicemail" | "unanswered" | "failed" How the newest call was missed: abandoned (the caller left while waiting or ringing), overflow (a queue or route had nobody to take it), voicemail (they left a message), unanswered (it rang out) or failed (it failed before anyone answered).
phone string | null The caller’s number (E.164); null when it was withheld.
dialled string | null The number they called (your line).
started_at string When the newest call started.
first_at string When the first call of the item started.
count integer Missed calls in the item. When missed calls are work items, every unhandled missed call of a number is one item; otherwise each call is its own item (1).
calls object[] The item’s calls, newest first.
waited_ms integer | null How long the caller waited (in the queue, else the call’s length).
queue_id string | null q_… ID.
agent_id string | null usr_… ID.
handled object | null How and when it was handled; null while it is open.
attempts object[] Calls back to the number that did not reach the caller (the last 10, oldest first). Listed when missed calls are work items; otherwise empty.
attempts_total integer All such attempts.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
missed_call = client.missed_calls.reopen("call_7Hk2Lm9Qp", {})
print(missed_call)