Skip to content

Take a missed call for an agent

POST
/missed_calls/{id}/claim
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const missedCall = await mv.missedCalls.claim("call_7Hk2Lm9Qp", {
agent_id: "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
});
console.log(missedCall);

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.

Try it in the API playground with a test-mode key.

id
required
string
<= 200 characters /^call_[0-9A-Za-z]+$/

A call ID (call_…).

MoreVoice-Version
string
/^\d{4}-\d{2}-\d{2}$/

The API version to use for this request. Defaults to the version the API key is pinned to.

Example
2026-11-01
Idempotency-Key
string
>= 1 characters <= 255 characters

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.

Example
5f0c1e8a-7b2d-4c3e-9f1a-2b6d8e4c0a17
Media typeapplication/json
object
agent_id
required

The agent pressing Call: the item becomes theirs, unless someone else holds it (409). The call must be one they see.

string
<= 200 characters /^usr_[0-9A-Za-z]+$/
call_ids

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).

Array<string>
>= 1 items <= 500 items
Example
{
"agent_id": "usr_4Gk2LmN9pQ4rS6tV8wX0yZ"
}

OK

Media typeapplication/json

An inbound call nobody answered (or, when missed calls are work items, every unhandled missed call of one caller), as the callbacks inbox lists it.

object
agent_id
required
Any of:

Who holds it (assigned or claimed); null: the queue’s, anyone can take it.

string
/^usr_[0-9A-Za-z]+$/
attempts
required

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.

Array<object>
object
agent_id
required
Any of:

A user ID (prefix usr_).

string
/^usr_[0-9A-Za-z]+$/
at
required

An ISO-8601 timestamp in UTC.

string format: date-time
call_id
required

A call ID (prefix call_).

string
/^call_[0-9A-Za-z]+$/
result
required

How the call back ended: no_answer, busy, declined, voicemail, cancelled, short (cut off) or failed.

string
Allowed values: no_answer busy declined voicemail cancelled short failed
via
required
string
Allowed values: agent assistant
attempts_total
required

All such attempts.

integer
>= -9007199254740991 <= 9007199254740991
calls
required

The item’s calls, newest first.

Array<object>
object
id
required

A call ID (prefix call_).

string
/^call_[0-9A-Za-z]+$/
kind
required
string
Allowed values: abandoned overflow voicemail unanswered failed
started_at
required

An ISO-8601 timestamp in UTC.

string format: date-time
count
required

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).

integer
>= -9007199254740991 <= 9007199254740991
dialled
required

The number they called (your line).

string | null
first_at
required

When the first call of the item started.

string format: date-time
handled
required
Any of:
object
agent_id
required
Any of:

The agent who reached them or marked it done, when known.

string
/^usr_[0-9A-Za-z]+$/
at
required

An ISO-8601 timestamp in UTC.

string format: date-time
by
required

call: a later call reached the caller; callback: their callback was completed; manual: marked done.

string
Allowed values: call callback manual
call_id
required
Any of:

The call that reached them (by call).

string
/^call_[0-9A-Za-z]+$/
id
required

The item’s ID: its newest call. Pass it to the missed-call actions.

string
/^call_[0-9A-Za-z]+$/
kind
required

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).

string
Allowed values: abandoned overflow voicemail unanswered failed
livemode
required

true in live mode, false in test mode.

boolean
object
required
string
Allowed value: missed_call
phone
required

The caller’s number (E.164); null when it was withheld.

string | null
queue_id
required
Any of:

The queue the call waited in, if any.

string
/^q_[0-9A-Za-z]+$/
started_at
required

When the newest call started.

string format: date-time
waited_ms
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
Example
{
"agent_id": null,
"attempts": [
{
"agent_id": "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
"at": "2026-11-03T08:30:00.000Z",
"call_id": "call_2bVnT8kLq4MxZp7RwC1dYe",
"result": "no_answer",
"via": "agent"
}
],
"attempts_total": 1,
"calls": [
{
"id": "call_8tRPaZp5hLMbrGqdJ9AmNa",
"kind": "abandoned",
"started_at": "2026-11-03T09:14:22.000Z"
},
{
"id": "call_5mQwLk2Rt8ZpXa3BvN6cYd",
"kind": "unanswered",
"started_at": "2026-11-03T08:02:10.000Z"
}
],
"count": 2,
"dialled": "+97235550000",
"first_at": "2026-11-03T08:02:10.000Z",
"handled": null,
"id": "call_8tRPaZp5hLMbrGqdJ9AmNa",
"kind": "abandoned",
"livemode": true,
"object": "missed_call",
"phone": "+972501234567",
"queue_id": "q_3hRf8Kd2LmPq",
"started_at": "2026-11-03T09:14:22.000Z",
"waited_ms": 48000
}

The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

No valid API key was sent.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

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).

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

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.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

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.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

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.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

The request body’s Content-Type is not one the endpoint takes.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

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.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
Retry-After
integer

Seconds to wait before retrying.

X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.

Something went wrong on MoreVoice’s side. Retry with the same Idempotency-Key.

Media typeapplication/json

Every /v1 error.

object
error
required
object
code
required

A stable, machine-readable code from the error-code catalogue.

string
details

Structured context, e.g. required_scope or the compliance verdict.

object
key
additional properties
doc_url
required

A link to the documentation of this code.

string
message
required

A human-readable explanation. Do not parse it.

string
param

The request parameter the error relates to, e.g. to or metadata[order_id].

string
request_id
required

The X-Request-Id of this request. Quote it when you contact support.

string
type
required

The category of the error.

string
Allowed values: invalid_request_error authentication_error permission_error not_found conflict rate_limit_error compliance_error idempotency_error api_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"
}
}
X-Request-Id
string

The request’s ID (req_…). Quote it when you contact support.