Mark a missed call done
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const missedCall = await mv.missedCalls.done("call_7Hk2Lm9Qp", { agent_id: "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",});console.log(missedCall);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)curl -X POST https://api.morevoice.ai/v1/missed_calls/call_7Hk2Lm9Qp/done \ -H "Authorization: Bearer $MOREVOICE_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "agent_id": "usr_4Gk2LmN9pQ4rS6tV8wX0yZ"}'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.
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 call ID (call_…).
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-01A 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-2b6d8e4c0a17Request Body
Section titled “Request Body”object
Mark it done as this agent (recorded as who handled it; the call must be one they see). Default: the organization (no agent).
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).
Example
{ "agent_id": "usr_4Gk2LmN9pQ4rS6tV8wX0yZ"}Responses
Section titled “Responses”OK
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
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.
object
An ISO-8601 timestamp in UTC.
A call ID (prefix call_).
How the call back ended: no_answer, busy, declined, voicemail, cancelled, short (cut off) or failed.
All such attempts.
The item’s calls, newest first.
object
A call ID (prefix call_).
An ISO-8601 timestamp in UTC.
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).
The number they called (your line).
When the first call of the item started.
object
An ISO-8601 timestamp in UTC.
call: a later call reached the caller; callback: their callback was completed; manual: marked done.
The item’s ID: its newest call. Pass it to the missed-call actions.
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).
true in live mode, false in test mode.
The caller’s number (E.164); null when it was withheld.
When the newest call started.
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.
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 (in the path or the body) 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.
The request conflicts with the object’s state, or the Idempotency-Key was reused with other parameters.
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": "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" }}Headers
Section titled “Headers”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.
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": "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" }}Headers
Section titled “Headers”The request’s ID (req_…). Quote it when you contact support.
The request body’s Content-Type is not one the endpoint takes.
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": "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" }}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.