Skip to navigation

Get an API request

View as Markdown

Authentication

AuthorizationBearer

Your Truvo API key, sent as a bearer token. The prefix selects sandbox (trv_sandbox_) or live (trv_live_).

Path parameters

idstringRequired

The request ID, which starts with req_.

Headers

Truvo-VersionenumRequiredDefaults to 2026-09-26

The contract revision of this request, which every operation in this document requires. This document describes 2026-09-26. Served revisions: 2026-09-26. A missing header, or one that names no served revision exactly, answers invalid_version (400), and its field error lists the served revisions in allowed_values, newest first.

Allowed values:

Response headers

Request-Idstringformat: "^req_[0-9a-f]{16}$"

The ID of this answer. An error body repeats it as request_id.

Truvo-Versionstringformat: "^[0-9]{4}-[0-9]{2}-[0-9]{2}(\.[a-z]+(-[a-z]+)*)?$"

The contract revision of this answer: the revision that the request named in Truvo-Version. A 404, and a refusal sent before Truvo knows your revision (401, 413, a 429 for failed authentication, and a 400 invalid_version), name the current revision and take its shape.

RateLimit-LimitintegerOptional
The calls this window allows, for the limit you're closest to reaching. The window is one minute or one UTC day. A fixed window allows a burst of up to twice the limit across a window edge.
RateLimit-RemainingintegerOptional
The calls left in the current window.
RateLimit-ResetintegerOptional
Seconds until the current window ends and the count resets.

Response

Read a recent request.
request_idstringformat: "^req_[a-z0-9]{8,64}$"

The request’s ID, as its Request-Id header gave it.

created_atdatetime
When Truvo received the request.
updated_atdatetime

The same as created_at: a log entry never changes.

environmentstring

The environment of the call: sandbox or live.

credentialobject

Who sent the request: an API key, a sign-in connection, or neither. Never a secret.

operationstring or nullformat: "^[a-z][a-z0-9_]{0,63}$"

The operation the request called, such as start_quote_request.

methodstringformat: "^[A-Z]{1,16}$"
The HTTP method.
routestring>=1 character

The path the request matched, with {id} in place of each ID, such as /v1/quote-requests/{id}.

statusinteger100-599
The HTTP status of the answer.
error_codeenum or string or null

The error code of the answer, or null when the request succeeded. A failed /v1/mcp tool call keeps its code under a 200. A /v1/mcp message that the MCP transport refused gets the nearest code: invalid_version for an MCP-Protocol-Version that Truvo doesn’t serve, invalid_json, or invalid_input.

duration_msinteger0-9007199254740991
How long Truvo took to answer, in milliseconds.
quote_request_idstring or nullformat: "^qreq_[a-z0-9]{8,64}$"
The quote request that the request created or named, or null.
quote_idstring or nullformat: "^qt_[a-z0-9]{8,64}$"
The quote that the request named, or null.
agentobject

The agent that sent the request, as its MCP client and its User-Agent named it.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error