Skip to content
API Now! is currently in closed beta. We are constantly updating these guides as we release updates!

Invalid Request Format

← Back to Overview

This error occurs when the API client sends a payload that cannot be parsed by the server, typically due to malformed JSON.


{
"type": "https://docs.apinow.app/errors/invalid-request-format",
"title": "Invalid Request Format",
"status": 400,
"code": "INVALID_REQUEST_FORMAT",
"detail": "Unexpected token } in JSON at position 42",
"instance": "/api/v1/users"
}

For API Consumers (What it means & how to fix)

Section titled “For API Consumers (What it means & how to fix)”
  • Malformed JSON Syntax: Check that your JSON payload is formatted correctly. Common issues include:
    • Mismatched or missing closing brackets (}, ]).
    • Missing commas between fields.
    • Trailing commas after the last property.
    • Single quotes (') instead of double quotes (") around strings or keys.
  • Incorrect Content-Type Header: Ensure your request includes the header Content-Type: application/json.

For API Authors (Domain & API Modeler notes)

Section titled “For API Authors (Domain & API Modeler notes)”
  • This is a client-side syntax error. The API Modeler and Domain Modeler are correctly configured, but the client application is sending raw request bodies that violate standard JSON syntax.