Skip to content

client.parked_calls

Callers on hold in your park slots, and picking them up for an agent. These methods are on client.parked_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.

List parked calls. Callers waiting on hold in your park slots, newest first: parked by agents from the app, or by desk phones. Needs a live key, call park turned on, and a key that sees all of the organization’s calls.

client.parked_calls
def list(self, *, limit: int | Unset = 20, starting_after: str | Unset = UNSET, ending_before: str | Unset = UNSET, more_voice_version: str | Unset = UNSET) -> AsyncPage[_m.ParkedCall]

client.parked_calls.list() · await async_client.parked_calls.list() · GET /parked_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).

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

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

Pick up a parked call for an agent. Takes the call out of its slot and rings the member you name (by agent_id or extension) with it: their app and desk phones ring as for a direct call, and their own no-answer rule applies. Only calls parked from the app (pickup_via = agent); a desk phone’s park is picked up by dialling its slot (409). A caller who hung up meanwhile is a 404.

client.parked_calls
def pickup(self, id: str, body: _m.ParkedCallPickupParamsInput | Mapping[str, Any] | Unset = UNSET, *, more_voice_version: str | Unset = UNSET, idempotency_key: str | Unset = UNSET) -> _m.ParkedCallPickup

client.parked_calls.pickup() · await async_client.parked_calls.pickup() · POST /parked_calls/{id}/pickup · API reference

Name Type Required Description
id str yes A parked call ID (park_…).
Field Type Required Description
agent_id string no The member to ring with the call (their app and their desk phones, as a direct call to them).
extension string no Or: the extension of the member to ring.

ParkedCallPickup:

Field Type Description
object "parked_call_pickup" Always parked_call_pickup.
parked_call_id string A parked call ID (prefix park_).
call_id string A call ID (prefix call_).
slot integer —
agent_id string The member now ringing with the call.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
parked_call_pickup = client.parked_calls.pickup("park_7Hk2Lm9Qp", {
"agent_id": "usr_4Xk9Qm2LpR7t",
})
print(parked_call_pickup)

Retrieve a parked call. One parked call. A call that was picked up, rang back to the person who parked it, or whose caller hung up is gone (404).

client.parked_calls
def retrieve(self, id: str, *, more_voice_version: str | Unset = UNSET) -> _m.ParkedCall

client.parked_calls.retrieve() · await async_client.parked_calls.retrieve() · GET /parked_calls/{id} · API reference

Name Type Required Description
id str yes A parked call ID (park_…).

ParkedCall:

Field Type Description
object "parked_call" Always parked_call.
id string A parked call ID (prefix park_).
livemode boolean true in live mode, false in test mode.
slot integer The park slot it waits in (701–720 by default): a desk phone picks it up by dialling this number.
call_id string | null The call (calls parked from the app; a desk phone’s park may not have one).
caller string The caller’s number or extension.
caller_name string | null —
parked_from "app" | "desk_phone" app: an agent pressed Park in the app (or the agent desk). desk_phone: a desk phone transferred it to park.
parked_by object | null Who parked it, when known.
parked_at string An ISO-8601 timestamp in UTC.
returns_at string | null When it rings the person who parked it again if nobody picks it up; null: never.
pickup_via "agent" | "desk_phone" agent: POST /v1/parked_calls/{id}/pickup rings an agent with it. desk_phone: it is held on the phone system, so it is picked up by dialling the slot on a desk phone.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
parked_call = client.parked_calls.retrieve("park_7Hk2Lm9Qp")
print(parked_call)