> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.truvo.com/api-reference/send-feedback/llms.txt. # Send feedback POST https://api.truvo.com/v1/feedback Content-Type: application/json Reference: https://docs.truvo.com/api-reference/send-feedback ## 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 ### Body (application/json) This endpoint expects a SendFeedbackCommand. - `kind` (enum, required) - Allowed values: `missing_feature`, `bug`, `unclear_error`, `unclear_docs`, `other` - `summary` (string, required) — One line that says what went wrong or what is missing. - `expected` (string, required) — What you expected to happen. - `actual` (string, required) — What happened instead. - `tried` (FeedbackTried, optional) — What you called, if anything. - `agent` (FeedbackAgent, optional) — The agent that sends the report. ## Response ### 201 Send feedback. - `feedback_id` (string, required) - `kind` (enum, required) - Allowed values: `missing_feature`, `bug`, `unclear_error`, `unclear_docs`, `other` - `status` (enum, required) - Allowed values: `received`, `planned`, `shipped`, `declined` - `public_note` (string, required, nullable) — A note from Truvo about the report, or null. - `created_at` (datetime, required) — When Truvo received the report. ## Errors ### 400 Bad Request Error Error envelope. One of: invalid_json. - `error` (ErrorEnvelopeError, required) - `request_id` (string, required) ### 401 Unauthorized Error Error envelope. One of: authentication_failed. - `error` (ErrorEnvelopeError, required) - `request_id` (string, required) ### 413 Content Too Large Error Error envelope. One of: request_too_large. - `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 ### FeedbackTried What you called, if anything. - `operation` (string, optional) — The operation or MCP tool you called, such as start_quote_request. - `request_ids` (list of string, optional) — The Request-Id of each call that shows the problem. ### FeedbackAgent The agent that sends the report. - `name` (string, required) — The agent's name, such as Claude Code. - `version` (string, optional) — The agent's version. ### ErrorEnvelopeError - `code` (enum, required) - Allowed values: `authentication_failed`, `forbidden`, `not_found`, `invalid_input`, `invalid_json`, `invalid_cursor`, `needs_information`, `conflict`, `quote_expired`, `price_changed`, `purchase_not_supported`, `rate_limited`, `request_too_large`, `internal_error`, `service_unavailable`, `event_cursor_expired` - `message` (string, required) - `field_errors` (list of FieldError, required, nullable) - `retry_action` (RetryAction, required) - `doc_url` (string, required) ### FieldError - `path` (string, required) - `message` (string, required) ### 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 **Request** ```json { "kind": "missing_feature", "summary": "string", "expected": "string", "actual": "string" } ``` **Response** ```json { "feedback_id": "string", "kind": "missing_feature", "status": "received", "public_note": "string", "created_at": "2024-01-15T09:30:00Z" } ``` **SDK Code** ```python import requests url = "https://api.truvo.com/v1/feedback" payload = { "kind": "missing_feature", "summary": "string", "expected": "string", "actual": "string" } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.truvo.com/v1/feedback'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"kind":"missing_feature","summary":"string","expected":"string","actual":"string"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.truvo.com/v1/feedback" payload := strings.NewReader("{\n \"kind\": \"missing_feature\",\n \"summary\": \"string\",\n \"expected\": \"string\",\n \"actual\": \"string\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://api.truvo.com/v1/feedback") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"kind\": \"missing_feature\",\n \"summary\": \"string\",\n \"expected\": \"string\",\n \"actual\": \"string\"\n}" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.truvo.com/v1/feedback") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"kind\": \"missing_feature\",\n \"summary\": \"string\",\n \"expected\": \"string\",\n \"actual\": \"string\"\n}") .asString(); ``` ```php request('POST', 'https://api.truvo.com/v1/feedback', [ 'body' => '{ "kind": "missing_feature", "summary": "string", "expected": "string", "actual": "string" }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.truvo.com/v1/feedback"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"kind\": \"missing_feature\",\n \"summary\": \"string\",\n \"expected\": \"string\",\n \"actual\": \"string\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = [ "kind": "missing_feature", "summary": "string", "expected": "string", "actual": "string" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.truvo.com/v1/feedback")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data 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() ```