# Malformed request

The KeenAuth APIs return this problem type with HTTP status 400 (Bad Request).

## Problem type

| Field | Value |
|---|---|
| Type URI | `https://docs.keenauth.com/errors/malformed_request` |
| Code | `malformed_request` |
| HTTP status | 400 Bad Request |
| Title | Malformed request |

## Meaning

The request body is not valid JSON, has the wrong content type or contains a duplicate key.

## Example response

Example response body. `detail` is a human-readable English description that is not meant for end users; `instance` identifies the request.

```json
{
  "type": "https://docs.keenauth.com/errors/malformed_request",
  "title": "Malformed request",
  "status": 400,
  "code": "malformed_request",
  "detail": "...",
  "instance": "urn:idp:request:<request_id>"
}
```

All error codes: [Error reference](/docs/errors).
