AI engineering glossary · Web APIs HTTP
What is Content-Type?
Content-Type (also called MIME type, Media type): An HTTP header naming the media type of the body being sent, such as application/json, text/html or multipart/form-data, so the receiver knows how to read it. Sending JSON with the wrong value is a frequent cause of rejected requests.
Content-Type: an example
Content-Type: application/json must accompany a JSON body, otherwise many servers respond with 415.
Related terms
More Web APIs HTTP terms
Where you learn it
Content-Type is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.