> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.truvo.com/api-reference/list-api-requests/llms.txt. # List API requests GET https://api.truvo.com/v1/requests Reference: https://docs.truvo.com/api-reference/list-api-requests ## Authentication - `Authorization` header (bearer token, required) — Your Truvo API key, sent as a bearer token. The prefix selects sandbox (trv_sandbox_) or live (trv_live_). ## Request ### Query parameters - `limit` (integer, optional, default: 10) — The most requests on one page, from 1 to 100. - `cursor` (string, optional) — The next_cursor of the page before. Send the same filters with it. A cursor from another list answers invalid_cursor. - `status` (integer, optional) — Only requests that got this HTTP status. - `error_code` (enum, optional) — Only requests that answered this error code. - Allowed values: `authentication_failed`, `forbidden`, `not_found`, `invalid_input`, `invalid_json`, `invalid_cursor`, `invalid_version`, `needs_information`, `conflict`, `quote_expired`, `price_changed`, `purchase_not_supported`, `rate_limited`, `request_too_large`, `internal_error`, `service_unavailable`, `event_cursor_expired` - `operation` (string, optional) — Only requests for this operation, by its name in the log, such as start_quote_request. - `since` (datetime, optional) — Only requests made at or after this time. An RFC 3339 time with an offset. ### Headers - `Truvo-Version` (enum, required, default: 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: `2026-09-26` ## Response ### 200 List recent requests. - `requests` (list of RequestLogEntry, required) - `next_cursor` (string, required, nullable) — An opaque place in the list. Send it back unchanged, with the same filters, to read the next page. ## Errors ### 400 Bad Request Error Error envelope. One of: invalid_version, invalid_cursor. - `error` (ErrorEnvelopeError, required) - `request_id` (string, required) ### 401 Unauthorized Error Error envelope. One of: authentication_failed. - `error` (ErrorEnvelopeError, required) - `request_id` (string, required) ### 403 Forbidden Error Error envelope. One of: forbidden. - `error` (ErrorEnvelopeError, required) - `request_id` (string, required) ### 422 Unprocessable Entity Error Error envelope. One of: invalid_input. - `error` (ErrorEnvelopeError, required) - `request_id` (string, required) ### 429 Too Many Requests Error Error envelope. One of: rate_limited. - `error` (ErrorEnvelopeError, required) - `request_id` (string, required) ### 500 Internal Server Error Error envelope. One of: internal_error. - `error` (ErrorEnvelopeError, required) - `request_id` (string, required) ### 503 Service Unavailable Error Error envelope. One of: service_unavailable. - `error` (ErrorEnvelopeError, required) - `request_id` (string, required) ## Types ### RequestLogEntry - `request_id` (string, required) - `created_at` (datetime, required) — When Truvo received the request. - `environment` (string, required) - `key_id` (string, required) — The ID of the key that sent the request. Never the key itself. - `operation` (string, required, nullable) — The operation the request called, such as start_quote_request. - `method` (string, required) — The HTTP method. - `route` (string, required) — The path the request matched, with \{id} in place of each ID, such as /v1/quote-requests/\{id}. - `status` (integer, required) — The HTTP status of the answer. - `error_code` (RequestLogEntryErrorCode, required, nullable) — The error code of the answer, or null when the request succeeded. - `duration_ms` (integer, required) — How long Truvo took to answer, in milliseconds. - `quote_request_id` (string, required, nullable) — The quote request that the request created or named, or null. - `quote_id` (string, required, nullable) — The quote that the request named, or null. - `agent` (RequestAgent, required) — The agent that sent the request, as its MCP client and its User-Agent named it. ### ErrorEnvelopeError - `code` (string, required) - `message` (string, required) - `field_errors` (list of FieldError, required, nullable) - `retry_action` (RetryAction, required) - `doc_url` (string, required) ### RequestLogEntryErrorCode The error code of the answer, or null when the request succeeded. ### RequestAgent The agent that sent the request, as its MCP client and its User-Agent named it. - `client_name` (string, required, nullable) — The name the MCP client gave for itself, such as claude-code, or null. Only a /v1/mcp request names one. - `client_version` (string, required, nullable) — The version the MCP client gave for itself, or null. - `user_agent` (string, required, nullable) — The User-Agent header of the request, up to 200 characters, or null when it sent none. ### FieldError - `path` (string, required) - `message` (string, required) - `allowed_values` (list of string, optional) ### RetryAction - `type` (enum, required) - Allowed values: `none`, `retry`, `correct_input`, `supply_facts`, `read_status`, `use_new_request_key`, `wait`, `contact_support` - `summary` (string, required) ## Examples **Response** ```json { "requests": [ { "request_id": "req_0123456789abcdef", "created_at": "2026-09-28T12:00:00.000Z", "environment": "sandbox", "key_id": "key_0123456789abcdef", "operation": "start_quote_request", "method": "POST", "route": "/v1/quote-requests", "status": 422, "error_code": "needs_information", "duration_ms": 41, "quote_request_id": null, "quote_id": null, "agent": { "client_name": null, "client_version": null, "user_agent": "truvo-node/1.0 claude-code" } } ], "next_cursor": null } ``` **SDK Code** ```python first_page import requests url = "https://api.truvo.com/v1/requests" querystring = {"error_code":"needs_information","limit":"25","operation":"start_quote_request","since":"2026-09-28T11:00:00Z","status":"422"} headers = { "Truvo-Version": "2026-09-26", "Authorization": "Bearer " } response = requests.get(url, headers=headers, params=querystring) print(response.json()) ``` ```javascript first_page const url = 'https://api.truvo.com/v1/requests?error_code=needs_information&limit=25&operation=start_quote_request&since=2026-09-28T11%3A00%3A00Z&status=422'; const options = { method: 'GET', headers: {'Truvo-Version': '2026-09-26', Authorization: 'Bearer '} }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go first_page package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.truvo.com/v1/requests?error_code=needs_information&limit=25&operation=start_quote_request&since=2026-09-28T11%3A00%3A00Z&status=422" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Truvo-Version", "2026-09-26") req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby first_page require 'uri' require 'net/http' url = URI("https://api.truvo.com/v1/requests?error_code=needs_information&limit=25&operation=start_quote_request&since=2026-09-28T11%3A00%3A00Z&status=422") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Truvo-Version"] = '2026-09-26' request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java first_page import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.truvo.com/v1/requests?error_code=needs_information&limit=25&operation=start_quote_request&since=2026-09-28T11%3A00%3A00Z&status=422") .header("Truvo-Version", "2026-09-26") .header("Authorization", "Bearer ") .asString(); ``` ```php first_page request('GET', 'https://api.truvo.com/v1/requests?error_code=needs_information&limit=25&operation=start_quote_request&since=2026-09-28T11%3A00%3A00Z&status=422', [ 'headers' => [ 'Authorization' => 'Bearer ', 'Truvo-Version' => '2026-09-26', ], ]); echo $response->getBody(); ``` ```csharp first_page using RestSharp; var client = new RestClient("https://api.truvo.com/v1/requests?error_code=needs_information&limit=25&operation=start_quote_request&since=2026-09-28T11%3A00%3A00Z&status=422"); var request = new RestRequest(Method.GET); request.AddHeader("Truvo-Version", "2026-09-26"); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift first_page import Foundation let headers = [ "Truvo-Version": "2026-09-26", "Authorization": "Bearer " ] let request = NSMutableURLRequest(url: NSURL(string: "https://api.truvo.com/v1/requests?error_code=needs_information&limit=25&operation=start_quote_request&since=2026-09-28T11%3A00%3A00Z&status=422")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```