Unsupported Media Type
The API cannot process the request because the media type or Content-Type format is not supported by the endpoint.
Meaning
The API cannot process the request because the media type or Content-Type format is not supported by the endpoint.
Common causes
- Incorrect Content-Type header
- Unsupported request format
- API expects JSON but received form data
- API expects XML but received JSON
- Incorrect request body encoding
⚡ Quick fix
- Set the correct Content-Type header
- Send the request in a supported format
- Verify the API documentation
- Ensure the request body matches the declared media type
Detailed fix by platform
JavaScript
- Set Content-Type to application/json when sending JSON
- Use the correct request body format
PHP
- Set the appropriate Content-Type header
- Encode request data according to the API requirements
REST
- Check the endpoint's supported media types
- Use the correct Accept and Content-Type headers
How to diagnose
- Inspect the Content-Type header —
- Check the request body format —
- Review supported media types in the API documentation —
- Compare Accept and Content-Type headers —
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in API
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026