Skip to main contentSkip to FAQSkip to contact
HTTP 400Validation

invalid_request

Malformed request or missing required parameter.

Back to all errors

What this means

The request body could not be parsed, or a required parameter was missing. Check the request schema in the OpenAPI spec and verify Content-Type is application/json.

How to recover

Validate the request body against the schema before sending. Use the SDK to avoid hand-rolling payloads.

Example response

All TetraFi errors include a stable code, a human-readable message, and a docs_url pointing to this page.

JSON
1{
2 "error": {
3 "code": "invalid_request",
4 "message": "Malformed request or missing required parameter.",
5 "docs_url": "https://tetrafi.io/docs/integration/errors/invalid_request/"
6 }
7}
7 linesjson

Match in code

TypeScript
1try {
2 await tetrafi.rfq.create({ /* ... */ });
3} catch (err) {
4 if (err.code === "invalid_request") {
5 // Validate the request body against the schema before sending. Use the SDK to avoid hand-rolling payloads.
6 }
7 throw err;
8}
8 linestypescript

Related validation errors