Retrieve a request log
import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const requestLog = await mv.requestLogs.retrieve("rlog_7Hk2Lm9Qp");console.log(requestLog);from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
request_log = client.request_logs.retrieve("rlog_7Hk2Lm9Qp")print(request_log)curl https://api.morevoice.ai/v1/request_logs/rlog_7Hk2Lm9Qp \ -H "Authorization: Bearer $MOREVOICE_API_KEY"Returns the RequestLog 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 request log ID (rlog_…).
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
One /v1 request your organisation made, as it was logged (redacted). Kept 30 days (test mode: 7).
object
The API version the response was rendered in.
When the request arrived.
The error code (error.code) of an error response.
A request log ID (prefix rlog_).
Time to answer, in milliseconds (streams: how long they stayed open).
true in live mode, false in test mode.
The OpenAPI operationId of the route, e.g. calls_create.
The path without the query string.
The request body, redacted (secrets, tokens, passwords and header values masked) and cut to 8 KB; null when there was none.
The request’s X-Request-Id (req_…), as error bodies and the X-Request-Id header show it.
The response body of errors and POSTs, redacted and cut to 8 KB; null otherwise.
The matched route template, e.g. /v1/calls/:id (null when no route matched).
The HTTP status of the response.
Example
{ "api_version": "2026-11-01", "created": "2026-11-03T09:14:22.135Z", "error_code": "parameter_invalid", "id": "rlog_4Gk2LmN9pQ4rS6tV8wX0yZ", "idempotency_key": "8e0f3a2c-5d1b-4c7e-9f6a-2b4d8c1e7a90", "ip": "203.0.113.7", "key_id": "key_3fT9kq2ZpLr8YwVbN1cX0a", "latency_ms": 42, "livemode": false, "method": "POST", "object": "request_log", "operation_id": "calls_create", "path": "/v1/calls", "query": null, "request_body": { "assistant_id": "asst_8tRPaZp5hLMbrGqdJ9AmNa", "to": "+97250000000" }, "request_id": "req_7Pq2Rk9sT1uV3wX5yZ8aBc", "response_body": { "error": { "code": "parameter_invalid", "message": "to must be an E.164 number", "param": "to", "type": "invalid_request_error" } }, "route": "/v1/calls", "status": 400, "user_agent": "morevoice-node/0.4.0"}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.