# Content-Type header

> Indicates the media type of the request or response body payload.

Source: https://apiguide.dev/headers/content-type
Direction: both
Registered: yes
Defined in: RFC 9110, Section 8.3 <https://www.rfc-editor.org/rfc/rfc9110.html#section-8.3>
Updated: 2026-07-08

## What is the Content-Type header?

The `Content-Type` header tells the recipient how to interpret the bytes of the HTTP body (e.g. parsing it as JSON, XML, or multi-part form data).

## API Usage & Best Practices

* **Use standard types**: Modern JSON APIs should use `application/json` or `application/problem+json` for errors.
* **Validate incoming mutations**: If a client sends an unsupported type in a POST/PUT, reject it with `415 Unsupported Media Type`.

## Examples

```http
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
```
