Retrieve a queue
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const queue = await mv.queues.retrieve("q_7Hk2Lm9Qp");console.log(queue);from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
queue = client.queues.retrieve("q_7Hk2Lm9Qp")print(queue)curl https://api.morevoice.ai/v1/queues/q_7Hk2Lm9Qp \ -H "Authorization: Bearer $MOREVOICE_API_KEY"Returns the Queue object. Answers 404 with the code resource_missing when nothing has this ID in this organisation and 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 queue ID (q_…).
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-01Responses
Section titled “Responses”OK
A queue of callers waiting for a human agent.
object
An agent who misses a call is set to away.
How callbacks requested in this queue are returned.
object
1 (low) to 10 (urgent).
Who returns this queue’s callbacks: its agents, one agent or an AI assistant.
A voicemail left in this queue becomes a callback task too.
An ISO-8601 timestamp in UTC.
A disabled queue takes no calls: they overflow.
object
Tell callers their place in line.
Said to callers when they join the queue.
What callers hear while they wait; asset plays audio_asset_id in a loop.
The queue’s ID.
true in live mode, false in test mode.
How long a caller waits before the overflow action (0: no limit).
Teams whose members answer this queue’s calls.
Users who answer this queue’s calls.
What happens to callers who waited too long, or when nobody can answer.
object
Action number: the phone number the call is forwarded to.
Overflow at once when no agent is signed in.
How long an agent’s phone rings before the next agent is tried.
Which available agent rings first: the one idle longest, or in turn.
An ISO-8601 timestamp in UTC.
object
Played before the beep (empty: the default).
object
Pressed while waiting: ask for a callback (empty: off).
Pressed while waiting: leave a voicemail (empty: off).
After-call time before an agent gets the next call.
Example
{ "away_on_missed": true, "callbacks": { "agent_id": null, "assistant_id": null, "priority": 5, "route": "agent_queue", "voicemail_to_callback": false }, "copilot_profile_id": null, "created": "2026-11-03T09:14:22.000Z", "enabled": true, "hold": { "announce_position": false, "announcement": "", "audio": "music", "audio_asset_id": null, "position_interval_seconds": 45 }, "id": "q_4Gk2LmN9pQ4rS6tV8wX0yZ", "livemode": true, "max_wait_seconds": 120, "member_team_ids": [ "team_7Hj2Kl4Mn6Pq8Rs0Tu2Vw" ], "member_user_ids": [ "usr_2Lm8Pq4Rt6Vx0Zb3Nd5Fh7" ], "name": "Support", "object": "queue", "overflow": { "action": "assistant", "assistant_id": "asst_3cYbE6uYvGkH8w4ZK1rTqd", "number": "", "queue_id": null, "user_id": null, "when_no_agents": true }, "ring_timeout_seconds": 20, "strategy": "longest_idle", "updated": "2026-11-03T09:14:22.000Z", "voice_assistant_id": null, "voicemail": { "max_seconds": 90, "message": "" }, "wait_keys": { "callback": "", "voicemail": "" }, "wrap_up_seconds": 15}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 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.
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.