Skip to navigation

Read a recent 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

Response headers

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

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

RateLimit-LimitintegerOptional
The calls this window allows, for the limit you're closest to reaching. The window is one minute, or one UTC day for a daily sandbox limit. 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}$"
created_atdatetime
When Truvo received the request.
environmentenum
Allowed values:
key_idstring>=1 character
The ID of the key that sent the request. Never the key itself.
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 null
The error code of the answer, or null when the request succeeded.
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.

Errors

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